Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1461090 > unrolled thread

[PATCH v2 17/21] net: thunderx: Don't set mac address for secondary Qset VFs

Started bysunil.kovvuri@gmail.com
First post2016-08-12 13:30 +0200
Last post2016-08-12 13:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 17/21] net: thunderx: Don't set mac address for secondary Qset VFs sunil.kovvuri@gmail.com - 2016-08-12 13:30 +0200

#1461090 — [PATCH v2 17/21] net: thunderx: Don't set mac address for secondary Qset VFs

Fromsunil.kovvuri@gmail.com
Date2016-08-12 13:30 +0200
Subject[PATCH v2 17/21] net: thunderx: Don't set mac address for secondary Qset VFs
Message-ID<s5iOZ-Yf-1@gated-at.bofh.it>
From: Sunil Goutham <sgoutham@cavium.com>

Set MAC addresses only for primary VF's and don't for
secondary VFs.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
---
 drivers/net/ethernet/cavium/thunder/nicvf_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_main.c b/drivers/net/ethernet/cavium/thunder/nicvf_main.c
index dd57361..0b68f2b 100644
--- a/drivers/net/ethernet/cavium/thunder/nicvf_main.c
+++ b/drivers/net/ethernet/cavium/thunder/nicvf_main.c
@@ -1209,7 +1209,7 @@ int nicvf_open(struct net_device *netdev)
 	}
 
 	/* Check if we got MAC address from PF or else generate a radom MAC */
-	if (is_zero_ether_addr(netdev->dev_addr)) {
+	if (!nic->sqs_mode && is_zero_ether_addr(netdev->dev_addr)) {
 		eth_hw_addr_random(netdev);
 		nicvf_hw_set_mac_addr(nic, netdev);
 	}
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web