projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a5e7c3
)
igbvf: reset netdevice addr_assign_type if changed
author
Danny Kukawka
<
[email protected]
>
Fri, 17 Feb 2012 05:43:26 +0000
(
05:43
+0000)
committer
David S. Miller
<
[email protected]
>
Fri, 17 Feb 2012 20:58:06 +0000
(15:58 -0500)
Reset the state of addr_assign_type to NET_ADDR_PERM as soon as
the MAC get changed via .ndo_set_mac_address.
v2: use bitops to reset addr_assign_type
Signed-off-by: Danny Kukawka <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/intel/igbvf/netdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/igbvf/netdev.c
b/drivers/net/ethernet/intel/igbvf/netdev.c
index 92956e80fd1b09a3c3c1dcb1d8e459217c38c00a..217c143686d223233eff7fb39dad96181a10d101 100644
(file)
--- a/
drivers/net/ethernet/intel/igbvf/netdev.c
+++ b/
drivers/net/ethernet/intel/igbvf/netdev.c
@@
-1712,6
+1712,7
@@
static int igbvf_set_mac(struct net_device *netdev, void *p)
return -EADDRNOTAVAIL;
memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len);
+ netdev->addr_assign_type &= ~NET_ADDR_RANDOM;
return 0;
}