Skip to contentSkip to conversation

net/i40e: fix FDIR rule confiliction issue

PATCH Applied Beilei Xing 3 participants 3 messages Nov 30, 2017 – Jan 9, 2018 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/i40e: fix FDIR rule confiliction issue

Failed to create two FDIR rules with different vlan id for the same PCTYPE. Root cause is that wrong hash key length is used.

Fixes 4149825bbdb9 ("net/i40e: finish integration FDIR with generic flow API")
---
 drivers/net/i40e/i40e_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/i40e/i40e_ethdev.c +1 -1
index 811cc9f..583f100 100644
@@ -1006,7 +1006,7 @@ i40e_init_fdir_filter_list(struct rte_eth_dev *dev)
 	struct rte_hash_parameters fdir_hash_params = {
 		.name = fdir_hash_name,
 		.entries = I40E_MAX_FDIR_FILTER_NUM,
-		.key_len = sizeof(struct rte_eth_fdir_input),
+		.key_len = sizeof(struct i40e_fdir_input),
 		.hash_func = rte_hash_crc,
 		.hash_func_init_val = 0,
 		.socket_id = rte_socket_id(),
Signature · 1 line
2.5.5
Acked-by on v1 1/1
#1 lore raw
Quoted 33 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Beilei Xing
Sent: Thursday, November 30, 2017 2:36 PM
To: Wu, Jingjing <[email protected]>
Cc: [email protected]; [email protected]
Subject: [dpdk-dev] [PATCH] net/i40e: fix FDIR rule confiliction issue

Failed to create two FDIR rules with different vlan id for the same PCTYPE. Root cause is that wrong hash key length is used.

Fixes 4149825bbdb9 ("net/i40e: finish integration FDIR with generic flow

API")
Cc: [email protected]

---
 drivers/net/i40e/i40e_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/i40e/i40e_ethdev.c +1 -2
index 811cc9f..583f100 100644
@@ -1006,7 +1006,7 @@ i40e_init_fdir_filter_list(struct rte_eth_dev *dev)
 	struct rte_hash_parameters fdir_hash_params = {
 		.name = fdir_hash_name,
 		.entries = I40E_MAX_FDIR_FILTER_NUM,
-		.key_len = sizeof(struct rte_eth_fdir_input),
+		.key_len = sizeof(struct i40e_fdir_input),
 		.hash_func = rte_hash_crc,
 		.hash_func_init_val = 0,
 		.socket_id = rte_socket_id(),
--
Quoted 1 line

2.5.5

Applied
#2 lore raw
Quoted 38 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Zhang, Qi Z
Sent: Friday, December 22, 2017 9:27 AM
To: Xing, Beilei; Wu, Jingjing
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix FDIR rule confiliction issue

Quoted 29 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Beilei Xing
Sent: Thursday, November 30, 2017 2:36 PM
To: Wu, Jingjing <[email protected]>
Cc: [email protected]; [email protected]
Subject: [dpdk-dev] [PATCH] net/i40e: fix FDIR rule confiliction issue

Failed to create two FDIR rules with different vlan id for the same PCTYPE. Root cause is that wrong hash key length is used.

Fixes 4149825bbdb9 ("net/i40e: finish integration FDIR with generic

flow
API")
Cc: [email protected]

---
 drivers/net/i40e/i40e_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/net/i40e/i40e_ethdev.c index 811cc9f..583f100 100644

drivers/net/i40e/i40e_ethdev.c +0 -1
@@ -1006,7 +1006,7 @@ i40e_init_fdir_filter_list(struct rte_eth_dev *dev)
 	struct rte_hash_parameters fdir_hash_params = {
 		.name = fdir_hash_name,
 		.entries = I40E_MAX_FDIR_FILTER_NUM,
-		.key_len = sizeof(struct rte_eth_fdir_input),
Quoted 8 lines
Quoted 6 lines
drivers/net/i40e/i40e_ethdev.c +1 -1
+		.key_len = sizeof(struct i40e_fdir_input),
 		.hash_func = rte_hash_crc,
 		.hash_func_init_val = 0,
 		.socket_id = rte_socket_id(),
--

2.5.5

Applied to dpdk-next-net-intel, thanks!

/Helin