net/ice/base: improve VSI filters rebuild
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 15 Jun 2020 02:04:30 +0000 (10:04 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jun 2020 17:21:07 +0000 (19:21 +0200)
commit4963c6ba977a893403823f008b29e797cb825aef
treed77b0313315a00894747e0b0011d256b01438b1a
parentbc367c55cdfb9bfe54a2db926cd1b42cc682e86d
net/ice/base: improve VSI filters rebuild

This change improve VSI filter configuration rebuild for
multiport configuration, ie. where 1 PF includes more than
one logical port. For some functions, association between
port and corresponding switch_info or port_info structure
has been lost because by default the pointer to the first
element of array (switch, port etc.) is passed as function
argument. With this change, pointer to proper element is
added an extra argument in relevant functions.

Signed-off-by: Grzegorz Nitka <grzegorz.nitka@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_common.c
drivers/net/ice/base/ice_switch.c
drivers/net/ice/base/ice_switch.h