net/ring: support promisc and allmulticast
authorRobert Sanford <rsanford@akamai.com>
Tue, 21 Dec 2021 19:57:29 +0000 (14:57 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 11 Feb 2022 19:56:48 +0000 (20:56 +0100)
Add promiscuous_enable, promiscuous_disable, allmulticast_enable,
and allmulticast_disable API stubs.
This helps clean up errors in dpdk-test link_bonding_mode4_autotest.

Signed-off-by: Robert Sanford <rsanford@akamai.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/net/ring/rte_eth_ring.c

index db10f03..cfb81da 100644 (file)
@@ -225,6 +225,30 @@ eth_mac_addr_add(struct rte_eth_dev *dev __rte_unused,
        return 0;
 }
 
+static int
+eth_promiscuous_enable(struct rte_eth_dev *dev __rte_unused)
+{
+       return 0;
+}
+
+static int
+eth_promiscuous_disable(struct rte_eth_dev *dev __rte_unused)
+{
+       return 0;
+}
+
+static int
+eth_allmulticast_enable(struct rte_eth_dev *dev __rte_unused)
+{
+       return 0;
+}
+
+static int
+eth_allmulticast_disable(struct rte_eth_dev *dev __rte_unused)
+{
+       return 0;
+}
+
 static int
 eth_link_update(struct rte_eth_dev *dev __rte_unused,
                int wait_to_complete __rte_unused) { return 0; }
@@ -275,6 +299,10 @@ static const struct eth_dev_ops ops = {
        .stats_reset = eth_stats_reset,
        .mac_addr_remove = eth_mac_addr_remove,
        .mac_addr_add = eth_mac_addr_add,
+       .promiscuous_enable = eth_promiscuous_enable,
+       .promiscuous_disable = eth_promiscuous_disable,
+       .allmulticast_enable = eth_allmulticast_enable,
+       .allmulticast_disable = eth_allmulticast_disable,
 };
 
 static int