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 03AACA0552; Fri, 21 Oct 2022 07:12:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E570942836; Fri, 21 Oct 2022 07:12:08 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id D22D34282D; Fri, 21 Oct 2022 07:12:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666329127; x=1697865127; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=KDkxM9MJpqL0Rw3jmlF1Wtqlb/VhPzxctS6CfRNMqVE=; b=m1kzsZ0jDmSTLK9vTkE6evPJI0qK6XgdoVYukYhPUgT4rEjsc3oyrifh 0J6RQDYWCLoEM59Jwr8bFnloFZAJVWnvTgJaQ2L1NThdM3ysfp+hC+tZs dBq+CufFKAjZt0kO1pNcA9ugGTWpzVxFwJrd0CsaVTex5xvD0lA994wEb +EbfOblGnWcPa5viAeEddBcga2587g+RPA4pbtjFjFYSvF9CUaaaW2nYk MJXTAZ4i4eoSfM1/YSlh6BsjvE4Y8iAP/519hAX474yJa+O8Ck3ouLRsZ VfpRZJleKbcY21p6IyBsrFGHvL2OBrIpEUetsBGM0txH0rKkVc2q7AGcU Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10506"; a="304526877" X-IronPort-AV: E=Sophos;i="5.95,200,1661842800"; d="scan'208";a="304526877" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2022 22:12:05 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10506"; a="632710030" X-IronPort-AV: E=Sophos;i="5.95,200,1661842800"; d="scan'208";a="632710030" Received: from unknown (HELO yemj..) ([10.239.252.253]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2022 22:12:02 -0700 From: Mingjin Ye To: dev@dpdk.org Cc: stable@dpdk.org, yidingx.zhou@intel.com, Mingjin Ye , Qiming Yang , Qi Zhang , Somnath Kotur , Olivier Matz , Ajit Khaparde , Andrew Rybchenko Subject: [PATCH v2] net/ice: support vxlan gpe tunnel offload Date: Fri, 21 Oct 2022 12:59:31 +0000 Message-Id: <20221021125931.1004237-1-mingjinx.ye@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 PMD tx path does not support VXLAN_GPE tunnel offload. Because it does not process RTE_MBUF_F_TX_TUNNEL_VXLAN_GPE flag in mbuf, and then the "L4TUNT" field will not be set in Tx context descriptor. This patch is to add the RTE_MBUF_F_TX_TUNNEL_VXLAN_GPE flag to support Tx VXLAN_GPE offload under the scenario if the offload tso and VXLAN_GPE tunnel are both required, so that it would avoid tx queue overflowing. Fixes: daa02b5cddbb ("mbuf: add namespace to offload flags") Cc: stable@dpdk.org Signed-off-by: Mingjin Ye --- drivers/net/ice/ice_rxtx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c index 697251c603..0a2b0376ac 100644 --- a/drivers/net/ice/ice_rxtx.c +++ b/drivers/net/ice/ice_rxtx.c @@ -2690,6 +2690,7 @@ ice_parse_tunneling_params(uint64_t ol_flags, /* 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: *cd_tunneling |= ICE_TXD_CTX_UDP_TUNNELING; -- 2.34.1