From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bilemail1.empirix.com (bilemail1.empirix.com [208.67.76.245]) by dpdk.org (Postfix) with ESMTP id B843C8DAF for ; Wed, 20 Jan 2016 16:02:13 +0100 (CET) Received: from BILEMAIL1.empirix.com (10.17.8.30) by bilemail1.empirix.com (10.17.8.30) with Microsoft SMTP Server (TLS) id 15.0.775.38; Wed, 20 Jan 2016 10:02:12 -0500 Received: from BILEMAIL1.empirix.com ([fe80::f9e0:9293:2523:f021]) by bilemail1.empirix.com ([fe80::f9e0:9293:2523:f021%22]) with mapi id 15.00.0775.031; Wed, 20 Jan 2016 10:02:12 -0500 From: "Montorsi, Francesco" To: "dev@dpdk.org" Thread-Topic: where to find ethernet CRC when stripping is off Thread-Index: AdFTkyEV8eqdkSLXQ3eFs9jPf9NxQQ== Date: Wed, 20 Jan 2016 15:02:11 +0000 Message-ID: <30b91c74ca26434daac041713cffa153@bilemail1.empirix.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.12.50.52] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: [dpdk-dev] where to find ethernet CRC when stripping is off X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2016 15:02:14 -0000 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 =3D 0; Now my question is: how am I supposed to access the Ethernet CRC from a DPD= K mbuf?=20 Is the CRC just the 4 final bytes of the packets?=20 Is this correct: uint32_t crc =3D rte_pktmbuf_mtod_offset (mymbuf, uint32_t*, mymbuf->pkt= _len) ; ? Thanks, Francesco Montorsi