summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
diff options
context:
space:
mode:
authorKumar Sanghvi2017-11-01 04:23:04 +0100
committerDavid S. Miller2017-11-01 14:06:03 +0100
commit79e6d46a65abfd721de378bf496833a04ea10afe (patch)
treed2b9ae96fc8c2700bbd31dfe227362c1f699830f /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
parentcxgb4: add support to retrieve stats for hash filters (diff)
downloadkernel-qcow2-linux-79e6d46a65abfd721de378bf496833a04ea10afe.tar.gz
kernel-qcow2-linux-79e6d46a65abfd721de378bf496833a04ea10afe.tar.xz
kernel-qcow2-linux-79e6d46a65abfd721de378bf496833a04ea10afe.zip
cxgb4: convert flower table to use rhashtable
T6 supports ~500K hash filters and can theoretically climb up to ~1 million hash filters. Preallocated hash table is not efficient in terms of memory usage. So, use rhashtable instead which gives the flexibility to grow based on usage. Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com> Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com> Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4.h')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
index bb7f0e4c9a81..0c83ceb5a1a6 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
@@ -918,8 +918,10 @@ struct adapter {
struct chcr_stats_debug chcr_stats;
/* TC flower offload */
- DECLARE_HASHTABLE(flower_anymatch_tbl, 9);
+ struct rhashtable flower_tbl;
+ struct rhashtable_params flower_ht_params;
struct timer_list flower_stats_timer;
+ struct work_struct flower_stats_work;
/* Ethtool Dump */
struct ethtool_dump eth_dump;