Skip to contentSkip to conversation

net/ice: fix flow director

PATCH Applied Ying Wang 2 participants 2 messages Oct 30, 2019 Network drivers

lore
Share & tools
lore

Ying Wang

author
#0 lore raw

PATCH 1/1 net/ice: fix flow director

Flow director rule can't be created when the flow table is nearly full. The patch fixed this issue to enable created flows reaching the maximum number.

Fixes 1a2fc1799f09 ("net/ice: reject duplicated flow for flow director")
---
 drivers/net/ice/ice_fdir_filter.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ice/ice_fdir_filter.c +1 -0
index 736ccd54e..9389b1f02 100644
@@ -366,6 +366,7 @@ ice_fdir_init_filter_list(struct ice_pf *pf)
 		.hash_func = rte_hash_crc,
 		.hash_func_init_val = 0,
 		.socket_id = rte_socket_id(),
+		.extra_flag = RTE_HASH_EXTRA_FLAGS_EXT_TABLE,
 	};
 
 	/* Initialize hash */
Signature · 1 line
2.15.1
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 26 lines · Ying Wang

Flow director rule can't be created when the flow table is nearly full. The patch fixed this issue to enable created flows reaching the maximum number.

Fixes 1a2fc1799f09 ("net/ice: reject duplicated flow for flow director")

---
drivers/net/ice/ice_fdir_filter.c | 1 +

1 file changed, 1 insertion(+)
drivers/net/ice/ice_fdir_filter.c +1 -0
index 736ccd54e..9389b1f02 100644
@@ -366,6 +366,7 @@ ice_fdir_init_filter_list(struct ice_pf *pf)
 		.hash_func = rte_hash_crc,
 		.hash_func_init_val = 0,
 		.socket_id = rte_socket_id(),
+		.extra_flag = RTE_HASH_EXTRA_FLAGS_EXT_TABLE,
 	};
 
 	/* Initialize hash */
Signature · 1 line
2.15.1

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