From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6DFE7A034C; Tue, 30 Aug 2022 10:12:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0D36640F18; Tue, 30 Aug 2022 10:12:29 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 5E8DE40F17 for ; Tue, 30 Aug 2022 10:12:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661847146; x=1693383146; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=KFfADYFROG7FcIVBqPEvk0iEmciY5IxZ6oQGws9nFYE=; b=hsB8IfMo+D+LhyuL6lt5+ZeY7yGjCEH6MWO3Rw3dMp7FpJJW9/oCQEcx amOtlcR5RBjd1HXCWDixJwN0zVxm9lXu3HvqBfj6rrQImoZMszXCgaMFh ZfmBEcmTxbUI0BiUz99M2HsX5F6A0JZSBi/ueKf6SmvzZ4jbfq9byZJXW qIDcvgIAqllGBONH688Dr2WCqYgwgNVg4ua5GkRzO1Nb1CZR5xoEfuxYS X0geg4Plz6lWTZo4h/q3Aj2tnJYKBivX+yB7rDcZlFUUdw/k2KkfBZ5fT K+Mb7b5jbp2FKSbuqZWfppAkqRIIO1idCkvmsW0fHcqnc9ezeeu5kufla A==; X-IronPort-AV: E=McAfee;i="6500,9779,10454"; a="282086101" X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="282086101" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2022 01:12:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="588503941" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga006.jf.intel.com with ESMTP; 30 Aug 2022 01:12:24 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 30 Aug 2022 01:12:24 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Tue, 30 Aug 2022 01:12:24 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.48) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Tue, 30 Aug 2022 01:12:24 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l0vB3tspn7BagG+dtwmTrOUDJJxeXlEPHe7KWp1w+TJpAKQLCIgGoct65FkXObvtBgRXMSUrEotHEJwxClqBZfULhudxqiGAjJ4t4laat41juoLWsEbW8EiwLEyyKTfZAMIGhWK7HjsqO8/3XPs+gLSMvzu3urRg3j6zpetUqZexgoAL7gpvlwal2Ff6NLuYCjuhQvSH0/VOk+xjU/ibH/9TFYFN/lHtGYDWxWGPihxNhiVq5P4kbEEA7UD55L0sMLfqNzAFgy6NIsrh7qd92B5NiZVtZkRVAZYGXaRaop5VRC0X57ZFddV05bbDQRy7xyNwBKQaULKocdaChFiebg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BmK47tc0EpXZ7Xv01IBnF910dVGWLfubr2VXRaMA6sw=; b=XYM/zFv0HmCMpr0FfB3+FxLfU77eIuC2+KJu3pbOGMrdjRxouGIh/FFk0KkI6EK1ernLeuuN+CWR9wrFHqYBGDTQcSb29YR/LaHCKpQHMUDmJE3PT60sPj+EwBBUqKsD8StNYgs3xn1X5AKVgRxZJtj+P8nXeXKrMhc5R+IcnhmXua4HTQTy7b609nWP/14dOy0wPiIYK8j9zAbyqyPbGsdQHZ6rj5K8EXns0X2zIOYTVCzcaO+R+NVNLXQpUQ8PDFrdlX52twUqIoX6jgZ76sJ8+MyGVtcmyw8DIYuYpqTrLMs2dDKxwEkBCE1s+5Dt/2Y3hYRENztNhR4k7aOEiQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MWHPR11MB1886.namprd11.prod.outlook.com (2603:10b6:300:110::9) by CO1PR11MB5025.namprd11.prod.outlook.com (2603:10b6:303:9e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.14; Tue, 30 Aug 2022 08:12:22 +0000 Received: from MWHPR11MB1886.namprd11.prod.outlook.com ([fe80::58f6:397c:5f5a:216f]) by MWHPR11MB1886.namprd11.prod.outlook.com ([fe80::58f6:397c:5f5a:216f%4]) with mapi id 15.20.5566.021; Tue, 30 Aug 2022 08:12:22 +0000 From: "Yang, Qiming" To: "Zhang, Peng1X" , "dev@dpdk.org" CC: "Xing, Beilei" , "Wu, Jingjing" , "Zhang, Peng1X" Subject: RE: [PATCH 2/2] net/iavf: support inner and outer checksum offload Thread-Topic: [PATCH 2/2] net/iavf: support inner and outer checksum offload Thread-Index: AQHYripS9VZb6NICH06xyK7ThpELia3HLq3w Date: Tue, 30 Aug 2022 08:12:22 +0000 Message-ID: References: <20220812165223.470777-1-peng1x.zhang@intel.com> <20220812165223.470777-2-peng1x.zhang@intel.com> In-Reply-To: <20220812165223.470777-2-peng1x.zhang@intel.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.500.17 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ea19e0f6-af26-4190-0fce-08da8a5f5de1 x-ms-traffictypediagnostic: CO1PR11MB5025:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: B22vyatdafGlyeRnwT2fqyA3+62weyZb9JzpKsH1aUzoS+CNaIdZd1hpUUUT8EPIQY2lUTaqLrvNodGpGmL557CPgMgz1/GPbRd1dYDkmtycvLOR5AcOcEW+6jlZ8VfVmdCnAthm/7WaiKpq/nCFx3S3E9YWaRyN5HpDPS/B4zQpWQXOIXDveIoW/DrlkG8mf3himGBOWCS/IZ/qHrGatF6K0WkWPZk/AVwhVyOgiwQ0jrCo1FxmXjmdOm3O0b6RTgaBLlnTRMbwrC+7QSuUJizNygVjbN0LLbJk2MZImj5QZfyRsbH0x5eGbjNTCYTscOT8SsKBes3OZkMQ4kOczibJ/D4tGwVOYH42I5YzN1AitTDocOL4JOArxF4AY8FaeFTyT9VxOO/H9BqKeu1UOHBiKR/u0KlKEHbeGHwV2JYMitWZhnkmJJKsh8h4CJmcgp0hIJGYTEjL2+/UeNVKd8BWiqGIbWbrmYTDMtCzc+TLsBvmiotfYHPB0p8RRIgXVeclcbwhs/3+0a7mNGayJ4gxuVxD+qJm/qUMkKWrhLfw9al8afWiJ6bWwh+4BE5SKlF/kZGin6N0ccBAe40RWtWJh2+TKiQ7VQHam2Ao/osLR7G9BABzso5m9kLIacp5BgL2W1mGMVlYLXMHn4A/LuMsiiMT2R12cXKrx+PnE7h7qtQ+/CirJMJA4BOKYlPqBHsLP10r0m31hN8uRTF/pKRSg60T8K68GB43XH/cK0AAANeTqfMa2izn7wt0sJ92 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB1886.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(346002)(376002)(39860400002)(396003)(136003)(366004)(122000001)(6506007)(7696005)(2906002)(38100700002)(107886003)(53546011)(33656002)(186003)(9686003)(83380400001)(55016003)(66946007)(86362001)(8676002)(66476007)(66556008)(64756008)(66446008)(76116006)(4326008)(26005)(316002)(54906003)(110136005)(71200400001)(82960400001)(38070700005)(52536014)(41300700001)(8936002)(478600001)(5660300002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?gaI+prLt9l0j/s9C72ZJV++fjjE75RJ3P3+bcFkB60r8pOfehB0Es+kmCqwK?= =?us-ascii?Q?oyfrAOJ55ybECEzx4CvbzstYoX0KCzEV85DD9PrpH2uD0c4ntDbNqjR6yFYb?= =?us-ascii?Q?HN01huYWpBmWlPKfCLLQI3G6B/dELKbaXrEEZkVKhtwpfmXq8P77zmnkSru+?= =?us-ascii?Q?OycsHPylwJk7rxA+smVUFP1fW+ikw9JGFVOND9H13qLxiMbtPv5Rg157yda7?= =?us-ascii?Q?EpQbzUw1W93aA6/xqg/73KRESOsEQqe/lGu/lkVi3IxNE7aBi2xivRyscQbh?= =?us-ascii?Q?CxHwle44VMBDdea4X+rc50YCo/ZVJJGwOSTtgD+OAskGqrdOLBQA+o9horhz?= =?us-ascii?Q?LvKHEjA1f/NqwfaVCnywNW8CaiENrtoB46z18LywQifXR43ZLsg33G1v+UHj?= =?us-ascii?Q?Klju07ILfuk3mLsVCNTVubp5VNTVlYySQOQB/CSZFfEAEdhgJ5aQl0n6gvqa?= =?us-ascii?Q?6XsZnsZycydyXdPyJ5sQBUAKLmjA+QpJJ4o7eS4oEk+XVM82/AkbMenodk8W?= =?us-ascii?Q?FkSTzNVL05q4lcMMPyDH+a+Oe5DPcpQ4F1uiG2EyyBLtgQkX0Oo9Hqf87VWm?= =?us-ascii?Q?Bm1jdgSEf43fXJKVYjB4YdkonR+8otgo7eqnYvi7MNMkW7KjszeHJtrdESVQ?= =?us-ascii?Q?39m32H2LflbRt8qqtkL3mlXA/h66HrheNNfKqM6m4zR/lfr8sywAvjw2Ubvx?= =?us-ascii?Q?LPvVX98Ix418/+bS4kC/pM7ofGjGvm6PbEQWfsM1z02RFJSB+5fuIVgM2H+m?= =?us-ascii?Q?+xWNeJYQ3ENHqSyIQkydAnkI730TJFuQfQuQxTiGPlPAoCGHMoCtxPxTlChk?= =?us-ascii?Q?TUIaQMRQr7WVU87eib/bfINP+ccZTRTr8NKpqf9RofsmwUeZURKqg66i+OZx?= =?us-ascii?Q?GvgekkmutqaHN3a+K2GIrg46gAw9yZs+ocwHvN7ThA7etaI843aUdZ2hI0g0?= =?us-ascii?Q?0NhV/lw5jtlGt39wxnQbcTkG6KDsHKZo5XgtOBuuJ6KeS6HG1KFRjoO993Kz?= =?us-ascii?Q?IPDdDRd+2I7CNJHKRohxwwt/U4SvQQQ0OtGjAcexDBBCf8oeo3bhJgcvnupW?= =?us-ascii?Q?uHr4KV1GhZq4KrEqVuxM7X4xigX2Zw8VBv1s/0XW8RYf//jejT34a90IicnE?= =?us-ascii?Q?enZs7CkKoyFqYcPZHcBhbw8mCwsC/wb0QvOn+25fwqigQDhbSpPKsy0Wn5jS?= =?us-ascii?Q?Q2ASYClvU8RVjtz1Ur4KSQhlNGanQN3u1Gf/hEpOLUfF2f4EjaPAlkTuOpom?= =?us-ascii?Q?wUq5rw60zwwSWADcNyib2A8YegpEkIbeTdu636cm7yROBuhndVNYL6mmITam?= =?us-ascii?Q?2RJRosvi7FySZgKEzeG5hj1QVNMgTJBtNIH+tjXCcJUk3PfE18uSZbjvt9Z2?= =?us-ascii?Q?YCChrqiEFf4zMZK8PEzokPCMMnWJumRsiIgQVGnynek3B0kRgeyFfhnle+ie?= =?us-ascii?Q?HVZgyaYIkqbfNsV29INIZeJgTaIPdTn6ZTcgxWRl7y+irGr5QPtmGsXDFH4n?= =?us-ascii?Q?rnjE8H1ODup66m5Q9jKB32Pgh96KEvrVskd4D8LHjunKOuzEk+1/LYT+bqr3?= =?us-ascii?Q?P5w/b3YoHCNnLKpMgmriMiDAQO3Bg2JwMtfG6CK1?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1886.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ea19e0f6-af26-4190-0fce-08da8a5f5de1 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Aug 2022 08:12:22.7278 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: bUFu5OiCInfVZ++RGDnmxUyIKuNIiz1zMdwku1yNIQ+BhdKhZFdemX6vpDLXbAsAjOcmwahAERVAp/5hTNeLvg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB5025 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: peng1x.zhang@intel.com > Sent: Saturday, August 13, 2022 12:52 AM > To: dev@dpdk.org > Cc: Xing, Beilei ; Wu, Jingjing ; > Zhang, Peng1X > Subject: [PATCH 2/2] net/iavf: support inner and outer checksum offload >=20 > From: Peng Zhang No need this line. >=20 > Add the support of inner and outer Tx checksum offload for tunneling > packets by configuring tunneling parameters in Tx descriptors, including > outer L3/L4 checksum offload. Enable inner and outer Tx checksum offload for tunnel patch by configure ol= _flags. >=20 > Signed-off-by: Peng Zhang > --- > drivers/net/iavf/iavf_ethdev.c | 3 +- > drivers/net/iavf/iavf_rxtx.c | 51 +++++++++++++++++++++++++++++++--- > drivers/net/iavf/iavf_rxtx.h | 8 +++++- > 3 files changed, 56 insertions(+), 6 deletions(-) >=20 > diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethde= v.c > index 506fcff6e3..59238ecceb 100644 > --- a/drivers/net/iavf/iavf_ethdev.c > +++ b/drivers/net/iavf/iavf_ethdev.c > @@ -1140,7 +1140,8 @@ iavf_dev_info_get(struct rte_eth_dev *dev, struct > rte_eth_dev_info *dev_info) > RTE_ETH_TX_OFFLOAD_IPIP_TNL_TSO | > RTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO | > RTE_ETH_TX_OFFLOAD_MULTI_SEGS | > - RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE; > + RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE | > + RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM; Add this line after outer_ipv4_chsum >=20 > if (vf->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_CRC) > dev_info->rx_offload_capa |=3D > RTE_ETH_RX_OFFLOAD_KEEP_CRC; diff --git a/drivers/net/iavf/iavf_rxtx.c > b/drivers/net/iavf/iavf_rxtx.c index adec58e90a..7cbebafc09 100644 > --- a/drivers/net/iavf/iavf_rxtx.c > +++ b/drivers/net/iavf/iavf_rxtx.c > @@ -2334,7 +2334,7 @@ static inline uint16_t > iavf_calc_context_desc(uint64_t flags, uint8_t vlan_flag) { > if (flags & (RTE_MBUF_F_TX_TCP_SEG | RTE_MBUF_F_TX_UDP_SEG | > - RTE_MBUF_F_TX_TUNNEL_MASK)) > + RTE_MBUF_F_TX_TUNNEL_MASK | > RTE_MBUF_F_TX_OUTER_IP_CKSUM)) OUTER_UDP_CKSUM? > return 1; > if (flags & RTE_MBUF_F_TX_VLAN && > vlan_flag & IAVF_TX_FLAGS_VLAN_TAG_LOC_L2TAG2) > @@ -2399,6 +2399,44 @@ iavf_fill_ctx_desc_tunnelling_field(volatile > uint64_t *qw0, > break; > } >=20 > + /* L4TUNT: L4 Tunneling Type */ > + switch (m->ol_flags & RTE_MBUF_F_TX_TUNNEL_MASK) { > + case RTE_MBUF_F_TX_TUNNEL_IPIP: > + /* for non UDP / GRE tunneling, set to 00b */ > + break; > + case RTE_MBUF_F_TX_TUNNEL_VXLAN: > + case RTE_MBUF_F_TX_TUNNEL_GTP: > + case RTE_MBUF_F_TX_TUNNEL_GENEVE: > + eip_typ |=3D IAVF_TXD_CTX_UDP_TUNNELING; > + break; > + case RTE_MBUF_F_TX_TUNNEL_GRE: > + eip_typ |=3D IAVF_TXD_CTX_GRE_TUNNELING; > + break; > + default: > + PMD_TX_LOG(ERR, "Tunnel type not supported"); > + return; > + } > + > + /* L4TUNLEN: L4 Tunneling Length, in Words > + * > + * We depend on app to set rte_mbuf.l2_len correctly. > + * For IP in GRE it should be set to the length of the GRE > + * header; > + * For MAC in GRE or MAC in UDP it should be set to the length > + * of the GRE or UDP headers plus the inner MAC up to including > + * its last Ethertype. > + * If MPLS labels exists, it should include them as well. > + */ > + eip_typ |=3D (m->l2_len >> 1) << IAVF_TXD_CTX_QW0_NATLEN_SHIFT; > + > + /** > + * Calculate the tunneling UDP checksum. > + * Shall be set only if L4TUNT =3D 01b and EIPT is not zero > + */ > + if (!(eip_typ & IAVF_TX_CTX_EXT_IP_NONE) && > + (eip_typ & IAVF_TXD_CTX_UDP_TUNNELING)) > + eip_typ |=3D IAVF_TXD_CTX_QW0_L4T_CS_MASK; > + > *qw0 =3D eip_typ << IAVF_TXD_CTX_QW0_TUN_PARAMS_EIPT_SHIFT | > eip_len << > IAVF_TXD_CTX_QW0_TUN_PARAMS_EIPLEN_SHIFT | > eip_noinc << > IAVF_TXD_CTX_QW0_TUN_PARAMS_EIP_NOINC_SHIFT; > @@ -2417,7 +2455,7 @@ iavf_fill_ctx_desc_segmentation_field(volatile > uint64_t *field, > total_length =3D m->pkt_len - (m->l2_len + m->l3_len + m- > >l4_len); >=20 > if (m->ol_flags & RTE_MBUF_F_TX_TUNNEL_MASK) > - total_length -=3D m->outer_l3_len; > + total_length -=3D m->outer_l3_len + m->outer_l2_len; Not related, delete > } >=20 > #ifdef RTE_LIBRTE_IAVF_DEBUG_TX > @@ -2535,8 +2573,13 @@ iavf_build_data_desc_cmd_offset_fields(volatile > uint64_t *qw1, > } >=20 > /* Set MACLEN */ > - offset |=3D (m->l2_len >> 1) << IAVF_TX_DESC_LENGTH_MACLEN_SHIFT; > - > + if (m->ol_flags & RTE_MBUF_F_TX_TUNNEL_MASK) > + offset |=3D (m->outer_l2_len >> 1) > + << IAVF_TX_DESC_LENGTH_MACLEN_SHIFT; > + else > + offset |=3D (m->l2_len >> 1) > + << IAVF_TX_DESC_LENGTH_MACLEN_SHIFT; > + > /* Enable L3 checksum offloading inner */ > if (m->ol_flags & RTE_MBUF_F_TX_IP_CKSUM) { > if (m->ol_flags & RTE_MBUF_F_TX_IPV4) { diff --git > a/drivers/net/iavf/iavf_rxtx.h b/drivers/net/iavf/iavf_rxtx.h index > 1695e43cd5..4b40ad3615 100644 > --- a/drivers/net/iavf/iavf_rxtx.h > +++ b/drivers/net/iavf/iavf_rxtx.h > @@ -26,6 +26,8 @@ > #define IAVF_TX_NO_VECTOR_FLAGS ( \ > RTE_ETH_TX_OFFLOAD_MULTI_SEGS | \ > RTE_ETH_TX_OFFLOAD_TCP_TSO | \ > + RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM | \ > + RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM | \ > RTE_ETH_TX_OFFLOAD_SECURITY) >=20 > #define IAVF_TX_VECTOR_OFFLOAD ( \ > @@ -56,7 +58,8 @@ > #define IAVF_TX_CKSUM_OFFLOAD_MASK ( \ > RTE_MBUF_F_TX_IP_CKSUM | \ > RTE_MBUF_F_TX_L4_MASK | \ > - RTE_MBUF_F_TX_TCP_SEG) > + RTE_MBUF_F_TX_TCP_SEG | \ UDP > + RTE_MBUF_F_TX_OUTER_IP_CKSUM) >=20 > #define IAVF_TX_OFFLOAD_MASK ( \ > RTE_MBUF_F_TX_OUTER_IPV6 | \ > @@ -67,6 +70,9 @@ > RTE_MBUF_F_TX_IP_CKSUM | \ > RTE_MBUF_F_TX_L4_MASK | \ > RTE_MBUF_F_TX_TCP_SEG | \ > + RTE_MBUF_F_TX_TUNNEL_MASK | \ > + RTE_MBUF_F_TX_OUTER_IP_CKSUM | \ > + RTE_MBUF_F_TX_OUTER_UDP_CKSUM | \ > RTE_ETH_TX_OFFLOAD_SECURITY) >=20 > #define IAVF_TX_OFFLOAD_NOTSUP_MASK \ > -- > 2.25.1