Commit a3a8ce4c authored by Sunil Goutham's avatar Sunil Goutham Committed by David S. Miller

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: default avatarSunil Goutham <sgoutham@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3458c40d
...@@ -1209,7 +1209,7 @@ int nicvf_open(struct net_device *netdev) ...@@ -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 */ /* 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); eth_hw_addr_random(netdev);
nicvf_hw_set_mac_addr(nic, netdev); nicvf_hw_set_mac_addr(nic, netdev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment