net/af_xdp: fix handling of not supported feature
authorJúlius Milan <jmilan.dev@gmail.com>
Fri, 12 Jul 2019 07:55:46 +0000 (09:55 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:34 +0000 (14:31 +0200)
commit06bb59f6b4a34a181b81147cc424e7c4685d7624
treea27dba8babe5b8abbb456f545ef93fe961caa8ab
parentd3e94faf911899dccfa359e3cba00f2dfdeab358
net/af_xdp: fix handling of not supported feature

Procedure xdp_get_channels_info was returning error code -1 in case of
ioctl command SIOCETHTOOL was not supported. This patch sets return
value back to 0 as it is valid case.

Fixes: 339b88c6a91f ("net/af_xdp: support multi-queue")

Signed-off-by: Július Milan <jmilan.dev@gmail.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/af_xdp/rte_eth_af_xdp.c