From: Sunil Goutham Date: Fri, 12 Aug 2016 11:21:40 +0000 (+0530) Subject: net: thunderx: Don't set mac address for secondary Qset VFs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a3a8ce4ce78d9b7c31c7e7f9327409a575bd6280;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_main.c b/drivers/net/ethernet/cavium/thunder/nicvf_main.c index dd57361aa3fc..0b68f2b6de5d 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); }