net/i40e: restore disable double VLAN by default
PATCH 1/1 net/i40e: restore disable double VLAN by default
Restore disable double VLAN by default.
--- doc/guides/nics/i40e.rst | 6 +++--- drivers/net/i40e/i40e_ethdev.c | 12 ------------ 2 files changed, 3 insertions(+), 15 deletions(-)
doc/guides/nics/i40e.rst +3 -3
@@ -969,10 +969,10 @@ it will fail and return the info "Conflict with the first rule's input set", which means the current rule's input set conflicts with the first rule's. Remove the first rule if want to change the input set of the PCTYPE. -Disable QinQ is not supported when FW >= 8.4 -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +To use VLAN functions, need to enable QinQ when FW >= 8.4 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -If upgrade FW to version 8.4 and higher, enable QinQ by default and disable QinQ is not supported. +If upgrade FW to version 8.4 and higher, when using VLAN functions, need to enable QinQ. Example of getting best performance with l3fwd example
drivers/net/i40e/i40e_ethdev.c +0 -12
@@ -4027,12 +4027,6 @@ i40e_vlan_offload_set(struct rte_eth_dev *dev, int mask) }if (mask &RTE_ETH_VLAN_EXTEND_MASK ) { -/* Double VLAN not allowed to be disabled.*/ -if (pf->fw8_3gt && !(rxmode->offloads &RTE_ETH_RX_OFFLOAD_VLAN_EXTEND )) { -PMD_DRV_LOG (WARNING , -"Disable double VLAN is not allowed after firmwarev8.3!" ); -return 0 ; - } i =0 ; num = vsi->mac_num; mac_filter = rte_zmalloc("mac_filter_info_data",
@@ -6296,7 +6290,6 @@ int i40e_vsi_cfg_inner_vlan_stripping(struct i40e_vsi *vsi, bool on)static int i40e_dev_init_vlan (struct rte_eth_dev *dev) { -struct i40e_pf *pf =I40E_DEV_PRIVATE_TO_PF (dev->data->dev_private);struct rte_eth_dev_data *data = dev->data;int ret;int mask =0 ;
@@ -6307,11 +6300,6 @@ i40e_dev_init_vlan(struct rte_eth_dev *dev)RTE_ETH_VLAN_FILTER_MASK |RTE_ETH_VLAN_EXTEND_MASK ; -/* Double VLAN be enabled by default.*/ -if (pf->fw8_3gt) { -struct rte_eth_rxmode *rxmode = &dev->data->dev_conf.rxmode; - rxmode->offloads |=RTE_ETH_RX_OFFLOAD_VLAN_EXTEND ; - } ret =i40e_vlan_offload_set (dev, mask);if (ret) {PMD_DRV_LOG (INFO ,"Failed to update vlan offload" );
Signature · 1 line
2.34.1
Quoted 9 lines
-----Original Message-----
From: Kevin Liu <[email protected]>
Sent: Thursday, July 7, 2022 6:48 PM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Zhang, Yuying <[email protected]>; Yang, SteveX <[email protected]>; Liu, KevinX <[email protected]>
Subject: [PATCH] net/i40e: restore disable double VLAN by default
Quoted 5 lines
Restore disable double VLAN by default.
Fixes ae97b8b89826 ("net/i40e: fix error disable double VLAN")Signed-off-by Kevin Liu <[email protected]>---
Best regards,
Yu Jiang
Quoted 10 lines
-----Original Message-----
From: Kevin Liu <[email protected]>
Sent: Thursday, July 7, 2022 6:48 PM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Zhang, Yuying <[email protected]>; Yang, SteveX <[email protected]>; Liu, KevinX <[email protected]>
Subject: [PATCH] net/i40e: restore disable double VLAN by default
Quoted 5 lines
Restore disable double VLAN by default.
Fixes ae97b8b89826 ("net/i40e: fix error disable double VLAN")Signed-off-by Kevin Liu <[email protected]>---
Best regards,
Yingya
Hi,
Quoted 10 lines
-----Original Message-----
From: Kevin Liu <[email protected]>
Sent: Thursday, July 7, 2022 18:48
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Zhang, Yuying <[email protected]>; Yang, SteveX <[email protected]>; Liu, KevinX <[email protected]>
Subject: [PATCH] net/i40e: restore disable double VLAN by defaultRestore disable double VLAN by default.
Please add detail reason, like will caused performance drop issue.
Quoted 17 lines
Fixes ae97b8b89826 ("net/i40e: fix error disable double VLAN")Signed-off-by Kevin Liu <[email protected]>--- doc/guides/nics/i40e.rst | 6 +++--- drivers/net/i40e/i40e_ethdev.c | 12 ------------ 2 files changed, 3 insertions(+), 15 deletions(-)doc/guides/nics/i40e.rst index renamed from doc/guides/nics/i40e.rst +0
-0
85fdc4944d..f61c327726100644doc/guides/nics/i40e.rst +0
-0@@ -969,10 +969,10 @@ it will fail and return the info "Conflict with the firstrule's input set", which means the current rule's input set conflicts with the first rule's.
Remove the first rule if want to change the input set of the PCTYPE.
Quoted 3 lines
-Disable QinQ is not supported when FW >= 8.4 -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+To use VLAN functions, need to enable QinQ when FW >= 8.4
Not only this issue, you should cover all the issue we know.
Vlan related feature miss when FW>=8.4
~~~~~~~~~~~~~
If upgrade FW to version 8.4 and higher, some vlan related issue exist:
1.vlan tci input set not work
2.tpid set fail
3.need enable qinq before use vlan filter
4.outer vlan strip fail
Quoted 51 lines
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-If upgrade FW to version 8.4 and higher, enable QinQ by default and disable QinQ is not supported.
+If upgrade FW to version 8.4 and higher, when using VLAN functions, need to enable QinQ.Example of getting best performance with l3fwd example diff --git
a/drivers/net/i40e/i40e_ethdev.cb/drivers/net/i40e/i40e_ethdev.cindex684e095026..117dd85c11100644drivers/net/i40e/i40e_ethdev.c +0
-6@@ -4027,12 +4027,6 @@ i40e_vlan_offload_set(struct rte_eth_dev *dev, int mask) }if (mask &RTE_ETH_VLAN_EXTEND_MASK ) { -/* Double VLAN not allowed to be disabled.*/ -if (pf->fw8_3gt && !(rxmode->offloads & RTE_ETH_RX_OFFLOAD_VLAN_EXTEND)) { -PMD_DRV_LOG (WARNING , -"Disable double VLAN is not allowed after firmwarev8.3!"); -return 0 ; - }drivers/net/i40e/i40e_ethdev.c +0
-6i =0 ; num = vsi->mac_num; mac_filter = rte_zmalloc("mac_filter_info_data",@@ -6296,7 +6290,6 @@ int i40e_vsi_cfg_inner_vlan_stripping(struct i40e_vsi *vsi, bool on) static int i40e_dev_init_vlan(struct rte_eth_dev *dev) { -struct i40e_pf *pf =I40E_DEV_PRIVATE_TO_PF (dev->data- >dev_private);struct rte_eth_dev_data *data = dev->data;int ret;int mask =0 ;@@ -6307,11 +6300,6 @@ i40e_dev_init_vlan(struct rte_eth_dev *dev)RTE_ETH_VLAN_FILTER_MASK |RTE_ETH_VLAN_EXTEND_MASK ; -/* Double VLAN be enabled by default.*/ -if (pf->fw8_3gt) { -struct rte_eth_rxmode *rxmode = &dev->data- >dev_conf.rxmode; - rxmode->offloads |=RTE_ETH_RX_OFFLOAD_VLAN_EXTEND ; - } ret =i40e_vlan_offload_set (dev, mask);if (ret) {
PMD_DRV_LOG(INFO, "Failed to update vlan offload");
--
2.34.1
Ok, I'll tidy it up again.
Quoted 109 lines
-----Original Message-----
From: Yang, Qiming <[email protected]>
Sent: 2022年7月7日 14:55
To: Liu, KevinX <[email protected]>; [email protected]
Cc: Xing, Beilei <[email protected]>; Zhang, Yuying <[email protected]>; Yang, SteveX <[email protected]>; Liu, KevinX <[email protected]>
Subject: RE: [PATCH] net/i40e: restore disable double VLAN by defaultHi,
Quoted 10 lines
-----Original Message-----
From: Kevin Liu <[email protected]>
Sent: Thursday, July 7, 2022 18:48
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Zhang, Yuying <[email protected]>; Yang, SteveX <[email protected]>; Liu, KevinX <[email protected]>
Subject: [PATCH] net/i40e: restore disable double VLAN by defaultRestore disable double VLAN by default.
Please add detail reason, like will caused performance drop issue.
Quoted 17 lines
Fixes ae97b8b89826 ("net/i40e: fix error disable double VLAN")Signed-off-by Kevin Liu <[email protected]>--- doc/guides/nics/i40e.rst | 6 +++--- drivers/net/i40e/i40e_ethdev.c | 12 ------------ 2 files changed, 3 insertions(+), 15 deletions(-)doc/guides/nics/i40e.rst index renamed from doc/guides/nics/i40e.rst +0
-0
85fdc4944d..f61c327726100644doc/guides/nics/i40e.rst +0
-0@@ -969,10 +969,10 @@ it will fail and return the info "Conflict withthe first rule's input set", which means the current rule's input set conflicts with the first rule's.
Remove the first rule if want to change the input set of the PCTYPE.Quoted 3 lines
-Disable QinQ is not supported when FW >= 8.4 -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+To use VLAN functions, need to enable QinQ when FW >= 8.4Not only this issue, you should cover all the issue we know.
Vlan related feature miss when FW>=8.4
~~~~~~~~~~~~~
If upgrade FW to version 8.4 and higher, some vlan related issue exist:
1.vlan tci input set not work
2.tpid set fail
3.need enable qinq before use vlan filter 4.outer vlan strip failQuoted 1 line
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quoted 32 lines
-If upgrade FW to version 8.4 and higher, enable QinQ by default and disable QinQ is not supported.
doc/guides/nics/i40e.rst +2
-0+If upgrade FW to version 8.4 and higher, when using VLAN functions, +need toenable QinQ.
Example of getting best performance with l3fwd example diff --git
a/drivers/net/i40e/i40e_ethdev.cb/drivers/net/i40e/i40e_ethdev.cindex684e095026..117dd85c11100644drivers/net/i40e/i40e_ethdev.c +0
-0@@ -4027,12 +4027,6 @@ i40e_vlan_offload_set(struct rte_eth_dev *dev,int
mask)drivers/net/i40e/i40e_ethdev.c +0
-2}if (mask &RTE_ETH_VLAN_EXTEND_MASK ) { -/* Double VLAN not allowed to be disabled.*/ - if (pf->fw8_3gt && !(rxmode->offloads &
RTE_ETH_RX_OFFLOAD_VLAN_EXTEND)) {drivers/net/i40e/i40e_ethdev.c +0
-2- PMD_DRV_LOG(WARNING, - "Disable double VLAN is not allowed afterfirmwarev8.3!");
drivers/net/i40e/i40e_ethdev.c +0
-2-return 0 ; - } i =0 ; num = vsi->mac_num; mac_filter = rte_zmalloc("mac_filter_info_data",@@ -6296,7 +6290,6 @@ int i40e_vsi_cfg_inner_vlan_stripping(structQuoted 1 line
i40e_vsi*vsi, bool on) static int i40e_dev_init_vlan(structrte_eth_dev*dev) {
Quoted 20 lines
drivers/net/i40e/i40e_ethdev.c +0
-1- struct i40e_pf *pf = I40E_DEV_PRIVATE_TO_PF(dev->data-Quoted 1 line
dev_private);drivers/net/i40e/i40e_ethdev.c +0
-5struct rte_eth_dev_data *data = dev->data;int ret;int mask =0 ;@@ -6307,11 +6300,6 @@ i40e_dev_init_vlan(struct rte_eth_dev *dev)RTE_ETH_VLAN_FILTER_MASK |RTE_ETH_VLAN_EXTEND_MASK ; -/* Double VLAN be enabled by default.*/ -if (pf->fw8_3gt) { -struct rte_eth_rxmode *rxmode = &dev->data- >dev_conf.rxmode; - rxmode->offloads |=RTE_ETH_RX_OFFLOAD_VLAN_EXTEND ; - } ret =i40e_vlan_offload_set (dev, mask);if (ret) {
PMD_DRV_LOG(INFO, "Failed to update vlan offload");
--
2.34.1
PATCH v2 1/1 net/i40e: restore disable double VLAN by default
In reply to Kevin LiuPreviously, QinQ was enabled by default and cannot be disable, But a serious issue was found during the performance test, if QinQ is always enable, the performance will drop seriously.
So, restore disable double VLAN by default and eliminate the impact of QinQ on Performance.
doc: update known issue.
---
v2: update doc and refine commit log
--- doc/guides/nics/i40e.rst | 11 +++++++---- drivers/net/i40e/i40e_ethdev.c | 12 ------------ 2 files changed, 7 insertions(+), 16 deletions(-)
doc/guides/nics/i40e.rst +7 -4
@@ -969,11 +969,14 @@ it will fail and return the info "Conflict with the first rule's input set", which means the current rule's input set conflicts with the first rule's. Remove the first rule if want to change the input set of the PCTYPE. -Disable QinQ is not supported when FW >= 8.4 -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -If upgrade FW to version 8.4 and higher, enable QinQ by default and disable QinQ is not supported. +Vlan related feature miss when FW >= 8.4 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +If upgrade FW to version 8.4 and higher, some vlan related issue exist: +1. vlan tci input set not work +2. tpid set fail +3. need enable qinq before use vlan filter +4. outer vlan strip fail Example of getting best performance with l3fwd example ------------------------------------------------------
drivers/net/i40e/i40e_ethdev.c +0 -12
@@ -4027,12 +4027,6 @@ i40e_vlan_offload_set(struct rte_eth_dev *dev, int mask) }if (mask &RTE_ETH_VLAN_EXTEND_MASK ) { -/* Double VLAN not allowed to be disabled.*/ -if (pf->fw8_3gt && !(rxmode->offloads &RTE_ETH_RX_OFFLOAD_VLAN_EXTEND )) { -PMD_DRV_LOG (WARNING , -"Disable double VLAN is not allowed after firmwarev8.3!" ); -return 0 ; - } i =0 ; num = vsi->mac_num; mac_filter = rte_zmalloc("mac_filter_info_data",
@@ -6296,7 +6290,6 @@ int i40e_vsi_cfg_inner_vlan_stripping(struct i40e_vsi *vsi, bool on)static int i40e_dev_init_vlan (struct rte_eth_dev *dev) { -struct i40e_pf *pf =I40E_DEV_PRIVATE_TO_PF (dev->data->dev_private);struct rte_eth_dev_data *data = dev->data;int ret;int mask =0 ;
@@ -6307,11 +6300,6 @@ i40e_dev_init_vlan(struct rte_eth_dev *dev)RTE_ETH_VLAN_FILTER_MASK |RTE_ETH_VLAN_EXTEND_MASK ; -/* Double VLAN be enabled by default.*/ -if (pf->fw8_3gt) { -struct rte_eth_rxmode *rxmode = &dev->data->dev_conf.rxmode; - rxmode->offloads |=RTE_ETH_RX_OFFLOAD_VLAN_EXTEND ; - } ret =i40e_vlan_offload_set (dev, mask);if (ret) {PMD_DRV_LOG (INFO ,"Failed to update vlan offload" );
Signature · 1 line
2.34.1
PATCH v3 1/1 net/i40e: restore disable double VLAN by default
In reply to Kevin LiuPreviously, QinQ is enabled by default and can't be disabled, but there'll be performance drop if QinQ is enabled.
So, disable QinQ by default.
---
v2: update doc and refine commit log
---
v3: refine commit log
--- doc/guides/nics/i40e.rst | 11 +++++++---- drivers/net/i40e/i40e_ethdev.c | 12 ------------ 2 files changed, 7 insertions(+), 16 deletions(-)
doc/guides/nics/i40e.rst +7 -4
@@ -969,11 +969,14 @@ it will fail and return the info "Conflict with the first rule's input set", which means the current rule's input set conflicts with the first rule's. Remove the first rule if want to change the input set of the PCTYPE. -Disable QinQ is not supported when FW >= 8.4 -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -If upgrade FW to version 8.4 and higher, enable QinQ by default and disable QinQ is not supported. +Vlan related feature miss when FW >= 8.4 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +If upgrade FW to version 8.4 and higher, some vlan related issue exist: +1. vlan tci input set not work +2. tpid set fail +3. need enable qinq before use vlan filter +4. outer vlan strip fail Example of getting best performance with l3fwd example ------------------------------------------------------
drivers/net/i40e/i40e_ethdev.c +0 -12
@@ -4027,12 +4027,6 @@ i40e_vlan_offload_set(struct rte_eth_dev *dev, int mask) }if (mask &RTE_ETH_VLAN_EXTEND_MASK ) { -/* Double VLAN not allowed to be disabled.*/ -if (pf->fw8_3gt && !(rxmode->offloads &RTE_ETH_RX_OFFLOAD_VLAN_EXTEND )) { -PMD_DRV_LOG (WARNING , -"Disable double VLAN is not allowed after firmwarev8.3!" ); -return 0 ; - } i =0 ; num = vsi->mac_num; mac_filter = rte_zmalloc("mac_filter_info_data",
@@ -6296,7 +6290,6 @@ int i40e_vsi_cfg_inner_vlan_stripping(struct i40e_vsi *vsi, bool on)static int i40e_dev_init_vlan (struct rte_eth_dev *dev) { -struct i40e_pf *pf =I40E_DEV_PRIVATE_TO_PF (dev->data->dev_private);struct rte_eth_dev_data *data = dev->data;int ret;int mask =0 ;
@@ -6307,11 +6300,6 @@ i40e_dev_init_vlan(struct rte_eth_dev *dev)RTE_ETH_VLAN_FILTER_MASK |RTE_ETH_VLAN_EXTEND_MASK ; -/* Double VLAN be enabled by default.*/ -if (pf->fw8_3gt) { -struct rte_eth_rxmode *rxmode = &dev->data->dev_conf.rxmode; - rxmode->offloads |=RTE_ETH_RX_OFFLOAD_VLAN_EXTEND ; - } ret =i40e_vlan_offload_set (dev, mask);if (ret) {PMD_DRV_LOG (INFO ,"Failed to update vlan offload" );
Signature · 1 line
2.34.1
Quoted 42 lines
-----Original Message-----
From: Liu, KevinX <[email protected]>
Sent: Friday, July 8, 2022 12:26 AM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Zhang, Yuying <[email protected]>; Yang, SteveX <[email protected]>; Liu, KevinX <[email protected]>
Subject: [PATCH v3] net/i40e: restore disable double VLAN by defaultPreviously, QinQ is enabled by default and can't be disabled, but there'll be performance drop if QinQ is enabled.
So, disable QinQ by default.
Fixes ae97b8b89826 ("net/i40e: fix error disable double VLAN")Signed-off-by Kevin Liu <[email protected]>---
v2: update doc and refine commit log
---
v3: refine commit log--- doc/guides/nics/i40e.rst | 11 +++++++---- drivers/net/i40e/i40e_ethdev.c | 12 ------------ 2 files changed, 7 insertions(+), 16 deletions(-)doc/guides/nics/i40e.rst index renamed from doc/guides/nics/i40e.rst +0
-0
85fdc4944d..75ff40aa59100644doc/guides/nics/i40e.rst +0
-0@@ -969,11 +969,14 @@ it will fail and return the info "Conflict with the firstrule's input set", which means the current rule's input set conflicts with the first rule's.
Remove the first rule if want to change the input set of the PCTYPE.-Disable QinQ is not supported when FW >= 8.4 -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~doc/guides/nics/i40e.rst +0
-2- -If upgrade FW to version 8.4 and higher, enable QinQ by default and disableQinQ is not supported.
doc/guides/nics/i40e.rst it will fail and return the info "Conflict with the first rule's input set",
Quoted 7 lines
doc/guides/nics/i40e.rst +6
-0+Vlan related feature miss when FW >= 8.4 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +If upgrade FW to version 8.4 and higher, some vlan related issue exist: +1. vlan tci input set not work +2. tpid set fail +3. need enable qinq before use vlan filter 4. outer vlan strip fail
Vlan related features miss when FW >=8.4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If FW version >= 8.4, there'll be some Vlan related issues:
1. TCI input set for QinQ is invalid.
2. Fail to configure TPID for QinQ.
3. Need to enable QinQ before enabling Vlan filter.
4. Fail to strip outer Vlan.
Quoted 45 lines
Example of getting best performance with l3fwd example
------------------------------------------------------drivers/net/i40e/i40e_ethdev.c +0
-6@@ -4027,12 +4027,6 @@ i40e_vlan_offload_set(struct rte_eth_dev *dev, int mask) }if (mask &RTE_ETH_VLAN_EXTEND_MASK ) { -/* Double VLAN not allowed to be disabled.*/ -if (pf->fw8_3gt && !(rxmode->offloads & RTE_ETH_RX_OFFLOAD_VLAN_EXTEND)) { -PMD_DRV_LOG (WARNING , -"Disable double VLAN is not allowed after firmwarev8.3!"); -return 0 ; - }drivers/net/i40e/i40e_ethdev.c +0
-6i =0 ; num = vsi->mac_num; mac_filter = rte_zmalloc("mac_filter_info_data",@@ -6296,7 +6290,6 @@ int i40e_vsi_cfg_inner_vlan_stripping(struct i40e_vsi *vsi, bool on) static int i40e_dev_init_vlan(struct rte_eth_dev *dev) { -struct i40e_pf *pf =I40E_DEV_PRIVATE_TO_PF (dev->data- >dev_private);struct rte_eth_dev_data *data = dev->data;int ret;int mask =0 ;@@ -6307,11 +6300,6 @@ i40e_dev_init_vlan(struct rte_eth_dev *dev)RTE_ETH_VLAN_FILTER_MASK |RTE_ETH_VLAN_EXTEND_MASK ; -/* Double VLAN be enabled by default.*/ -if (pf->fw8_3gt) { -struct rte_eth_rxmode *rxmode = &dev->data- >dev_conf.rxmode; - rxmode->offloads |=RTE_ETH_RX_OFFLOAD_VLAN_EXTEND ; - } ret =i40e_vlan_offload_set (dev, mask);if (ret) {
PMD_DRV_LOG(INFO, "Failed to update vlan offload");
--
2.34.1
PATCH v4 1/1 net/i40e: restore disable double VLAN by default
In reply to Kevin LiuPreviously, QinQ is enabled by default and can't be disabled, but there'll be performance drop if QinQ is enabled.
So, disable QinQ by default.
---
v2: update doc and refine commit log
---
v3: refine commit log
---
v4: update doc
--- doc/guides/nics/i40e.rst | 13 ++++++++----- drivers/net/i40e/i40e_ethdev.c | 12 ------------ 2 files changed, 8 insertions(+), 17 deletions(-)
doc/guides/nics/i40e.rst +8 -5
@@ -969,11 +969,14 @@ it will fail and return the info "Conflict with the first rule's input set", which means the current rule's input set conflicts with the first rule's. Remove the first rule if want to change the input set of the PCTYPE. -Disable QinQ is not supported when FW >= 8.4 -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -If upgrade FW to version 8.4 and higher, enable QinQ by default and disable QinQ is not supported. - +Vlan related Features miss when FW >= 8.4 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +If FW version >= 8.4, there'll be some Vlan related issues: +1. TCI input set for QinQ is invalid. +2. Fail to configure TPID for QinQ. +3. Need to enable QinQ before enabling Vlan filter. +4. Fail to strip outer Vlan. Example of getting best performance with l3fwd example ------------------------------------------------------
drivers/net/i40e/i40e_ethdev.c +0 -12
@@ -4027,12 +4027,6 @@ i40e_vlan_offload_set(struct rte_eth_dev *dev, int mask) }if (mask &RTE_ETH_VLAN_EXTEND_MASK ) { -/* Double VLAN not allowed to be disabled.*/ -if (pf->fw8_3gt && !(rxmode->offloads &RTE_ETH_RX_OFFLOAD_VLAN_EXTEND )) { -PMD_DRV_LOG (WARNING , -"Disable double VLAN is not allowed after firmwarev8.3!" ); -return 0 ; - } i =0 ; num = vsi->mac_num; mac_filter = rte_zmalloc("mac_filter_info_data",
@@ -6296,7 +6290,6 @@ int i40e_vsi_cfg_inner_vlan_stripping(struct i40e_vsi *vsi, bool on)static int i40e_dev_init_vlan (struct rte_eth_dev *dev) { -struct i40e_pf *pf =I40E_DEV_PRIVATE_TO_PF (dev->data->dev_private);struct rte_eth_dev_data *data = dev->data;int ret;int mask =0 ;
@@ -6307,11 +6300,6 @@ i40e_dev_init_vlan(struct rte_eth_dev *dev)RTE_ETH_VLAN_FILTER_MASK |RTE_ETH_VLAN_EXTEND_MASK ; -/* Double VLAN be enabled by default.*/ -if (pf->fw8_3gt) { -struct rte_eth_rxmode *rxmode = &dev->data->dev_conf.rxmode; - rxmode->offloads |=RTE_ETH_RX_OFFLOAD_VLAN_EXTEND ; - } ret =i40e_vlan_offload_set (dev, mask);if (ret) {PMD_DRV_LOG (INFO ,"Failed to update vlan offload" );
Signature · 1 line
2.34.1
Quoted 95 lines
-----Original Message-----
From: Liu, KevinX <[email protected]>
Sent: Friday, July 8, 2022 1:05 AM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Zhang, Yuying <[email protected]>; Yang, SteveX <[email protected]>; Liu, KevinX <[email protected]>
Subject: [PATCH v4] net/i40e: restore disable double VLAN by defaultPreviously, QinQ is enabled by default and can't be disabled, but there'll be performance drop if QinQ is enabled.
So, disable QinQ by default.
Fixes ae97b8b89826 ("net/i40e: fix error disable double VLAN")Signed-off-by Kevin Liu <[email protected]>---
v2: update doc and refine commit log
---
v3: refine commit log
---
v4: update doc--- doc/guides/nics/i40e.rst | 13 ++++++++----- drivers/net/i40e/i40e_ethdev.c | 12 ------------ 2 files changed, 8 insertions(+), 17 deletions(-)doc/guides/nics/i40e.rst index renamed from doc/guides/nics/i40e.rst +0
-0
85fdc4944d..d5938fa8e4100644doc/guides/nics/i40e.rst +0
-0@@ -969,11 +969,14 @@ it will fail and return the info "Conflict with the firstrule's input set", which means the current rule's input set conflicts with the first rule's.
Remove the first rule if want to change the input set of the PCTYPE.-Disable QinQ is not supported when FW >= 8.4 -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~doc/guides/nics/i40e.rst +0
-2- -If upgrade FW to version 8.4 and higher, enable QinQ by default and disableQinQ is not supported.
doc/guides/nics/i40e.rst +8
-1- +Vlan related Features miss when FW >= 8.4 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +If FW version >= 8.4, there'll be some Vlan related issues: +1. TCI input set for QinQ is invalid. +2. Fail to configure TPID for QinQ. +3. Need to enable QinQ before enabling Vlan filter. +4. Fail to strip outer Vlan. Example of getting best performance with l3fwd example ------------------------------------------------------drivers/net/i40e/i40e_ethdev.c +0
-6@@ -4027,12 +4027,6 @@ i40e_vlan_offload_set(struct rte_eth_dev *dev, int mask) }if (mask &RTE_ETH_VLAN_EXTEND_MASK ) { -/* Double VLAN not allowed to be disabled.*/ -if (pf->fw8_3gt && !(rxmode->offloads & RTE_ETH_RX_OFFLOAD_VLAN_EXTEND)) { -PMD_DRV_LOG (WARNING , -"Disable double VLAN is not allowed after firmwarev8.3!"); -return 0 ; - }drivers/net/i40e/i40e_ethdev.c +0
-6i =0 ; num = vsi->mac_num; mac_filter = rte_zmalloc("mac_filter_info_data",@@ -6296,7 +6290,6 @@ int i40e_vsi_cfg_inner_vlan_stripping(struct i40e_vsi *vsi, bool on) static int i40e_dev_init_vlan(struct rte_eth_dev *dev) { -struct i40e_pf *pf =I40E_DEV_PRIVATE_TO_PF (dev->data- >dev_private);struct rte_eth_dev_data *data = dev->data;int ret;int mask =0 ;@@ -6307,11 +6300,6 @@ i40e_dev_init_vlan(struct rte_eth_dev *dev)RTE_ETH_VLAN_FILTER_MASK |RTE_ETH_VLAN_EXTEND_MASK ; -/* Double VLAN be enabled by default.*/ -if (pf->fw8_3gt) { -struct rte_eth_rxmode *rxmode = &dev->data- >dev_conf.rxmode; - rxmode->offloads |=RTE_ETH_RX_OFFLOAD_VLAN_EXTEND ; - } ret =i40e_vlan_offload_set (dev, mask);if (ret) {
Quoted 3 lines
PMD_DRV_LOG(INFO, "Failed to update vlan offload");
--
2.34.1
Zhang, Qi Z
AppliedQuoted 27 lines
-----Original Message-----
From: Xing, Beilei <[email protected]>
Sent: Friday, July 8, 2022 8:22 AM
To: Liu, KevinX <[email protected]>; [email protected]
Cc: Zhang, Yuying <[email protected]>; Yang, SteveX <[email protected]>
Subject: RE: [PATCH v4] net/i40e: restore disable double VLAN by defaultQuoted 15 lines
-----Original Message-----
From: Liu, KevinX <[email protected]>
Sent: Friday, July 8, 2022 1:05 AM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Zhang, Yuying <[email protected]>; Yang, SteveX <[email protected]>; Liu, KevinX <[email protected]>
Subject: [PATCH v4] net/i40e: restore disable double VLAN by defaultPreviously, QinQ is enabled by default and can't be disabled, but there'll be performance drop if QinQ is enabled.
So, disable QinQ by default.
Fixes ae97b8b89826 ("net/i40e: fix error disable double VLAN")
The commit log of above patch has been refined
Correct it to
Quoted 1 line
Acked-by Beilei Xing <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi
07/07/2022 19:04, Kevin Liu:
doc/guides/nics/i40e.rst it will fail and return the info "Conflict with the first rule's input set", · line 979
Quoted 8 lines
doc/guides/nics/i40e.rst +8
-0+Vlan related Features miss when FW >= 8.4 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +If FW version >= 8.4, there'll be some Vlan related issues: +1. TCI input set for QinQ is invalid. +2. Fail to configure TPID for QinQ. +3. Need to enable QinQ before enabling Vlan filter. +4. Fail to strip outer Vlan.
Did you check the HTML rendering?
A blank line is missing before the list.
Also you could use #. for automatic list numbering.
I'll fix when pulling.