From bc6e95d597985f00eaec7c5704b09133df491a53 Mon Sep 17 00:00:00 2001 From: Tomasz Kulasek Date: Mon, 19 Jan 2015 12:56:40 +0100 Subject: [PATCH] ring: add MAC address add/remove Added MAC addr add/remove dummy callbacks. Signed-off-by: Tomasz Kulasek Signed-off-by: Pawel Wodkowski Acked-by: Declan Doherty --- lib/librte_pmd_ring/rte_eth_ring.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/librte_pmd_ring/rte_eth_ring.c b/lib/librte_pmd_ring/rte_eth_ring.c index 9a00524fb2..74b07f9e0a 100644 --- a/lib/librte_pmd_ring/rte_eth_ring.c +++ b/lib/librte_pmd_ring/rte_eth_ring.c @@ -211,6 +211,20 @@ eth_stats_reset(struct rte_eth_dev *dev) } } +static void +eth_mac_addr_remove(struct rte_eth_dev *dev __rte_unused, + uint32_t index __rte_unused) +{ +} + +static void +eth_mac_addr_add(struct rte_eth_dev *dev __rte_unused, + struct ether_addr *mac_addr __rte_unused, + uint32_t index __rte_unused, + uint32_t vmdq __rte_unused) +{ +} + static void eth_queue_release(void *q __rte_unused) { ; } static int @@ -231,6 +245,8 @@ static struct eth_dev_ops ops = { .link_update = eth_link_update, .stats_get = eth_stats_get, .stats_reset = eth_stats_reset, + .mac_addr_remove = eth_mac_addr_remove, + .mac_addr_add = eth_mac_addr_add, }; int -- 2.20.1