OSDN Git Service

ice: Allow changing lan_en and lb_en on all kinds of filters
authorMichal Swiatkowski <michal.swiatkowski@intel.com>
Fri, 6 Aug 2021 08:49:04 +0000 (10:49 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 11 Oct 2021 15:50:37 +0000 (08:50 -0700)
commit572b820dfa61fc23b5ba59fd5baa92cd1ec2bacb
tree8e4386bdb6e0eb34f032ebbb2b8ac188f8e742fb
parent8b8ef05b776e660a95d8347716b9b6c38ddf97c8
ice: Allow changing lan_en and lb_en on all kinds of filters

There is no way to change default lan_en and lb_en flags while
adding new rule. Add function that allows changing these flags
on rule determined by rule id and recipe id.

Function checks if the rule is presented on regular rules list or
advance rules list and call the appropriate function to update
rule entry.

As rules with ICE_SW_LKUP_DFLT recipe aren't tracked in a list,
implement function which updates flags without searching for rules
based only on rule id.

Signed-off-by: Michal Swiatkowski <michal.swiatkowski@intel.com>
Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_fltr.c