ice: remove redundant Rx field from rule info
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Fri, 7 Apr 2023 16:52:16 +0000 (18:52 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 19 May 2023 16:05:56 +0000 (09:05 -0700)
commit40fd749245f2ee32874e563051957cc614cf11e4
tree97d6769438dcaa27ddf1c98faaf2d7f5eef404d9
parentecd01b69a5f8edda731d8a7cfe33c9ffa0c85700
ice: remove redundant Rx field from rule info

Information about the direction is currently stored in sw_act.flag.
There is no need to duplicate it in another field.

Setting direction flag doesn't mean that there is a match criteria for
direction in rule. It is only a information for HW from where switch id
should be collected (VSI or port). In current implementation of advance
rule handling, without matching for direction meta data, we can always
set one the same flag and everything will work the same.

Ability to match on direction meta data will be added in follow up
patches.

Recipe 0, 3 and 9 loaded from package has direction match
criteria, but they are handled in other function.

Move ice_adv_rule_info fields to avoid holes.

Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: Piotr Raczynski <piotr.raczynski@intel.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_eswitch.c
drivers/net/ethernet/intel/ice/ice_switch.c
drivers/net/ethernet/intel/ice/ice_switch.h
drivers/net/ethernet/intel/ice/ice_tc_lib.c