[dpdk-stable] patch 'net/ena: enable multi-segment in Tx offload flags' has been queued to stable release 20.11.3

luca.boccassi at gmail.com luca.boccassi at gmail.com
Tue Aug 3 14:22:02 CEST 2021


Hi,

FYI, your patch has been queued to stable release 20.11.3

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 08/05/21. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/62a186761fd05e022682e5c89c1bffd032cf2480

Thanks.

Luca Boccassi

---
>From 62a186761fd05e022682e5c89c1bffd032cf2480 Mon Sep 17 00:00:00 2001
From: Ghalem Boudour <ghalem.boudour at 6wind.com>
Date: Fri, 30 Jul 2021 10:34:41 +0200
Subject: [PATCH] net/ena: enable multi-segment in Tx offload flags

[ upstream commit 3e7008459df969611fb7aa3b885a949515ac0b49 ]

The DPDK ENA driver does not provide multi-segment tx offload capability.
Let's add DEV_TX_OFFLOAD_MULTI_SEGS to ports offload capability by
default, and always set it in dev->data->dev_conf.txmode.offload.

This flag in not listed in doc/guides/nics/features/default.ini, so
ena.ini does not need to be updated.

Fixes: 1173fca25af9 ("ena: add polling-mode driver")

Signed-off-by: Ghalem Boudour <ghalem.boudour at 6wind.com>
Signed-off-by: Olivier Matz <olivier.matz at 6wind.com>
Acked-by: Michal Krawczyk <mk at semihalf.com>
---
 drivers/net/ena/ena_ethdev.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c
index 06fb99182c..3f2c979f52 100644
--- a/drivers/net/ena/ena_ethdev.c
+++ b/drivers/net/ena/ena_ethdev.c
@@ -1963,6 +1963,7 @@ static int ena_dev_configure(struct rte_eth_dev *dev)
 
 	if (dev->data->dev_conf.rxmode.mq_mode & ETH_MQ_RX_RSS_FLAG)
 		dev->data->dev_conf.rxmode.offloads |= DEV_RX_OFFLOAD_RSS_HASH;
+	dev->data->dev_conf.txmode.offloads |= DEV_TX_OFFLOAD_MULTI_SEGS;
 
 	adapter->tx_selected_offloads = dev->data->dev_conf.txmode.offloads;
 	adapter->rx_selected_offloads = dev->data->dev_conf.rxmode.offloads;
@@ -2037,6 +2038,7 @@ static int ena_infos_get(struct rte_eth_dev *dev,
 			DEV_RX_OFFLOAD_TCP_CKSUM;
 
 	rx_feat |= DEV_RX_OFFLOAD_JUMBO_FRAME;
+	tx_feat |= DEV_TX_OFFLOAD_MULTI_SEGS;
 
 	/* Inform framework about available features */
 	dev_info->rx_offload_capa = rx_feat;
-- 
2.30.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-08-03 12:35:08.771744670 +0100
+++ 0013-net-ena-enable-multi-segment-in-Tx-offload-flags.patch	2021-08-03 12:35:08.234819128 +0100
@@ -1 +1 @@
-From 3e7008459df969611fb7aa3b885a949515ac0b49 Mon Sep 17 00:00:00 2001
+From 62a186761fd05e022682e5c89c1bffd032cf2480 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 3e7008459df969611fb7aa3b885a949515ac0b49 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -24 +25 @@
-index 14f776b5ad..4cebf60a68 100644
+index 06fb99182c..3f2c979f52 100644
@@ -27 +28 @@
-@@ -1856,6 +1856,7 @@ static int ena_dev_configure(struct rte_eth_dev *dev)
+@@ -1963,6 +1963,7 @@ static int ena_dev_configure(struct rte_eth_dev *dev)
@@ -35 +36 @@
-@@ -1930,6 +1931,7 @@ static int ena_infos_get(struct rte_eth_dev *dev,
+@@ -2037,6 +2038,7 @@ static int ena_infos_get(struct rte_eth_dev *dev,


More information about the stable mailing list