net/hns3: fix log on flow director clear
authorChengwen Feng <fengchengwen@huawei.com>
Fri, 7 May 2021 09:08:15 +0000 (17:08 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 11 May 2021 16:27:25 +0000 (18:27 +0200)
commitf4e5c18ffa2656d253bc334171854e60463afbbb
tree20629eb24208a02efda192228d4149cf258bf43a
parentd9fb708a000d4935af253ad93f917ed7a8be208e
net/hns3: fix log on flow director clear

If clear FDIR rules fail, the error code was logged, but the error code
was useless because it was the sum of all fail code.

This patch fixes it by log the success cnt and fail cnt.

Fixes: fcba820d9b9e ("net/hns3: support flow director")
Fixes: 8eed8acc812e ("net/hns3: add error code to some logs")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_fdir.c