ring: add MAC address add/remove
authorTomasz Kulasek <tomaszx.kulasek@intel.com>
Mon, 19 Jan 2015 11:56:40 +0000 (12:56 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 18 Feb 2015 17:58:55 +0000 (18:58 +0100)
Added MAC addr add/remove dummy callbacks.

Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
lib/librte_pmd_ring/rte_eth_ring.c

index 9a00524..74b07f9 100644 (file)
@@ -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