]> git.baikalelectronics.ru Git - kernel.git/commit
lan78xx: Resolve issue with changing MAC address
authorJason Martinsen <jasonmartinsen@msn.com>
Tue, 18 Dec 2018 05:38:22 +0000 (05:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Dec 2018 05:40:59 +0000 (21:40 -0800)
commit25566f9f55dceb8ea471edd4d265ee96f84ec6d8
treedb0d2fdd7fca61ecf992ec1a89ab30d335630d4b
parenta5ceecf94b466b68c06da252e9b5c1a2d8279d2a
lan78xx: Resolve issue with changing MAC address

Current state for the lan78xx driver does not allow for changing the
MAC address of the interface, without either removing the module (if
you compiled it that way) or rebooting the machine.  If you attempt to
change the MAC address, ifconfig will show the new address, however,
the system/interface will not respond to any traffic using that
configuration.  A few short-term options to work around this are to
unload the module and reload it with the new MAC address, change the
interface to "promisc", or reboot with the correct configuration to
change the MAC.

This patch enables the ability to change the MAC address via fairly normal means...
ifdown <interface>
modify entry in /etc/network/interfaces OR a similar method
ifup <interface>
Then test via any network communication, such as ICMP requests to gateway.

My only test platform for this patch has been a raspberry pi model 3b+.

Signed-off-by: Jason Martinsen <jasonmartinsen@msn.com>
-----

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c