summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAndrew Rybchenko <arybchenko@solarflare.com>2019-09-14 12:37:24 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2019-10-07 15:00:54 +0200
commit9039c8125730adfd46b8c891e7f205eb4ac43c67 (patch)
tree855654d3b01ae9b27d47c520637881cc2a09d8a8 /app
parentae9f487f2ea463eac4424d7ca19bcb18a9287906 (diff)
downloaddpdk-9039c8125730adfd46b8c891e7f205eb4ac43c67.zip
dpdk-9039c8125730adfd46b8c891e7f205eb4ac43c67.tar.gz
dpdk-9039c8125730adfd46b8c891e7f205eb4ac43c67.tar.xz
ethdev: change promiscuous callbacks to return status
Enabling/disabling of promiscuous mode is not always successful and it should be taken into account to be able to handle it properly. When correct return status is unclear from driver code, -EAGAIN is used. Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com> Acked-by: Matan Azrad <matan@mellanox.com> Acked-by: Hyong Youb Kim <hyonkim@cisco.com>
Diffstat (limited to 'app')
-rw-r--r--app/test/virtual_pmd.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/app/test/virtual_pmd.c b/app/test/virtual_pmd.c
index e295891..b34df41 100644
--- a/app/test/virtual_pmd.c
+++ b/app/test/virtual_pmd.c
@@ -210,13 +210,17 @@ virtual_ethdev_stats_reset(struct rte_eth_dev *dev)
memset(&dev_private->eth_stats, 0, sizeof(dev_private->eth_stats));
}
-static void
+static int
virtual_ethdev_promiscuous_mode_enable(struct rte_eth_dev *dev __rte_unused)
-{}
+{
+ return 0;
+}
-static void
+static int
virtual_ethdev_promiscuous_mode_disable(struct rte_eth_dev *dev __rte_unused)
-{}
+{
+ return 0;
+}
static int
virtual_ethdev_mac_address_set(__rte_unused struct rte_eth_dev *dev,