> > 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.

