[PATCH v4 4/5] bpf: add test for Rx and Tx filtering

Marat Khalili marat.khalili at huawei.com
Mon Nov 10 16:43:14 CET 2025


> > Does pkt point to packet data or an mbuf? I would think we need mbuf functions
> > here to access data. Not sure why the test is not failing though, maybe I
> > misunderstand it.
> 
> The API for DPDK BPF gives option for packet data or mbuf.
> See rte_bpf_arg_type.
> 
> This test uses packet data. Mostly because it is easier, using mbuf
> requires more overhead and BPF validator often doesn't like it.

Oh yes, I missed the bits in bpf_pkt.c that actually look at this and call 
rte_pktmbuf_mtod if necessary.


More information about the dev mailing list