Skip to content

cxgb4: add hash-filter support to tc-flower offload

Rahul Lakkireddy netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7cxgb4: save additional filter tuple field shifts in tp_paramsdrivers/net/ethernet/chelsio/cxgb4/cxgb4.h drivers/net/ethernet/chelsio/cxgb4/t4_hw.c drivers/net/ethernet/chelsio/cxgb4/t4_regs.h+29 -40 replies
2/7cxgb4: initialize hash-filter configurationdrivers/net/ethernet/chelsio/cxgb4/cxgb4.h drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.h +3 more+54 -40 replies
3/7cxgb4: add support to create hash filtersdrivers/net/ethernet/chelsio/cxgb4/cxgb4.h drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.h +3 more+562 -500 replies
4/7cxgb4: add support to delete hash filterdrivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.h drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +4 more+173 -70 replies
5/7cxgb4: add support to retrieve stats for hash filtersdrivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h+25 -130 replies
6/7cxgb4: convert flower table to use rhashtabledrivers/net/ethernet/chelsio/cxgb4/cxgb4.h drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c +1 more+82 -360 replies
7/7cxgb4: add support to create hash-filters via tc-flower offloaddrivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.h drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c+161 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/7] cxgb4: add hash-filter support to tc-flower offload

This series of patches add support to create hash-filters; a.k.a exact-match filters, to tc-flower offload. T6 supports creating ~500K hash-filters in hw and can theoretically be expanded up to ~1 million.

Patch 1 fetches and saves the configured hw filter tuple field shifts and filter mask.

Patch 2 initializes the driver to use hash-filter configuration.

Patch 3 adds support to create hash filters in hw.

Patch 4 adds support to delete hash filters in hw.

Patch 5 adds support to retrieve filter stats for hash filters.

Patch 6 converts the flower table to use rhashtable instead of static hlist.

Patch 7 finally adds support to create hash filters via tc-flower offload.

Thanks,
Rahul

Kumar Sanghvi (7):
cxgb4: save additional filter tuple field shifts in tp_params
cxgb4: initialize hash-filter configuration
cxgb4: add support to create hash filters
cxgb4: add support to delete hash filter
cxgb4: add support to retrieve stats for hash filters
cxgb4: convert flower table to use rhashtable
cxgb4: add support to create hash-filters via tc-flower offload

 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h         |  32 +-
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c  | 928 +++++++++++++++++++--
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.h  |   8 +
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c    |  26 +-
 .../net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c   | 126 ++-
 .../net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.h   |   4 +-
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c  |   4 +-
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h     |   6 +-
 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c         |  18 +-
 drivers/net/ethernet/chelsio/cxgb4/t4_msg.h        |   5 +
 drivers/net/ethernet/chelsio/cxgb4/t4_regs.h       |  17 +
 drivers/net/ethernet/chelsio/cxgb4/t4_tcb.h        |  22 +
 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h      |   1 +
 13 files changed, 1082 insertions(+), 115 deletions(-)
Signature · 1 line
2.14.1