DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 1/2] net/sfc: improve tunnel TSO mask calculation
@ 2021-03-11 12:25 Andrew Rybchenko
  2021-03-11 12:25 ` [dpdk-dev] [PATCH 2/2] common/sfc_efx: remove GENEVE from list of supported tunnels Andrew Rybchenko
  2021-03-22 17:06 ` [dpdk-dev] [PATCH 1/2] net/sfc: improve tunnel TSO mask calculation Ferruh Yigit
  0 siblings, 2 replies; 3+ messages in thread
From: Andrew Rybchenko @ 2021-03-11 12:25 UTC (permalink / raw)
  To: dev

Corresponding tunnel TSO is not supported if the tunnel is not
supported.

Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
---
 drivers/net/sfc/sfc_tx.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/drivers/net/sfc/sfc_tx.c b/drivers/net/sfc/sfc_tx.c
index 4db39415de..28d696de61 100644
--- a/drivers/net/sfc/sfc_tx.c
+++ b/drivers/net/sfc/sfc_tx.c
@@ -49,9 +49,15 @@ sfc_tx_get_offload_mask(struct sfc_adapter *sa)
 	if (!sa->tso)
 		no_caps |= DEV_TX_OFFLOAD_TCP_TSO;
 
-	if (!sa->tso_encap)
-		no_caps |= (DEV_TX_OFFLOAD_VXLAN_TNL_TSO |
-			    DEV_TX_OFFLOAD_GENEVE_TNL_TSO);
+	if (!sa->tso_encap ||
+	    (encp->enc_tunnel_encapsulations_supported &
+	     (1u << EFX_TUNNEL_PROTOCOL_VXLAN)) == 0)
+		no_caps |= DEV_TX_OFFLOAD_VXLAN_TNL_TSO;
+
+	if (!sa->tso_encap ||
+	    (encp->enc_tunnel_encapsulations_supported &
+	     (1u << EFX_TUNNEL_PROTOCOL_GENEVE)) == 0)
+		no_caps |= DEV_TX_OFFLOAD_GENEVE_TNL_TSO;
 
 	return ~no_caps;
 }
-- 
2.30.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [dpdk-dev] [PATCH 2/2] common/sfc_efx: remove GENEVE from list of supported tunnels
  2021-03-11 12:25 [dpdk-dev] [PATCH 1/2] net/sfc: improve tunnel TSO mask calculation Andrew Rybchenko
@ 2021-03-11 12:25 ` Andrew Rybchenko
  2021-03-22 17:06 ` [dpdk-dev] [PATCH 1/2] net/sfc: improve tunnel TSO mask calculation Ferruh Yigit
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Rybchenko @ 2021-03-11 12:25 UTC (permalink / raw)
  To: dev; +Cc: stable

The first GA of the SN1022 does not support Geneve.

Fixes: d874d2a149ed ("common/sfc_efx/base: support UDP tunnel operations for EF100")
Cc: stable@dpdk.org

Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
---
 drivers/common/sfc_efx/base/rhead_nic.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/common/sfc_efx/base/rhead_nic.c b/drivers/common/sfc_efx/base/rhead_nic.c
index ce087debd7..f2c18c1dcc 100644
--- a/drivers/common/sfc_efx/base/rhead_nic.c
+++ b/drivers/common/sfc_efx/base/rhead_nic.c
@@ -28,7 +28,6 @@ rhead_board_cfg(
 	 */
 	encp->enc_tunnel_encapsulations_supported =
 	    (1u << EFX_TUNNEL_PROTOCOL_VXLAN) |
-	    (1u << EFX_TUNNEL_PROTOCOL_GENEVE) |
 	    (1u << EFX_TUNNEL_PROTOCOL_NVGRE);
 
 	/*
-- 
2.30.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH 1/2] net/sfc: improve tunnel TSO mask calculation
  2021-03-11 12:25 [dpdk-dev] [PATCH 1/2] net/sfc: improve tunnel TSO mask calculation Andrew Rybchenko
  2021-03-11 12:25 ` [dpdk-dev] [PATCH 2/2] common/sfc_efx: remove GENEVE from list of supported tunnels Andrew Rybchenko
@ 2021-03-22 17:06 ` Ferruh Yigit
  1 sibling, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2021-03-22 17:06 UTC (permalink / raw)
  To: Andrew Rybchenko, dev

On 3/11/2021 12:25 PM, Andrew Rybchenko wrote:
> Corresponding tunnel TSO is not supported if the tunnel is not
> supported.
> 
> Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>

Series applied to dpdk-next-net/main, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-22 17:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-11 12:25 [dpdk-dev] [PATCH 1/2] net/sfc: improve tunnel TSO mask calculation Andrew Rybchenko
2021-03-11 12:25 ` [dpdk-dev] [PATCH 2/2] common/sfc_efx: remove GENEVE from list of supported tunnels Andrew Rybchenko
2021-03-22 17:06 ` [dpdk-dev] [PATCH 1/2] net/sfc: improve tunnel TSO mask calculation Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).