net/ice/base: allow to enable LAN and loopback in switch
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 16 Sep 2021 09:52:56 +0000 (17:52 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Tue, 21 Sep 2021 12:33:28 +0000 (14:33 +0200)
commit2e826e6462d44efb9869669a6a46a5a8884b509c
treea8212af6ed18758a3d630e65cc6fa0973c6142f6
parentcb9c171a24104eb2b651ed765453a7e12e5763ee
net/ice/base: allow to enable LAN and loopback in switch

Currently shared code API does not allow to set/unset lb_en
and lan_en flags for advanced rules during their creation.
Because of that we have to use a workaround in switchdev
which is to update rule immediately after its creation.
This change will allow us to set/unset those flags right
away.

Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Junfeng Guo <junfeng.guo@intel.com>
drivers/net/ice/base/ice_switch.c
drivers/net/ice/base/ice_switch.h