From patchwork Thu Nov 17 03:30:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhichao Zeng X-Patchwork-Id: 119908 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 76D8BA00C2; Thu, 17 Nov 2022 04:28:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 156CD40DDA; Thu, 17 Nov 2022 04:28:00 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id A70B540141 for ; Thu, 17 Nov 2022 04:27:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668655677; x=1700191677; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=RxU6Oq5ockeMyegsU8Dkbyd7KIOVb5RkmoLSJmpcDe0=; b=IBQlzIkhNpCKxl7N3uNIK3m7O1H0Aa0GimpMjWhSTxlwpD5R1KVT8Oa4 UU4BGsVNPQ0LHyCQ5lRiT7SCSQ5QiS0wCofxgkrJN3HiL/vXRakOgRIah p6aad01endYEgo25zihj6E43UJWl1gTMgwhRds6XXMQixS2oeANro/F6p T1gEMQiPvXm7Vdnl+A+VU9TvOwu727cZzgO0HfCn5ZC6/Y3wGnft27tAG 5Es7A2Of0oOrvTRdcO3j4LI/TB52+THvvxlFNanYoy0M3ODfdkY+3h3aT UlycvwQuWMEw7BGiaPm4KQn+dLdxAV7H8nb90CF7KFhECLXKjRRUjsMDk w==; X-IronPort-AV: E=McAfee;i="6500,9779,10533"; a="399034316" X-IronPort-AV: E=Sophos;i="5.96,169,1665471600"; d="scan'208";a="399034316" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2022 19:27:56 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10533"; a="782039204" X-IronPort-AV: E=Sophos;i="5.96,169,1665471600"; d="scan'208";a="782039204" Received: from unknown (HELO localhost.localdomain) ([10.239.252.103]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2022 19:27:54 -0800 From: Zhichao Zeng To: dev@dpdk.org Cc: yidingx.zhou@intel.com, qi.z.zhang@intel.com, Zhichao Zeng , Jingjing Wu , Beilei Xing Subject: [PATCH] net/iavf: support vxlan gpe tunnel offload Date: Thu, 17 Nov 2022 11:30:24 +0800 Message-Id: <20221117033024.111100-1-zhichaox.zeng@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 Add support for Vxlan-GPE tunnel packet checksum offloading by adding the VXLAN_GPE flag during processing of Tx context descriptor. Signed-off-by: Zhichao Zeng Tested-by: Ke Xu --- drivers/net/iavf/iavf_rxtx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index bd5dd2d4ed..cf87a6beda 100644 --- a/drivers/net/iavf/iavf_rxtx.c +++ b/drivers/net/iavf/iavf_rxtx.c @@ -2424,6 +2424,7 @@ iavf_fill_ctx_desc_tunnelling_field(volatile uint64_t *qw0, /* for non UDP / GRE tunneling, set to 00b */ break; case RTE_MBUF_F_TX_TUNNEL_VXLAN: + case RTE_MBUF_F_TX_TUNNEL_VXLAN_GPE: case RTE_MBUF_F_TX_TUNNEL_GTP: case RTE_MBUF_F_TX_TUNNEL_GENEVE: eip_typ |= IAVF_TXD_CTX_UDP_TUNNELING;