net/ice/base: fix flow director rule completion report
authorSimei Su <simei.su@intel.com>
Fri, 8 May 2020 01:36:50 +0000 (09:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 May 2020 20:27:39 +0000 (22:27 +0200)
commitf002ee9c8e26d2d7f0cda418d2565adc696584cf
tree5259010d9293c1ee3ec5865836326e6a0d40ffaf
parentcfa9e98d3c135e4f937265263feb7377330219f6
net/ice/base: fix flow director rule completion report

IAVF FDIR needs to check program status from FD completion descriptors
for both successful and failed case, rather than only ask for completion
on error. This patch corrects completion report value so that the called
can determine whether to report completion on error or other cases.

Fixes: 55daca4e45fc ("net/ice/base: change function to static")

Signed-off-by: Simei Su <simei.su@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/base/ice_fdir.c