Re: [PATCH net v2] Revert "net/ncsi: change from ndo_set_mac_address to dev_set_mac_address"
From: Ivan Mikhaylov <hidden>
Date: 2025-01-08 21:48:18
On Wed, 2025-01-08 at 23:23 +0300, Paul Fertser wrote:
Hello, On Wed, Jan 08, 2025 at 11:23:46AM -0800, Jakub Kicinski wrote:quoted
Looks like we're not making any progress on this one, so let's go with the revert for 6.13.But this does break userspace, the commit was there for a reason. Potin Lai, have you tried deferring this to a work queue instead of reverting to the code which has always been wrong?
Jakub, thanks for letting know about revert. ndo_set_mac_address do not notify userspace about MAC change and as Paul stated it was always been wrong here. And we talked about reverts in this thread - https://lore.kernel.org/all/20231210215356.4154-1-fr0st61te@gmail.com/ (local) Probably, incremental proper fix would be better here? Common case is 1 NCSI interface for server, we tested on this one and works fine for us and that's the reason why we didn't catch that situation. Nowadays some new servers has more than one NCSI interface. Probably we missed that is softirq context which is obviously not a place for rtnl_lock/unlock. Is there any other solution about except delaying dev_set_mac_address in work queue? Or any suggestions about how to deal with that in a proper way? Don't have any hw with >2 NCSI interface, probably need help with testing. Potin, can you help with checking the fix? Thanks.