diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2018-07-02 22:49:35 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-03 23:27:58 +0900 |
commit | 2d0ec5440bef4a0a8858d52d45c31725540c3e74 (patch) | |
tree | c4dc03c47197b68f5fba1ebeb39dbb94f6475b44 /drivers/net | |
parent | 52ee6ef36ee10dd493cf2067311e56ca8015eb8d (diff) | |
download | linux-2d0ec5440bef4a0a8858d52d45c31725540c3e74.tar.bz2 |
r8169: fix mac address change
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/realtek/r8169.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index f4cae2be0fda..a3f69901ac87 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net/ethernet/realtek/r8169.c @@ -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; |