DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/null: add set MAC address dev op
@ 2018-01-29 14:20 Radu Nicolau
  2018-01-31 19:18 ` Ferruh Yigit
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Radu Nicolau @ 2018-01-29 14:20 UTC (permalink / raw)
  To: dev; +Cc: mtetsuyah, ferruh.yigit, declan.doherty, Radu Nicolau

Needed if used with net/bonding

Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
---
 drivers/net/null/rte_eth_null.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c
index 7cd5c71..511e2b7 100644
--- a/drivers/net/null/rte_eth_null.c
+++ b/drivers/net/null/rte_eth_null.c
@@ -456,6 +456,12 @@ eth_rss_hash_conf_get(struct rte_eth_dev *dev,
 	return 0;
 }
 
+static void
+eth_mac_address_set(struct rte_eth_dev *dev, struct ether_addr *addr)
+{
+	memcpy(dev->data->mac_addrs, addr, sizeof(struct ether_addr));
+}
+
 static const struct eth_dev_ops ops = {
 	.dev_start = eth_dev_start,
 	.dev_stop = eth_dev_stop,
@@ -466,6 +472,7 @@ static const struct eth_dev_ops ops = {
 	.rx_queue_release = eth_queue_release,
 	.tx_queue_release = eth_queue_release,
 	.link_update = eth_link_update,
+	.mac_addr_set = eth_mac_address_set,
 	.stats_get = eth_stats_get,
 	.stats_reset = eth_stats_reset,
 	.reta_update = eth_rss_reta_update,
-- 
2.7.5

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

end of thread, other threads:[~2018-02-05 14:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-29 14:20 [dpdk-dev] [PATCH] net/null: add set MAC address dev op Radu Nicolau
2018-01-31 19:18 ` Ferruh Yigit
2018-02-01 10:42 ` [dpdk-dev] [PATCH 1/3] " Radu Nicolau
2018-02-01 10:45 ` Radu Nicolau
2018-02-01 10:47 ` [dpdk-dev] [PATCH v2] " Radu Nicolau
2018-02-05 14:40   ` Ferruh Yigit
2018-02-05 14:46     ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).