net/hns3: fix flow director error message
authorWei Hu (Xavier) <xavier.huwei@huawei.com>
Tue, 9 Jun 2020 08:44:14 +0000 (16:44 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jun 2020 17:21:07 +0000 (19:21 +0200)
commit41b966ffb4f70792d8cd851173eab15bca183a7c
tree8ca3b556fe0bc95984bb60f18de2056e4aa1c42e
parent3b931ddb5e1fe8b29caafbad53738005ee9fef0c
net/hns3: fix flow director error message

There is a coverity defect related "Argument cannot be negative".

This patch fixes it by passing '-ret' to the function strerror() when
ret is negative.

Coverity issue: 349933
Fixes: fcba820d9b9e ("net/hns3: support flow director")
Cc: stable@dpdk.org
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_fdir.c