]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit53f2b36f133bb3de657f4a1bb6cfd5614352d1a9
tree8e4386bdb6e0eb34f032ebbb2b8ac188f8e742fb
parent75fa0b00521b4141d2a39e0d488640d65420e443
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