All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/bonding: add set MAC dev op
@ 2018-01-25 11:31 Radu Nicolau
  2018-01-25 13:26 ` Ferruh Yigit
  0 siblings, 1 reply; 2+ messages in thread
From: Radu Nicolau @ 2018-01-25 11:31 UTC (permalink / raw)
  To: dev; +Cc: declan.doherty, chas3, ferruh.yigit, Radu Nicolau

Fixes: aa7791ba8de0 ("net/bonding: fix setting slave MAC addresses")

Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
---
 drivers/net/bonding/rte_eth_bond_pmd.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c
index cc06ff4..92ad688 100644
--- a/drivers/net/bonding/rte_eth_bond_pmd.c
+++ b/drivers/net/bonding/rte_eth_bond_pmd.c
@@ -2851,6 +2851,13 @@ bond_ethdev_mtu_set(struct rte_eth_dev *dev, uint16_t mtu)
 	return 0;
 }
 
+static void
+bond_ethdev_mac_address_set(struct rte_eth_dev *dev, struct ether_addr *addr)
+{
+	if (mac_address_set(dev, addr))
+		RTE_BOND_LOG(ERR, "Failed to update MAC address");
+}
+
 const struct eth_dev_ops default_dev_ops = {
 	.dev_start            = bond_ethdev_start,
 	.dev_stop             = bond_ethdev_stop,
@@ -2871,7 +2878,8 @@ const struct eth_dev_ops default_dev_ops = {
 	.reta_query           = bond_ethdev_rss_reta_query,
 	.rss_hash_update      = bond_ethdev_rss_hash_update,
 	.rss_hash_conf_get    = bond_ethdev_rss_hash_conf_get,
-	.mtu_set              = bond_ethdev_mtu_set
+	.mtu_set              = bond_ethdev_mtu_set,
+	.mac_addr_set         = bond_ethdev_mac_address_set
 };
 
 static int
-- 
2.7.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net/bonding: add set MAC dev op
  2018-01-25 11:31 [PATCH] net/bonding: add set MAC dev op Radu Nicolau
@ 2018-01-25 13:26 ` Ferruh Yigit
  0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2018-01-25 13:26 UTC (permalink / raw)
  To: Radu Nicolau, dev; +Cc: declan.doherty, chas3

On 1/25/2018 11:31 AM, Radu Nicolau wrote:
> Fixes: aa7791ba8de0 ("net/bonding: fix setting slave MAC addresses")
> 
> Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>

Applied to dpdk-next-net/master, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-25 13:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-25 11:31 [PATCH] net/bonding: add set MAC dev op Radu Nicolau
2018-01-25 13:26 ` Ferruh Yigit

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.