From: Wei Hu (Xavier) Date: Sat, 21 Dec 2019 10:32:47 +0000 (+0800) Subject: net/hns3: modify return value of enable MSI-X X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=28f2e6357662e14643ad156e14d0e35b1d4cea7c;p=dpdk.git net/hns3: modify return value of enable MSI-X This patch replaces the return value "-1" with "-ENXIO". Signed-off-by: Wei Hu (Xavier) --- diff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c index bd52e199b3..b5f3e9a867 100644 --- a/drivers/net/hns3/hns3_ethdev_vf.c +++ b/drivers/net/hns3/hns3_ethdev_vf.c @@ -131,7 +131,7 @@ hns3vf_enable_msix(const struct rte_pci_device *device, bool op) (pos + PCI_MSIX_FLAGS)); return 0; } - return -1; + return -ENXIO; } static int