]> git.baikalelectronics.ru Git - kernel.git/commit
smsc75xx: only set mac address once on bind
authorSteve Glendinning <steve.glendinning@shawell.net>
Mon, 10 Dec 2012 01:01:19 +0000 (01:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Dec 2012 19:09:00 +0000 (14:09 -0500)
commitbefc225358e4a9f84a9a6c4c30744934d6cfeabf
treebd567a8e72350436173bf688dbccefa1a8238eea
parente164c453c241096a86b94b630f8e8ac2f70cf191
smsc75xx: only set mac address once on bind

This patch changes when we decide what the device's MAC address
is from per ifconfig up to once when the device is connected.

Without this patch, a manually forced device MAC is overwritten
on ifconfig down/up.  Also devices that have no EEPROM are
assigned a new random address on ifconfig down/up instead of
persisting the same one.

Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
Reported-by: Robert Cunningham <rcunningham@nsmsurveillance.com>
Cc: Bjorn Mork <bjorn@mork.no>
Cc: Dan Williams <dcbw@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc75xx.c