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 865A244111; Thu, 30 May 2024 16:04:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2C7BB40608; Thu, 30 May 2024 16:04:52 +0200 (CEST) Received: from mail-oa1-f70.google.com (mail-oa1-f70.google.com [209.85.160.70]) by mails.dpdk.org (Postfix) with ESMTP id 4C934402E4 for ; Thu, 30 May 2024 16:04:51 +0200 (CEST) Received: by mail-oa1-f70.google.com with SMTP id 586e51a60fabf-24cb97a5094so825846fac.3 for ; Thu, 30 May 2024 07:04:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interfacemasters.com; s=google; t=1717077890; x=1717682690; darn=dpdk.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=KtLr08abCbE5OqMnNLQiJrgXrXcLmM8p62mECPOhg0I=; b=iubv/7LD8XoeHULJzpH/kI9HRKO4kyENyJvwC29YCkXlp0UqPd0bU2ThujRGjYLjv4 Tn2YsJgFjb0ZaP0A+bop7HEIn4KmdjKyE9t2e8mxlko7MGf6DyogCm8Cz2/pryShUbop F50lIPbSIgvXoAQn3vIjg2cRkHflado2kanTI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717077890; x=1717682690; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=KtLr08abCbE5OqMnNLQiJrgXrXcLmM8p62mECPOhg0I=; b=n9In3H7jBQ2Yk1LY8EsiJKkhat0IpqV8cFyoEIjK0KQ0gT9GZWFmCBppiZk+QjB+09 aaHoNR9qt/mMmZXcx9jGo4D9SjhKysp20zlMqGunCr5i7MVTuw3tYqBTPRj/KgMw0iJf wba2BrFu+1Q+G30CYALUmo49iAw2XK6bco/p8p/Rnidsxnv/GcVFOztq9xZWpQPwBc72 j7HEkY1nFsCx+v5Q8R5eiTDSFTJW5qg0gK1l/KVwz1U1PCp2ga7iVPZtLeNqK5dpjxg+ L8NkWutIr5VGbu2pm+vAPDs9u1LsgA72zBuKukBgTssFm/mjGFcA9dd7spOfq1zn1jlN 8Vcg== X-Gm-Message-State: AOJu0Yy5ASm1LEPRQOJ518JfgkXF0HzfIrvqibJCrCNMc7kjsFvLM2nO IGXkD/8+KjoKJ3uYXyV8VKaxVG7i6zZgTthYfnpQ9qL4dHecmy8i5kljeGkqeWF8Y9hipvGd1/w YcfcBor13ICcSfmXyCC+7WS9GTZjyBEX6r6D6n179t2yu7Z/HvJc= X-Google-Smtp-Source: AGHT+IGgN9DoGidZ4mH6xpKmfE4me8x70tT8thSrilX9InnbuMGy4f4ytlzPfYe44SDTpFwPCFvjspH67jyMVw9MRQ8= X-Received: by 2002:a05:6870:558f:b0:24f:f45e:5541 with SMTP id 586e51a60fabf-25060bf2affmr2332575fac.24.1717077889998; Thu, 30 May 2024 07:04:49 -0700 (PDT) MIME-Version: 1.0 From: Taras Bilous Date: Thu, 30 May 2024 17:04:39 +0300 Message-ID: Subject: i40e add UDP GENEVE tunnel To: dev@dpdk.org Content-Type: multipart/alternative; boundary="000000000000b1d83f0619ac59ea" 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 --000000000000b1d83f0619ac59ea Content-Type: text/plain; charset="UTF-8" Hi All, I see that GENEVE tunnel type is currently not supported in i40e_dev_udp_tunnel_port_add(). Is there any reason for this or a roadmap for when this is planned to be done? I looked into the latest DPDK (24.03) and it is still not available there. I'm using XXV710 with an i40e driver and want to associate UDP port 6081 as a GENEVE tunnel on all ports so that RSS works correctly and distributes traffic based on inner packets. I checked the XXV710 datasheet and found that the following patch works for me, but I would like someone else familiar with this to take a look at it. --- a/drivers/net/i40e/base/i40e_adminq_cmd.h +++ b/drivers/net/i40e/base/i40e_adminq_cmd.h @@ -2800,7 +2800,7 @@ struct i40e_aqc_add_udp_tunnel { u8 reserved0[3]; u8 protocol_type; #define I40E_AQC_TUNNEL_TYPE_VXLAN 0x00 -#define I40E_AQC_TUNNEL_TYPE_NGE 0x01 +#define I40E_AQC_TUNNEL_TYPE_GENEVE 0x01 #define I40E_AQC_TUNNEL_TYPE_TEREDO 0x10 #define I40E_AQC_TUNNEL_TYPE_VXLAN_GPE 0x11 u8 reserved1[10]; diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index cb0070f..464e0be 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -8753,6 +8753,9 @@ i40e_dev_udp_tunnel_port_add(struct rte_eth_dev *dev, I40E_AQC_TUNNEL_TYPE_VXLAN_GPE); break; case RTE_ETH_TUNNEL_TYPE_GENEVE: + ret = i40e_add_vxlan_port(pf, udp_tunnel->udp_port, + I40E_AQC_TUNNEL_TYPE_GENEVE); + break; case RTE_ETH_TUNNEL_TYPE_TEREDO: Best regards, Taras --000000000000b1d83f0619ac59ea Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi All,

I see that GENEVE tunnel type i= s currently not supported in i40e_dev_udp_tunnel_port_add(). Is there any r= eason for this or a roadmap for when this is planned to be done? I looked i= nto the latest DPDK (24.03) and it is still not available there.

I&#= 39;m using XXV710 with an i40e driver and want to associate UDP port 6081 a= s a GENEVE tunnel on all ports so that RSS works correctly and distributes = traffic based on inner packets. I checked the XXV710 datasheet and found th= at the following patch works for me, but I would like someone else familiar= with this to take a look at it.

--- a/drivers= /net/i40e/base/i40e_adminq_cmd.h
+++ b/drivers/net/i40e/base/i40e_adminq= _cmd.h
@@ -2800,7 +2800,7 @@ struct i40e_aqc_add_udp_tunnel {
=C2=A0 = =C2=A0 =C2=A0u8 =C2=A0reserved0[3];
=C2=A0 =C2=A0 =C2=A0u8 =C2=A0protoco= l_type;
=C2=A0#define I40E_AQC_TUNNEL_TYPE_VXLAN =C2=A00x00
-#define = I40E_AQC_TUNNEL_TYPE_NGE =C2=A0 =C2=A00x01
+#define I40E_AQC_TUNNEL_TYPE= _GENEVE 0x01
=C2=A0#define I40E_AQC_TUNNEL_TYPE_TEREDO 0x10
=C2=A0#de= fine I40E_AQC_TUNNEL_TYPE_VXLAN_GPE =C2=A00x11
=C2=A0 =C2=A0 =C2=A0u8 = =C2=A0reserved1[10];
diff --git a/drivers/net/i40e/i40e_ethdev.c b/drive= rs/net/i40e/i40e_ethdev.c
index cb0070f..464e0be 100644
--- a/drivers= /net/i40e/i40e_ethdev.c
+++ b/drivers/net/i40e/i40e_ethdev.c
@@ -8753= ,6 +8753,9 @@ i40e_dev_udp_tunnel_port_add(struct rte_eth_dev *dev,
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0I40E_AQC_TUNNEL_TYPE_VXLAN_GPE);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0break;
=C2=A0 =C2=A0 =C2=A0case RTE_ETH_TUNNEL_TYPE_GENEVE:
+ =C2= =A0 =C2=A0 =C2=A0 =C2=A0ret =3D i40e_add_vxlan_port(pf, udp_tunnel->udp_= port,
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0I40E_AQC_TUNNEL_TYPE_GENEVE);
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0= break;
=C2=A0 =C2=A0 =C2=A0case RTE_ETH_TUNNEL_TYPE_TEREDO:

Best=C2=A0regards,
Taras
--000000000000b1d83f0619ac59ea--