net/ice/base: fix reference count on VSI list update
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 15 Jun 2020 02:05:09 +0000 (10:05 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jun 2020 17:21:08 +0000 (19:21 +0200)
commitfda75f4c409917112b1a9694ce9969187bcfb779
treea12ed9994ef1dd350d62ba30404e0d71cbdb19a0
parentfa98f411f3c96b14aec47db712ec83a898b479a4
net/ice/base: fix reference count on VSI list update

The parameter ref_cnt is used for tracking how many
rules are reusing this VSI list, so it can only be
updated when a rule which using this list be deleted.

Fixes: f89aa3affa9e ("net/ice/base: support removing advanced rule")
Cc: stable@dpdk.org
Signed-off-by: Wei Zhao <wei.zhao1@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