ice: iavf: add support for TC U32 filters on VFs
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest13 patches 9 repliesIn review
- v413 patches 1 replySuperseded
- v313 patches 24 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 13 patches | 22 replies | Superseded | |
| v1 | 13 patches | 0 replies | Superseded |
Changes in v5 from the cover letter
- Add queue ID validation to iavf_add_cls_u32() (patch 13)
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | ice: add parser create and destroy skeletondrivers/ drivers/ drivers/ +1 more | +47 | 0 replies | |
| 2/13 | ice: parse and init various DDP parser sectionsdrivers/ drivers/ drivers/ +2 more | +1760 | 1 reply | |
| 3/13 | ice: add debugging functions for the parser sectionsdrivers/ | +470 | 0 replies | |
| 4/13 | ice: add parser internal helper functionsdrivers/ drivers/ | +245 | 0 replies | |
| 5/13 | ice: add parser execution main loopdrivers/ drivers/ drivers/ +1 more | +995 | 1 reply | |
| 6/13 | ice: support turning on/off the parser's double vlan modedrivers/ drivers/ | +93 | 1 reply | |
| 7/13 | ice: add UDP tunnels support to the parserdrivers/ drivers/ | +111 | 0 replies | |
| 8/13 | ice: add API for parser profile initializationdrivers/ drivers/ | +151 | 1 reply | |
| 9/13 | virtchnl: support raw packet in protocol headerinclude/ | +11 | 0 replies | |
| 10/13 | ice: add method to disable FDIR SWAP optiondrivers/ drivers/ drivers/ | +55 | 1 reply | |
| 11/13 | ice: enable FDIR filters from raw binary patterns for VFsdrivers/ drivers/ drivers/ +3 more | +565 | 1 reply | |
| 12/13 | iavf: refactor add/del FDIR filtersdrivers/ drivers/ drivers/ +1 more | +83 | 1 reply | |
| 13/13 | iavf: add support for offloading tc U32 cls filtersdrivers/ drivers/ drivers/ +5 more | +238 | 1 reply |
Reviews trailers per patch
All 13 patches have a Reviewed-by or Acked-by.
| Patch | Simon Horman | Marcin Szycik | Wojciech Drewek | Rafal Romanowski | Aleksandr Loktionov | Sridhar Samudrala |
|---|---|---|---|---|---|---|
| 1/13 | R-b | R-b | R-b | T-b | ||
| 2/13 | R-b | R-b | T-b | |||
| 3/13 | R-b | T-b | ||||
| 4/13 | R-b | R-b | R-b | T-b | R-b | |
| 5/13 | R-b | R-b | T-b | |||
| 6/13 | R-b | R-b | T-b | |||
| 7/13 | R-b | R-b | T-b | |||
| 8/13 | R-b | R-b | T-b | |||
| 9/13 | R-b | R-b | T-b | |||
| 10/13 | R-b | R-b | T-b | |||
| 11/13 | R-b | R-b | T-b | |||
| 12/13 | R-b | R-b | T-b | R-b | ||
| 13/13 | R-b | R-b | T-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.
Cover letter [PATCH iwl-next v5 00/13] ice: iavf: add support for TC U32 filters on VFs
The Intel® Ethernet 800 Series is designed with a pipeline that has an on-chip programmable capability called Dynamic Device Personalization (DDP). A DDP package is loaded by the driver during probe time. The DDP package programs functionality in both the parser and switching blocks in the pipeline, allowing dynamic support for new and existing protocols. Once the pipeline is configured, the driver can identify the protocol and apply any HW action in different stages, for example, direct packets to desired hardware queues (flow director), queue groups or drop.
Patches 1-8 introduce a DDP package parser API that enables different pipeline stages in the driver to learn the HW parser capabilities from the DDP package that is downloaded to HW. The parser library takes raw packet patterns and masks (in binary) indicating the packet protocol fields to be matched and generates the final HW profiles that can be applied at the required stage. With this API, raw flow filtering for FDIR or RSS could be done on new protocols or headers without any driver or Kernel updates (only need to update the DDP package). These patches were submitted before [1] but were not accepted mainly due to lack of a user.
Patches 9-11 extend the virtchnl support to allow the VF to request raw flow director filters. Upon receiving the raw FDIR filter request, the PF driver allocates and runs a parser lib instance and generates the hardware profile definitions required to program the FDIR stage. These were also submitted before [2].
Finally, patches 12 and 13 add TC U32 filter support to the iavf driver. Using the parser API, the ice driver runs the raw patterns sent by the user and then adds a new profile to the FDIR stage associated with the VF's VSI. Refer to examples in patch 13 commit message.
[1]: Link: https://lore.kernel.org/netdev/[email protected]/
[2]: Link: https://lists.osuosl.org/pipermail/intel-wired-lan/Week-of-Mon-20230814/036333.html
---
v5:
- Add queue ID validation to iavf_add_cls_u32() (patch 13)
v4:
- Fix idx init value in ice_parser_create_table() (patch 2)
- Use non-fixed width types for iterators in ice_disable_fd_swap()
(patch 10)
- Do not cast return value of ice_parser_create_table() (*void) in all
callers (patch 2)
- Add kdoc short descriptions (patch 11)
- Add description to patch 12 message that a minor bug is also fixed
(access FDIR list out of spinlock protection)
- Document return values of iavf_add_cls_u32(), iavf_del_cls_u32() and
iavf_setup_tc_cls_u32() (patch 13) v3:
- Remove header inclusion re-order in ice_vf_lib.c (patch 11).
- Fix couple of errors reported by smatch:
- https://lore.kernel.org/all/[email protected]/
- https://lore.kernel.org/all/[email protected]/
- Add "Return:" description in kernel-docs for all new functions.
- Use new macro ICE_MI_GBDM_GENMASK_ULL for better readability (patch 2)
- Remove unnecessary casts in ice_parser.c and ice_parser_rt.c.
v2:
- No changes, just cc netdev
Ahmed Zaki (2):
iavf: refactor add/del FDIR filters
iavf: add support for offloading tc U32 cls filters
Junfeng Guo (11):
ice: add parser create and destroy skeleton
ice: parse and init various DDP parser sections
ice: add debugging functions for the parser sections
ice: add parser internal helper functions
ice: add parser execution main loop
ice: support turning on/off the parser's double vlan mode
ice: add UDP tunnels support to the parser
ice: add API for parser profile initialization
virtchnl: support raw packet in protocol header
ice: add method to disable FDIR SWAP option
ice: enable FDIR filters from raw binary patterns for VFs
drivers/net/ethernet/intel/iavf/iavf.h | 30 + .../net/ethernet/intel/iavf/iavf_ethtool.c | 59 +- drivers/net/ethernet/intel/iavf/iavf_fdir.c | 89 +- drivers/net/ethernet/intel/iavf/iavf_fdir.h | 13 +- drivers/net/ethernet/intel/iavf/iavf_main.c | 160 +- .../net/ethernet/intel/iavf/iavf_virtchnl.c | 25 +- drivers/net/ethernet/intel/ice/Makefile | 2 + drivers/net/ethernet/intel/ice/ice_common.h | 1 + drivers/net/ethernet/intel/ice/ice_ddp.c | 10 +- drivers/net/ethernet/intel/ice/ice_ddp.h | 13 + .../net/ethernet/intel/ice/ice_flex_pipe.c | 101 +- .../net/ethernet/intel/ice/ice_flex_pipe.h | 7 +- drivers/net/ethernet/intel/ice/ice_flow.c | 108 +- drivers/net/ethernet/intel/ice/ice_flow.h | 5 + drivers/net/ethernet/intel/ice/ice_parser.c | 2428 +++++++++++++++++ drivers/net/ethernet/intel/ice/ice_parser.h | 540 ++++ .../net/ethernet/intel/ice/ice_parser_rt.c | 862 ++++++ drivers/net/ethernet/intel/ice/ice_type.h | 1 + drivers/net/ethernet/intel/ice/ice_vf_lib.h | 8 + drivers/net/ethernet/intel/ice/ice_virtchnl.c | 4 + .../ethernet/intel/ice/ice_virtchnl_fdir.c | 403 ++- include/linux/avf/virtchnl.h | 13 +- 22 files changed, 4792 insertions(+), 90 deletions(-) create mode 100644 drivers/net/ethernet/intel/ice/ice_parser.c create mode 100644 drivers/net/ethernet/intel/ice/ice_parser.h create mode 100644 drivers/net/ethernet/intel/ice/ice_parser_rt.c
Signature · 1 line
2.43.0