net/ice/base: fix return value
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 15 Jun 2020 02:04:57 +0000 (10:04 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jun 2020 17:21:08 +0000 (19:21 +0200)
commit4f13a6735fd60587c9c6ae93414b6df01c833214
tree72bb415275a8682c0fb0801794acd32c3b703d2f
parent1b651a2a1d177ff18e2bae5ffaa2ff59b69ba4b5
net/ice/base: fix return value

Function ice_rem_adv_rule_id return incorrect error code (ICE_ERR_PARAM)
whereas it should have returned ICE_ERR_DOES_NOT_EXIST return code
if filter list is empty or unable to find "rule" in list

Fixes: f89aa3affa9e ("net/ice/base: support removing advanced rule")
Cc: stable@dpdk.org
Signed-off-by: Kiran Patil <kiran.patil@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