Skip to contentSkip to conversation

net/i40e: fix to ensure vector mode is not used

PATCH Superseded Bernard Iremonger 4 participants 14 messages Apr 11, 2017 – Apr 19, 2017 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/i40e: fix to ensure vector mode is not used

In rx vector mode, the QinQ VLAN tag is not stripped. When hw_vlan_extend is set for QinQ ensure that rx vector mode is not selected.

Fixes ca74903b75cf ("net/i40e: extract non-x86 specific code from vector driver")
---
 drivers/net/i40e/i40e_rxtx_vec_common.h | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/i40e/i40e_rxtx_vec_common.h +4 -0
index 952fd4b63..692096684 100644
@@ -234,6 +234,10 @@ i40e_rx_vec_dev_conf_condition_check_default(struct rte_eth_dev *dev)
 	if (rxmode->header_split == 1)
 		return -1;
 
+	/* no QinQ support */
+	if (rxmode->hw_vlan_extend == 1)
+		return -1;
+
 	return 0;
 #else
 	RTE_SET_USED(dev);
Signature · 1 line
2.11.0
#1 lore raw

Hi Bernard:

Quoted 9 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Bernard Iremonger
Sent: Tuesday, April 11, 2017 11:01 PM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>; Iremonger, Bernard <[email protected]>
Subject: [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

Quoted 6 lines

In rx vector mode, the QinQ VLAN tag is not stripped.
When hw_vlan_extend is set for QinQ ensure that rx vector mode is not selected.

Fixes ca74903b75cf ("net/i40e: extract non-x86 specific code from vector

driver")

Why fixes? I didn't see above commit change rx callback function if hw_vlan_extend == 1

Quoted 25 lines
---
 drivers/net/i40e/i40e_rxtx_vec_common.h | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/i40e/i40e_rxtx_vec_common.h +4 -0
index 952fd4b63..692096684 100644
@@ -234,6 +234,10 @@
 i40e_rx_vec_dev_conf_condition_check_default(struct rte_eth_dev *dev)
 	if (rxmode->header_split == 1)
 		return -1;
 
+	/* no QinQ support */
+	if (rxmode->hw_vlan_extend == 1)
+		return -1;
+
 	return 0;
 #else

RTE_SET_USED(dev);
--
2.11.0

#2 lore raw

Hi Qi,

Quoted 27 lines

-----Original Message-----
From: Zhang, Qi Z
Sent: Wednesday, April 12, 2017 12:43 PM
To: Iremonger, Bernard <[email protected]>; [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>; Iremonger, Bernard <[email protected]>
Subject: RE: [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

Hi Bernard:

Quoted 2 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Bernard

Iremonger

Quoted 12 lines

Sent: Tuesday, April 11, 2017 11:01 PM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>; Iremonger, Bernard <[email protected]>
Subject: [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

In rx vector mode, the QinQ VLAN tag is not stripped.
When hw_vlan_extend is set for QinQ ensure that rx vector mode is not selected.

Quoted 6 lines
Quoted 3 lines
Fixes ca74903b75cf ("net/i40e: extract non-x86 specific code from

vector
driver")

Why fixes? I didn't see above commit change rx callback function if hw_vlan_extend == 1

Some of the QinQ functionality was introduced in 17.02, this functionality also has the same issue. So I added a fixes line.

Quoted 17 lines
Quoted 12 lines
---
 drivers/net/i40e/i40e_rxtx_vec_common.h | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/i40e/i40e_rxtx_vec_common.h +0 -0
index 952fd4b63..692096684 100644
@@ -234,6 +234,10 @@
Quoted 1 line

i40e_rx_vec_dev_conf_condition_check_default(struct rte_eth_dev

*dev)

Quoted 3 lines
drivers/net/i40e/i40e_rxtx_vec_common.h +0 -0
 	if (rxmode->header_split == 1)
 		return -1;
Quoted 9 lines
Quoted 9 lines
drivers/net/i40e/i40e_rxtx_vec_common.h +4 -1
+	/* no QinQ support */
+	if (rxmode->hw_vlan_extend == 1)
+		return -1;
+
 	return 0;
 #else
 	RTE_SET_USED(dev);
--

2.11.0

Regards,

Bernard.

#3 lore raw
Quoted 43 lines

-----Original Message-----
From: Iremonger, Bernard
Sent: Wednesday, April 12, 2017 8:30 PM
To: Zhang, Qi Z <[email protected]>; [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>
Subject: RE: [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

Hi Qi,

Quoted 31 lines

-----Original Message-----
From: Zhang, Qi Z
Sent: Wednesday, April 12, 2017 12:43 PM
To: Iremonger, Bernard <[email protected]>; [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>; Iremonger, Bernard <[email protected]>
Subject: RE: [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

Hi Bernard:

Quoted 2 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Bernard

Iremonger

Quoted 15 lines

Sent: Tuesday, April 11, 2017 11:01 PM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>; Iremonger, Bernard <[email protected]>
Subject: [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

In rx vector mode, the QinQ VLAN tag is not stripped. When hw_vlan_extend is set for QinQ ensure that rx vector mode is not selected.

Fixes ca74903b75cf ("net/i40e: extract non-x86 specific code from

vector
driver")

Quoted 6 lines
Quoted 2 lines

Why fixes? I didn't see above commit change rx callback function if hw_vlan_extend == 1

Some of the QinQ functionality was introduced in 17.02, this functionality also has the same issue.
So I added a fixes line.

If you think this patch is a fix, you need to find the commit that introduce this issue The commit ca74903b75cf is not the root cause of the issue, it just move the code from I40e_rxtx_vec.c to i40e_rxtx_vec_common.h

Regards
Qi

#4 lore raw

Hi Qi,

<snip>

Quoted 39 lines
Quoted 12 lines
Quoted 12 lines

-----Original Message-----
From: Zhang, Qi Z
Sent: Wednesday, April 12, 2017 12:43 PM
To: Iremonger, Bernard <[email protected]>; [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>; Iremonger, Bernard <[email protected]>
Subject: RE: [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

Hi Bernard:

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Bernard

Iremonger

Quoted 4 lines

Sent: Tuesday, April 11, 2017 11:01 PM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>;

Iremonger,

Quoted 12 lines
Quoted 12 lines
Quoted 11 lines

Bernard <[email protected]>
Subject: [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

In rx vector mode, the QinQ VLAN tag is not stripped. When hw_vlan_extend is set for QinQ ensure that rx vector mode is not selected.

Fixes ca74903b75cf ("net/i40e: extract non-x86 specific code from

vector
driver")

Quoted 6 lines
Quoted 2 lines

Why fixes? I didn't see above commit change rx callback function if hw_vlan_extend == 1

Some of the QinQ functionality was introduced in 17.02, this functionality also has the same issue.
So I added a fixes line.

Quoted 7 lines

If you think this patch is a fix, you need to find the commit that introduce this issue The commit ca74903b75cf is not the root cause of the issue, it just move the code from I40e_rxtx_vec.c to i40e_rxtx_vec_common.h

Regards
Qi

This is a fix to the i40e_rx_vec_dev_conf_condition_check_default() function.
The issue is caused because there is no check on the hw_vlan_extend flag at present.
This is the correct fixline for that function.
ca74903b75 (Jianbo Liu 2016-10-14 09:30:00 +0530 221) i40e_rx_vec_dev_conf_condition_check_default(struct rte_eth_dev *dev)

I will send a v2 as I should have added the "Cc: [email protected]" line.

Regards,

Bernard.

#5 lore raw
Quoted 52 lines · Bernard

Hi Qi,

<snip>

Quoted 39 lines
Quoted 12 lines
Quoted 12 lines

-----Original Message-----
From: Zhang, Qi Z
Sent: Wednesday, April 12, 2017 12:43 PM
To: Iremonger, Bernard <[email protected]>; [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>; Iremonger, Bernard <[email protected]>
Subject: RE: [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

Hi Bernard:

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Bernard

Iremonger

Quoted 4 lines

Sent: Tuesday, April 11, 2017 11:01 PM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>;

Iremonger,

Quoted 12 lines
Quoted 12 lines
Quoted 11 lines

Bernard <[email protected]>
Subject: [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

In rx vector mode, the QinQ VLAN tag is not stripped. When hw_vlan_extend is set for QinQ ensure that rx vector mode is not selected.

Fixes ca74903b75cf ("net/i40e: extract non-x86 specific code from

vector
driver")

Quoted 6 lines
Quoted 2 lines

Why fixes? I didn't see above commit change rx callback function if hw_vlan_extend == 1

Some of the QinQ functionality was introduced in 17.02, this functionality also has the same issue.
So I added a fixes line.

Quoted 7 lines

If you think this patch is a fix, you need to find the commit that introduce this issue The commit ca74903b75cf is not the root cause of the issue, it just move the code from I40e_rxtx_vec.c to i40e_rxtx_vec_common.h

Regards
Qi

Quoted 6 lines

This is a fix to the i40e_rx_vec_dev_conf_condition_check_default() function.
The issue is caused because there is no check on the hw_vlan_extend flag at present.
This is the correct fixline for that function.
ca74903b75 (Jianbo Liu 2016-10-14 09:30:00 +0530 221) i40e_rx_vec_dev_conf_condition_check_default(struct rte_eth_dev *dev)

I will send a v2 as I should have added the "Cc: [email protected]" line.

Hi Bernard,

I agree with Qi, the commit you are using is just moves function to a common header, you are not fixing that.

Perhaps fixline can be the commit that adds QinQ support, because it forgets adding hw_vlan_extend check?

byw, since this common function used by other vector drivers, neon and altivec, will this something effect them, is there any case "hw_vlan_extend == 1" but other vector drivers can be used?

Thanks,
ferruh

Quoted 6 lines

Regards,

Bernard.

#6 lore raw

Hi Bernard:

Quoted 63 lines

-----Original Message-----
From: Yigit, Ferruh
Sent: Wednesday, April 12, 2017 10:08 PM
To: Iremonger, Bernard <[email protected]>; Zhang, Qi Z <[email protected]>; [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

Quoted 53 lines · Bernard

Hi Qi,

<snip>

Quoted 47 lines
Quoted 12 lines
Quoted 12 lines

-----Original Message-----
From: Zhang, Qi Z
Sent: Wednesday, April 12, 2017 12:43 PM
To: Iremonger, Bernard <[email protected]>; [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>; Iremonger, Bernard <[email protected]>
Subject: RE: [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

Hi Bernard:

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Bernard

Iremonger

Quoted 4 lines

Sent: Tuesday, April 11, 2017 11:01 PM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>;

Iremonger,

Quoted 12 lines
Quoted 12 lines
Quoted 11 lines

Bernard <[email protected]>
Subject: [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

In rx vector mode, the QinQ VLAN tag is not stripped. When hw_vlan_extend is set for QinQ ensure that rx vector mode is not selected.

Fixes ca74903b75cf ("net/i40e: extract non-x86 specific code from

vector
driver")

Quoted 6 lines
Quoted 2 lines

Why fixes? I didn't see above commit change rx callback function if hw_vlan_extend == 1

Some of the QinQ functionality was introduced in 17.02, this functionality also has the same issue.
So I added a fixes line.

If you think this patch is a fix, you need to find the commit that introduce this issue The commit ca74903b75cf is not the root cause of the issue, it just move the code from I40e_rxtx_vec.c to i40e_rxtx_vec_common.h

Regards
Qi

Quoted 9 lines
Quoted 1 line

This is a fix to the i40e_rx_vec_dev_conf_condition_check_default()

function.

Quoted 1 line

The issue is caused because there is no check on the hw_vlan_extend flag

at present.

Quoted 2 lines

This is the correct fixline for that function.
ca74903b75 (Jianbo Liu 2016-10-14 09:30:00 +0530 221)

i40e_rx_vec_dev_conf_condition_check_default(struct rte_eth_dev *dev)

Quoted 2 lines

I will send a v2 as I should have added the "Cc: [email protected]" line.

I think it should be

Fixes 8e109464c02292 ("i40e: allow vector Rx and Tx usage")

This is the first commit after which that QinQ is allowed with vPMD.

Quoted 6 lines

Hi Bernard,

I agree with Qi, the commit you are using is just moves function to a common header, you are not fixing that.

Quoted 6 lines

Perhaps fixline can be the commit that adds QinQ support, because it forgets adding hw_vlan_extend check?

byw, since this common function used by other vector drivers, neon and altivec, will this something effect them, is there any case "hw_vlan_extend == 1" but other vector drivers can be used?

As I see, neon and altivec follow x86's implementation, they do not support QinQ neither.

Quoted 10 lines

Thanks,
ferruh

Quoted 6 lines

Regards,

Bernard.

#8 lore raw
In reply to Ferruh Yigit

Hi Ferruh,

Quoted 76 lines

-----Original Message-----
From: Yigit, Ferruh
Sent: Wednesday, April 12, 2017 3:08 PM
To: Iremonger, Bernard <[email protected]>; Zhang, Qi Z <[email protected]>; [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

Quoted 10 lines · Bernard

Hi Qi,

<snip>

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

-----Original Message-----
From: Zhang, Qi Z
Sent: Wednesday, April 12, 2017 12:43 PM
To: Iremonger, Bernard <[email protected]>;

[email protected]

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>;

Iremonger,

Quoted 38 lines
Quoted 38 lines
Quoted 6 lines
Quoted 6 lines

Bernard <[email protected]>
Subject: RE: [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

Hi Bernard:

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Bernard

Iremonger

Quoted 4 lines

Sent: Tuesday, April 11, 2017 11:01 PM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>;

Iremonger,

Quoted 12 lines
Quoted 12 lines
Quoted 11 lines

Bernard <[email protected]>
Subject: [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

In rx vector mode, the QinQ VLAN tag is not stripped. When hw_vlan_extend is set for QinQ ensure that rx vector mode is not selected.

Fixes ca74903b75cf ("net/i40e: extract non-x86 specific code from

vector
driver")

Quoted 6 lines
Quoted 2 lines

Why fixes? I didn't see above commit change rx callback function if hw_vlan_extend == 1

Some of the QinQ functionality was introduced in 17.02, this functionality also has the same issue.
So I added a fixes line.

If you think this patch is a fix, you need to find the commit that introduce this issue The commit ca74903b75cf is not the root cause of the issue, it just move the code from I40e_rxtx_vec.c to i40e_rxtx_vec_common.h

Quoted 4 lines
Quoted 3 lines

Regards
Qi

This is a fix to the i40e_rx_vec_dev_conf_condition_check_default()

function.

Quoted 1 line

The issue is caused because there is no check on the hw_vlan_extend flag

at present.

Quoted 2 lines

This is the correct fixline for that function.
ca74903b75 (Jianbo Liu 2016-10-14 09:30:00 +0530 221)

i40e_rx_vec_dev_conf_condition_check_default(struct rte_eth_dev *dev)

Quoted 2 lines

I will send a v2 as I should have added the "Cc: [email protected]" line.

Quoted 7 lines

Hi Bernard,

I agree with Qi, the commit you are using is just moves function to a common header, you are not fixing that.

Perhaps fixline can be the commit that adds QinQ support, because it forgets adding hw_vlan_extend check?

Ok, I will use that commit line.

Quoted 4 lines

byw, since this common function used by other vector drivers, neon and altivec, will this something effect them, is there any case "hw_vlan_extend == 1" but other vector drivers can be used?

The hw_vlan_extend is defined in struct rte_eth_rxmode{} in rte_ethedev.h so it can be used by other vector drivers. hw_vlan_extend was handled in this function previously before the following patch
net/i40e: remove option to disable offload flags
commit : 2d7a4ce0806dfdc5b27b280eaf87eeec4848a19f

Quoted 4 lines

Thanks,
ferruh

Regards,

Bernard.

#7 lore raw
In reply to Zhang, Qi Z

Hi Qi,

<snip>

Quoted 56 lines
Quoted 46 lines
Quoted 46 lines
Quoted 46 lines
Quoted 14 lines
Quoted 14 lines

-----Original Message-----
From: Zhang, Qi Z
Sent: Wednesday, April 12, 2017 12:43 PM
To: Iremonger, Bernard <[email protected]>; [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>; Iremonger, Bernard <[email protected]>
Subject: RE: [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

Hi Bernard:

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Bernard

Iremonger

Quoted 4 lines

Sent: Tuesday, April 11, 2017 11:01 PM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>;

Iremonger,

Quoted 12 lines
Quoted 12 lines
Quoted 11 lines

Bernard <[email protected]>
Subject: [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

In rx vector mode, the QinQ VLAN tag is not stripped. When hw_vlan_extend is set for QinQ ensure that rx vector mode is not selected.

Fixes ca74903b75cf ("net/i40e: extract non-x86 specific code

from vector
driver")

Quoted 6 lines
Quoted 2 lines

Why fixes? I didn't see above commit change rx callback function if hw_vlan_extend == 1

Some of the QinQ functionality was introduced in 17.02, this functionality also has the same issue.
So I added a fixes line.

If you think this patch is a fix, you need to find the commit that introduce this issue The commit ca74903b75cf is not the root cause of the issue, it just move the code from I40e_rxtx_vec.c to i40e_rxtx_vec_common.h

Quoted 6 lines
Quoted 4 lines
Quoted 3 lines

Regards
Qi

This is a fix to the i40e_rx_vec_dev_conf_condition_check_default()

function.

Quoted 1 line

The issue is caused because there is no check on the hw_vlan_extend

flag

Quoted 3 lines

at present.

Quoted 2 lines

This is the correct fixline for that function.
ca74903b75 (Jianbo Liu 2016-10-14 09:30:00 +0530 221)

Quoted 8 lines
Quoted 1 line

i40e_rx_vec_dev_conf_condition_check_default(struct rte_eth_dev

*dev)

Quoted 2 lines
Quoted 2 lines

I will send a v2 as I should have added the "Cc: [email protected]" line.

I think it should be

Fixes 8e109464c02292 ("i40e: allow vector Rx and Tx usage") This is the first

commit after which that QinQ is allowed with vPMD.

Or should it be the following commit, when it is used for QinQ?

Fixes 5b2d37858d32 ("net/i40e: fix single VLAN tag to be outer VLAN tag")
Quoted 9 lines
Quoted 9 lines

Hi Bernard,

I agree with Qi, the commit you are using is just moves function to a common header, you are not fixing that.

Perhaps fixline can be the commit that adds QinQ support, because it forgets adding hw_vlan_extend check?

Quoted 17 lines
Quoted 3 lines

byw, since this common function used by other vector drivers, neon and altivec, will this something effect them, is there any case "hw_vlan_extend == 1" but other vector drivers can be used?

As I see, neon and altivec follow x86's implementation, they do not support QinQ neither.

Quoted 10 lines

Thanks,
ferruh

Quoted 6 lines

Regards,

Bernard.

Regards,

Bernard.

#9 lore raw

PATCH v2 1/1 net/i40e: fix to ensure vector mode is not used

In reply to Bernard Iremonger

In rx vector mode, the QinQ VLAN tag is not stripped. When hw_vlan_extend is set for QinQ ensure that rx vector mode is not selected.

Fixes 5b2d37858d32 ("net/i40e: fix single VLAN tag to be outer VLAN tag")

---
Changes in v2:
Rebased to latest dpdk-next-net
Updated Fixes line.
Added Cc: line

 drivers/net/i40e/i40e_rxtx_vec_common.h | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/i40e/i40e_rxtx_vec_common.h +4 -0
index 952fd4b63..692096684 100644
@@ -234,6 +234,10 @@ i40e_rx_vec_dev_conf_condition_check_default(struct rte_eth_dev *dev)
 	if (rxmode->header_split == 1)
 		return -1;
 
+	/* no QinQ support */
+	if (rxmode->hw_vlan_extend == 1)
+		return -1;
+
 	return 0;
 #else
 	RTE_SET_USED(dev);
Signature · 1 line
2.11.0
#10 lore raw

PATCH v3 1/1 net/i40e: fix to ensure vector mode is not used

In rx vector mode, QinQ is not supported.
When hw_vlan_extend is set for QinQ ensure that
rx vector mode is not selected.

Fixes 5b2d37858d32 ("net/i40e: fix single VLAN tag to be outer VLAN tag")

---
Changes in v3:
Rebased to latest dpdk-next-net
Revised commit message.

Changes in v2:
Rebased to latest dpdk-next-net
Updated Fixes line.
Added Cc: line

 drivers/net/i40e/i40e_rxtx_vec_common.h | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/i40e/i40e_rxtx_vec_common.h +4 -0
index 952fd4b63..692096684 100644
@@ -234,6 +234,10 @@ i40e_rx_vec_dev_conf_condition_check_default(struct rte_eth_dev *dev)
 	if (rxmode->header_split == 1)
 		return -1;
 
+	/* no QinQ support */
+	if (rxmode->hw_vlan_extend == 1)
+		return -1;
+
 	return 0;
 #else
 	RTE_SET_USED(dev);
Signature · 1 line
2.11.0
Acked-by on v3 1/1
#11 lore raw
Quoted 23 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Bernard Iremonger
Sent: Thursday, April 13, 2017 10:53 AM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>; Iremonger, Bernard <[email protected]>; [email protected]
Subject: [dpdk-dev] [PATCH v3] net/i40e: fix to ensure vector mode is not used

In rx vector mode, QinQ is not supported.
When hw_vlan_extend is set for QinQ ensure that
rx vector mode is not selected.

Fixes 5b2d37858d32 ("net/i40e: fix single VLAN tag to be outer VLAN tag")

---
Changes in v3:
Rebased to latest dpdk-next-net
Revised commit message.

Quoted 8 lines

Changes in v2:
Rebased to latest dpdk-next-net
Updated Fixes line.
Added Cc: line

 drivers/net/i40e/i40e_rxtx_vec_common.h | 4 ++++
 1 file changed, 4 insertions(+)
Applied
#12 lore raw
Quoted 14 lines · Konstantin
Quoted 14 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Bernard Iremonger
Sent: Thursday, April 13, 2017 10:53 AM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>; Iremonger, Bernard <[email protected]>; [email protected]
Subject: [dpdk-dev] [PATCH v3] net/i40e: fix to ensure vector mode is not used

In rx vector mode, QinQ is not supported.
When hw_vlan_extend is set for QinQ ensure that
rx vector mode is not selected.

Quoted 6 lines
Quoted 4 lines
Fixes 5b2d37858d32 ("net/i40e: fix single VLAN tag to be outer VLAN tag")

Applied to dpdk-next-net/master, thanks.

#13 lore raw
Quoted 15 lines · Ferruh Yigit
Quoted 14 lines · Konstantin
Quoted 14 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Bernard Iremonger
Sent: Thursday, April 13, 2017 10:53 AM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi <[email protected]>; Iremonger, Bernard <[email protected]>; [email protected]
Subject: [dpdk-dev] [PATCH v3] net/i40e: fix to ensure vector mode is not used

In rx vector mode, QinQ is not supported.
When hw_vlan_extend is set for QinQ ensure that
rx vector mode is not selected.

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
Fixes 5b2d37858d32 ("net/i40e: fix single VLAN tag to be outer VLAN tag")

Applied to dpdk-next-net/master, thanks.

Updated Fixes line to:

Fixes 8e109464c022 ("i40e: allow vector Rx and Tx usage")