From: Tomasz Kulasek Date: Mon, 19 Jan 2015 11:56:40 +0000 (+0100) Subject: ring: add MAC address add/remove X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=bc6e95d597985f00eaec7c5704b09133df491a53;p=dpdk.git 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 --- 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