net/ice/base: update VSI handle to remaining VSI
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 15 Jun 2020 02:04:56 +0000 (10:04 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jun 2020 17:21:08 +0000 (19:21 +0200)
commit1b651a2a1d177ff18e2bae5ffaa2ff59b69ba4b5
tree3b12195752fba0b70a86e32fbf5ab5b156d933ca
parent803373cc9428fcbd3848e639d59a199c7990bb1d
net/ice/base: update VSI handle to remaining VSI

When removing VSI from VSI list, if only one VSI left, we need
to downgrade a switch rule's action from "to VSI LIST" to "to VSI",
So, needs to update the VSI handle to the last remaining VSI for the
new action but not the first VSI be added to the list.

Signed-off-by: Haiyue Wang <haiyue.wang@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_switch.c