net/sfc: fix promiscuous and allmulticast toggles errors
authorIgor Romanov <igor.romanov@oktetlabs.ru>
Tue, 10 Mar 2020 09:42:09 +0000 (09:42 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 18 Mar 2020 09:21:42 +0000 (10:21 +0100)
commit7329b56f116881e745bd792f435bb4467d1d0abe
tree88e7bc5629d5b9e8c511eeef58b0f0f24319fd84
parent897358cc1e61e950b8e6a1755c6b998f697b0ab9
net/sfc: fix promiscuous and allmulticast toggles errors

Returned errors of ethdev callbacks are negative. Internal
sfc functions return positive errors, so convert them to
negative value.

Fixes: 9039c8125730 ("ethdev: change promiscuous callbacks to return status")
Cc: stable@dpdk.org
Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/sfc_ethdev.c