Skip to content

cxgb4: add support for offloading TC u32 filters

Rahul Lakkireddy netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 1 replyIn review
  2. v25 patches 3 repliesSuperseded
  3. v17 patches 8 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5cxgb4: move common filter code to separate filedrivers/net/ethernet/chelsio/cxgb4/Makefile drivers/net/ethernet/chelsio/cxgb4/cxgb4.h drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c +2 more+346 -2640 replies
2/5cxgb4: add common api support for configuring filtersdrivers/net/ethernet/chelsio/cxgb4/cxgb4.h drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.h +2 more+512 -340 replies
3/5cxgb4: add parser to translate u32 filters to internal specdrivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h+282 -00 replies
4/5cxgb4: add support for offloading u32 filtersdrivers/net/ethernet/chelsio/cxgb4/Makefile drivers/net/ethernet/chelsio/cxgb4/cxgb4.h drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +3 more+525 -20 replies
5/5cxgb4: add support for drop and redirect actionsdrivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c+71 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH net-next v3 0/5] cxgb4: add support for offloading TC u32 filters

This series of patches add support to offload TC u32 filters onto Chelsio NICs.

Patch 1 moves current common filter code to separate files in order to provide a common api for performing packet classification and filtering in Chelsio NICs.

Patch 2 enables filters for normal NIC configuration and implements common api for setting and deleting filters.

Patches 3-5 add support for TC u32 offload via ndo_setup_tc.

---
v3:

Based on review and suggestion from David Miller <[email protected]>
- Fixed all local variable declarations by placing them in longest line first and shortest line last order.

v2:

Based on review and suggestions from Jiri Pirko <[email protected]>:
- Replaced macros S and U with appropriate static helper functions.
- Moved completion code for set and delete filters to respective functions cxgb4_set_filter() and cxgb4_del_filter(). Renamed the original functions to __cxgb4_set_filter() and __cxgb4_del_filter() in case synchronization is not required.
- Dropped debugfs patch.
- Merged code for inserting and deleting u32 filters into a single patch.
- Reworked and fixed bugs with traversing the actions list.
- Removed all unnecessary extra ().

Rahul Lakkireddy (5):
cxgb4: move common filter code to separate file
cxgb4: add common api support for configuring filters
cxgb4: add parser to translate u32 filters to internal spec
cxgb4: add support for offloading u32 filters
cxgb4: add support for drop and redirect actions

 drivers/net/ethernet/chelsio/cxgb4/Makefile        |   2 +-
 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h         |  29 +
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c  | 721 +++++++++++++++++++++
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.h  |  48 ++
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c    | 344 ++--------
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c  | 483 ++++++++++++++
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.h  |  57 ++
 .../ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h    | 294 +++++++++
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h     |  26 +-
 9 files changed, 1720 insertions(+), 284 deletions(-)
 create mode 100644 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c
 create mode 100644 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.h
 create mode 100644 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c
 create mode 100644 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.h
 create mode 100644 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h
Signature · 1 line
2.5.3