[dpdk-dev] where to find ethernet CRC when stripping is off
Montorsi, Francesco
fmontorsi at empirix.com
Wed Jan 20 16:02:11 CET 2016
Hi all,
I need to get access to the Ethernet CRC of received packets.
To do this, I'm configuring:
port_conf.rxmode.hw_strip_crc = 0;
Now my question is: how am I supposed to access the Ethernet CRC from a DPDK mbuf?
Is the CRC just the 4 final bytes of the packets?
Is this correct:
uint32_t crc = rte_pktmbuf_mtod_offset (mymbuf, uint32_t*, mymbuf->pkt_len) ;
?
Thanks,
Francesco Montorsi
More information about the dev
mailing list