r8169: fix mac address change
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 2 Jul 2018 20:49:35 +0000 (22:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Jul 2018 14:27:58 +0000 (23:27 +0900)
Network core refuses to change mac address because flag
IFF_LIVE_ADDR_CHANGE isn't set. Set this missing flag.

Fixes: 1f7aa2bc268e ("r8169: simplify rtl_set_mac_address")
Reported-by: Corinna Vinschen <vinschen@redhat.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Tested-by: Corinna Vinschen <vinschen@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c

index f4cae2be0fda563e71f5b07f1798655169c8b683..a3f69901ac877a058fd477d1ef7d3aac984eeded 100644 (file)
@@ -7789,6 +7789,7 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
                NETIF_F_HW_VLAN_CTAG_RX;
        dev->vlan_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO |
                NETIF_F_HIGHDMA;
+       dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
 
        tp->cp_cmd |= RxChkSum | RxVlan;