[dpdk-dev] [PATCH v3 3/9] net/hns3: modify the return value of enable msix
Wei Hu (Xavier)
huwei013 at chinasoftinc.com
Sat Dec 21 11:32:47 CET 2019
From: "Wei Hu (Xavier)" <xavier.huwei at huawei.com>
This patch replaces the return value "-1" with "-ENXIO".
Signed-off-by: Wei Hu (Xavier) <xavier.huwei at huawei.com>
---
drivers/net/hns3/hns3_ethdev_vf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c
index bd52e199b..b5f3e9a86 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
--
2.23.0
More information about the dev
mailing list