Skip to content

Refactor FDIR pattern parser

Zhirun Yan dpdk-dev 3 versions – Applied

Status from this message: Applied to dpdk-next-net-intel.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 1 replyApplied
  2. v23 patches 0 repliesSuperseded
  3. v15 patches 6 repliesSuperseded

Changes in v3 from the cover letter

Clear the variable name of input_set_o and input_set_i. Use input_set_o for tunnerl outer or non-tunnel fields, let ice_pattern_match_item 3rd columns all none in ACL, RSS, switch. Add new patch to use seg_tun[1] to record tunnel inner part. Add new patch to clean GTPU inner flow type for PF.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/6net/ice: clean input set macro definitiondrivers/net/ice/ice_fdir_filter.c drivers/net/ice/ice_generic_flow.h+104 -1380 replies
2/6net/ice: refactor structure fielddrivers/net/ice/ice_ethdev.h drivers/net/ice/ice_fdir_filter.c+5 -50 replies
3/6net/ice: refactor flow pattern parserdrivers/net/ice/ice_fdir_filter.c+236 -2390 replies
4/6net/ice: refactor input set confdrivers/net/ice/ice_fdir_filter.c+4 -80 replies
5/6net/ice: add outer input set mask to distinguish outer fieldsdrivers/net/ice/ice_acl_filter.c drivers/net/ice/ice_fdir_filter.c drivers/net/ice/ice_generic_flow.c +3 more+249 -3520 replies
6/6net/ice: clean GTPU flow_type for FDIRdrivers/net/ice/ice_fdir_filter.c+8 -110 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchQi Zhang
SeriesA-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [dpdk-dev] [PATCH v3 0/6] Refactor FDIR pattern parser

V3:
Clear the variable name of input_set_o and input_set_i. Use input_set_o for tunnerl outer or non-tunnel fields, let ice_pattern_match_item 3rd columns all none in ACL, RSS, switch. Add new patch to use seg_tun[1] to record tunnel inner part. Add new patch to clean GTPU inner flow type for PF.

V2:

Meld patch 4,5 into 3.
Update ACL input set.
Clear PPPoE GTPU input set in RSS.
Put p_v4/6 assignment earlier to reduce redundant code in FDIR.

This patch set refactor FDIR pattern parser.

Redefine input set. Ignore the redundant inner/outer info. Align the parser action with hardware, using input_set_f for outer, input_set_l for inner or non-tunnel fields.
Adjust indentation for easy review.
Enable VXLAN inner/outer fields.

Zhirun Yan (6):
net/ice: clean input set macro definition
net/ice: refactor structure field
net/ice: refactor flow pattern parser
net/ice: refactor input set conf
net/ice: add outer input set mask to distinguish outer fields net/ice: clean GTPU flow_type for FDIR

 drivers/net/ice/ice_acl_filter.c    |  10 +-
 drivers/net/ice/ice_ethdev.h        |   4 +-
 drivers/net/ice/ice_fdir_filter.c   | 590 ++++++++++++++--------------
 drivers/net/ice/ice_generic_flow.c  |   6 +-
 drivers/net/ice/ice_generic_flow.h  | 237 +++++------
 drivers/net/ice/ice_hash.c          | 214 +++++-----
 drivers/net/ice/ice_switch_filter.c | 296 +++++---------
 7 files changed, 605 insertions(+), 752 deletions(-)
Signature · 1 line
2.25.1