Thread (11 messages) 11 messages, 3 authors, 2025-03-25

Re: [PATCH net-next v2 4/7] net: octeontx2: Add metadata support for xdp mode

From: Jakub Kicinski <kuba@kernel.org>
Date: 2025-03-25 11:41:42
Also in: bpf, linux-arm-kernel, linux-hyperv, linux-mediatek, linux-omap

On Tue, 18 Mar 2025 12:46:08 +0100 Lorenzo Bianconi wrote:
quoted hunk ↗ jump to hunk
@@ -1514,13 +1518,14 @@ static bool otx2_xdp_rcv_pkt_handler(struct otx2_nic *pfvf,
 
 	hard_start = (unsigned char *)phys_to_virt(pa);
 	xdp_prepare_buff(&xdp, hard_start, OTX2_HEAD_ROOM,
-			 cqe->sg.seg_size, false);
+			 cqe->sg.seg_size, true);
 
 	act = bpf_prog_run_xdp(prog, &xdp);
 
 handle_xdp_verdict:
 	switch (act) {
 	case XDP_PASS:
+		*metasize = xdp.data - xdp.data_meta;
 		break;
 	case XDP_TX:
 		qidx += pfvf->hw.tx_queues;
This one handles ABORT and invalid return codes as PASS not DROP.
That should probably be fixed separately?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help