DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] where to find ethernet CRC when stripping is off
@ 2016-01-20 15:02 Montorsi, Francesco
  2016-01-20 15:49 ` Ivan Boule
  0 siblings, 1 reply; 4+ messages in thread
From: Montorsi, Francesco @ 2016-01-20 15:02 UTC (permalink / raw)
  To: dev

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-01-21  8:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-20 15:02 [dpdk-dev] where to find ethernet CRC when stripping is off Montorsi, Francesco
2016-01-20 15:49 ` Ivan Boule
2016-01-20 17:15   ` Montorsi, Francesco
2016-01-21  8:49     ` Ivan Boule

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).