From: "Montorsi, Francesco" <fmontorsi@empirix.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Subject: [dpdk-dev] where to find ethernet CRC when stripping is off
Date: Wed, 20 Jan 2016 15:02:11 +0000 [thread overview]
Message-ID: <30b91c74ca26434daac041713cffa153@bilemail1.empirix.com> (raw)
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
next reply other threads:[~2016-01-20 15:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-20 15:02 Montorsi, Francesco [this message]
2016-01-20 15:49 ` Ivan Boule
2016-01-20 17:15 ` Montorsi, Francesco
2016-01-21 8:49 ` Ivan Boule
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=30b91c74ca26434daac041713cffa153@bilemail1.empirix.com \
--to=fmontorsi@empirix.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).