From c5ac7748fd6bfd86b6fb4432b6792733cf32c94c Mon Sep 17 00:00:00 2001 From: Radu Nicolau Date: Thu, 1 Feb 2018 10:47:07 +0000 Subject: [PATCH] net/null: add MAC address setting fake operation Needed if used with net/bonding Signed-off-by: Radu Nicolau Reviewed-by: Ferruh Yigit --- drivers/net/null/rte_eth_null.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index 9385ffdc0f..d003b28392 100644 --- a/drivers/net/null/rte_eth_null.c +++ b/drivers/net/null/rte_eth_null.c @@ -461,6 +461,12 @@ eth_rss_hash_conf_get(struct rte_eth_dev *dev, return 0; } +static void +eth_mac_address_set(__rte_unused struct rte_eth_dev *dev, + __rte_unused struct ether_addr *addr) +{ +} + static const struct eth_dev_ops ops = { .dev_start = eth_dev_start, .dev_stop = eth_dev_stop, @@ -472,6 +478,7 @@ static const struct eth_dev_ops ops = { .tx_queue_release = eth_queue_release, .mtu_set = eth_mtu_set, .link_update = eth_link_update, + .mac_addr_set = eth_mac_address_set, .stats_get = eth_stats_get, .stats_reset = eth_stats_reset, .reta_update = eth_rss_reta_update, -- 2.20.1