Skip to contentSkip to conversation

net/i40e: qinq strip is not supported by i40e

PATCH Applied [email protected] 3 participants 3 messages Oct 30, 2019 – Nov 4, 2019 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/i40e: qinq strip is not supported by i40e

From: Zhu Tao <[email protected]>

Qinq strip is not supported by i40e. When user tries to turn on QinQ strip, the driver gives unsupported return value and log.

---
 drivers/net/i40e/i40e_ethdev.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/net/i40e/i40e_ethdev.c +5 -0
index 77a46832c..ed8cbd849 100644
@@ -3847,6 +3847,11 @@ i40e_vlan_offload_set(struct rte_eth_dev *dev, int mask)
 	struct i40e_vsi *vsi = pf->main_vsi;
 	struct rte_eth_rxmode *rxmode;
 
+	if (mask & ETH_QINQ_STRIP_MASK) {
+		PMD_DRV_LOG(ERR, "Strip qinq is not supported.");
+		return -ENOTSUP;
+	}
+
 	rxmode = &dev->data->dev_conf.rxmode;
 	if (mask & ETH_VLAN_FILTER_MASK) {
 		if (rxmode->offloads & DEV_RX_OFFLOAD_VLAN_FILTER)
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw
Quoted 35 lines

-----Original Message-----
From: Zhu, TaoX
Sent: Thursday, October 31, 2019 2:22 AM
To: Xing, Beilei <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; Zhu, TaoX <[email protected]>
Subject: [PATCH] net/i40e: qinq strip is not supported by i40e

From: Zhu Tao <[email protected]>

Qinq strip is not supported by i40e. When user tries to turn on QinQ strip, the driver gives unsupported return value and log.

---
 drivers/net/i40e/i40e_ethdev.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/net/i40e/i40e_ethdev.c +5 -0
index 77a46832c..ed8cbd849 100644
@@ -3847,6 +3847,11 @@ i40e_vlan_offload_set(struct rte_eth_dev *dev, int
 mask)
 	struct i40e_vsi *vsi = pf->main_vsi;
 	struct rte_eth_rxmode *rxmode;
 
+	if (mask & ETH_QINQ_STRIP_MASK) {
+		PMD_DRV_LOG(ERR, "Strip qinq is not supported.");
+		return -ENOTSUP;
+	}
+
 	rxmode = &dev->data->dev_conf.rxmode;
 	if (mask & ETH_VLAN_FILTER_MASK) {
Quoted 3 lines

if (rxmode->offloads & DEV_RX_OFFLOAD_VLAN_FILTER)
--
2.17.1

Reviewed-by on v1 1/1 Applied
#2 lore raw
In reply to [email protected]
Quoted 29 lines · On 10/31, [email protected] wrote:

From: Zhu Tao <[email protected]>

Qinq strip is not supported by i40e. When user tries to turn on QinQ strip, the driver gives unsupported return value and log.

---
drivers/net/i40e/i40e_ethdev.c | 5 +++++

1 file changed, 5 insertions(+)
drivers/net/i40e/i40e_ethdev.c +5 -0
index 77a46832c..ed8cbd849 100644
@@ -3847,6 +3847,11 @@ i40e_vlan_offload_set(struct rte_eth_dev *dev, int mask)
 	struct i40e_vsi *vsi = pf->main_vsi;
 	struct rte_eth_rxmode *rxmode;
 
+	if (mask & ETH_QINQ_STRIP_MASK) {
+		PMD_DRV_LOG(ERR, "Strip qinq is not supported.");
+		return -ENOTSUP;
+	}
+
 	rxmode = &dev->data->dev_conf.rxmode;
 	if (mask & ETH_VLAN_FILTER_MASK) {
 		if (rxmode->offloads & DEV_RX_OFFLOAD_VLAN_FILTER)
Signature · 1 line
2.17.1

Applied to dpdk-next-net-intel. Thanks.