net/ice: fix flow director rule duplication check
authorYahui Cao <yahui.cao@intel.com>
Tue, 19 Nov 2019 16:01:00 +0000 (00:01 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Nov 2019 16:36:06 +0000 (17:36 +0100)
commitc1b22c18decc0f90d80d8d6736cd48468c99fe46
tree3bb1ec7184e0bb350d4c65634c31515a761ddb2a
parent2e715e53deb52cf2c0fee5744702a0340fc8625e
net/ice: fix flow director rule duplication check

When FDIR filter detects duplicated rule and then returns EEXIST, ice
flow will capture this error and return immediately.

Fixes: 4e27d3ed02bd ("net/ice: fix flow API framework")

Signed-off-by: Yahui Cao <yahui.cao@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_generic_flow.c