From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id D0E4B5A53 for ; Mon, 15 Jun 2015 14:40:12 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 15 Jun 2015 05:39:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,618,1427785200"; d="scan'208";a="727611396" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by fmsmga001.fm.intel.com with ESMTP; 15 Jun 2015 05:39:50 -0700 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.73]) by IRSMSX154.ger.corp.intel.com ([169.254.12.182]) with mapi id 14.03.0224.002; Mon, 15 Jun 2015 13:39:48 +0100 From: "Ananyev, Konstantin" To: David Marchand , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] ixgbe: fix TSO in IPv6 Thread-Index: AQHQnGQxzh7WedxrY0ePcwPPuASwjp2tl7XQ Date: Mon, 15 Jun 2015 12:39:48 +0000 Message-ID: <2601191342CEEE43887BDE71AB97725836A0A646@irsmsx105.ger.corp.intel.com> References: <1433160677-20847-1-git-send-email-david.marchand@6wind.com> In-Reply-To: <1433160677-20847-1-git-send-email-david.marchand@6wind.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] ixgbe: fix TSO in IPv6 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: Mon, 15 Jun 2015 12:40:13 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of David Marchand > Sent: Monday, June 01, 2015 1:11 PM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH] ixgbe: fix TSO in IPv6 >=20 > From: Didier Pallard >=20 > When TSO is used with IPv6, generated frames are incorrect. > L4 frame is OK, but length field of IPv6 header was not populated correct= ly. >=20 > Signed-off-by: Didier Pallard > --- > drivers/net/ixgbe/ixgbe_rxtx.c | 13 +++++++++---- > 1 file changed, 9 insertions(+), 4 deletions(-) >=20 > diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxt= x.c > index 4f9ab22..d123612 100644 > --- a/drivers/net/ixgbe/ixgbe_rxtx.c > +++ b/drivers/net/ixgbe/ixgbe_rxtx.c > @@ -375,10 +375,15 @@ ixgbe_set_xmit_ctx(struct ixgbe_tx_queue *txq, >=20 > /* check if TCP segmentation required for this packet */ > if (ol_flags & PKT_TX_TCP_SEG) { > - /* implies IP cksum and TCP cksum */ > - type_tucmd_mlhl =3D IXGBE_ADVTXD_TUCMD_IPV4 | > - IXGBE_ADVTXD_TUCMD_L4T_TCP | > - IXGBE_ADVTXD_DTYP_CTXT | IXGBE_ADVTXD_DCMD_DEXT; > + /* implies IP cksum in IPv4 */ > + if (ol_flags & PKT_TX_IP_CKSUM) > + type_tucmd_mlhl =3D IXGBE_ADVTXD_TUCMD_IPV4 | > + IXGBE_ADVTXD_TUCMD_L4T_TCP | > + IXGBE_ADVTXD_DTYP_CTXT | IXGBE_ADVTXD_DCMD_DEXT; > + else > + type_tucmd_mlhl =3D > + IXGBE_ADVTXD_TUCMD_L4T_TCP | > + IXGBE_ADVTXD_DTYP_CTXT | IXGBE_ADVTXD_DCMD_DEXT; >=20 > tx_offload_mask.l2_len |=3D ~0; > tx_offload_mask.l3_len |=3D ~0; > -- Acked-by: Konstantin Ananyev > 1.7.10.4