Skip to content

Commit a3a8ce4

Browse files
Sunil Gouthamdavem330
authored andcommitted
net: thunderx: Don't set mac address for secondary Qset VFs
Set MAC addresses only for primary VF's and don't for secondary VFs. Signed-off-by: Sunil Goutham <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3458c40 commit a3a8ce4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/cavium/thunder/nicvf_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ int nicvf_open(struct net_device *netdev)
12091209
}
12101210

12111211
/* Check if we got MAC address from PF or else generate a radom MAC */
1212-
if (is_zero_ether_addr(netdev->dev_addr)) {
1212+
if (!nic->sqs_mode && is_zero_ether_addr(netdev->dev_addr)) {
12131213
eth_hw_addr_random(netdev);
12141214
nicvf_hw_set_mac_addr(nic, netdev);
12151215
}

0 commit comments

Comments
 (0)