+8
−10
Loading
stable inclusion from stable-v6.6.78 commit 2cc0f0e1b976a05ce6a1395a0f55f07e9fc64791 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBX1M5 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2cc0f0e1b976a05ce6a1395a0f55f07e9fc64791 -------------------------------- commit 05d91cdb1f9108426b14975ef4eeddf15875ca05 upstream. Copy of the rationale from 79007134: Change ndo_set_mac_address to dev_set_mac_address because dev_set_mac_address provides a way to notify network layer about MAC change. In other case, services may not aware about MAC change and keep using old one which set from network adapter driver. As example, DHCP client from systemd do not update MAC address without notification from net subsystem which leads to the problem with acquiring the right address from DHCP server. Since dev_set_mac_address requires RTNL lock the operation can not be performed directly in the response handler, see 9e2bbab94b88295dcc57c7580393c9ee08d7314d. The way of selecting the first suitable MAC address from the list is changed, instead of having the driver check it this patch just assumes any valid MAC should be good. Fixes: b8291cf3d118 ("net/ncsi: Add NC-SI 1.2 Get MC MAC Address command") Signed-off-by:Paul Fertser <fercerpav@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 2cc0f0e1b976a05ce6a1395a0f55f07e9fc64791) Signed-off-by:
Wentao Guan <guanwentao@uniontech.com>