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

Zhirun Yan zhirun.yan at intel.com
Tue Mar 2 03:54:01 CET 2021


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(-)

-- 
2.25.1



More information about the dev mailing list