diff options
| author | Stanislav Fomichev <[email protected]> | 2025-03-12 19:05:12 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-03-19 17:52:00 +0000 |
| commit | 8033d2aef51722fe74068b52553625ed91ea256c (patch) | |
| tree | 6910b7f09c5c94632c251b1564cb17f9330682a9 /net/core/rtnetlink.c | |
| parent | tc-tests: Update tc police action tests for tc buffer size rounding fixes. (diff) | |
| download | kernel-8033d2aef51722fe74068b52553625ed91ea256c.tar.gz kernel-8033d2aef51722fe74068b52553625ed91ea256c.zip | |
Revert "net: replace dev_addr_sem with netdev instance lock"
This reverts commit df43d8bf10316a7c3b1e47e3cc0057a54df4a5b8.
Cc: Kohei Enju <[email protected]>
Reviewed-by: Kuniyuki Iwashima <[email protected]>
Fixes: df43d8bf1031 ("net: replace dev_addr_sem with netdev instance lock")
Signed-off-by: Stanislav Fomichev <[email protected]>
Link: https://patch.msgid.link/[email protected]
Tested-by: Lei Yang <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/core/rtnetlink.c')
| -rw-r--r-- | net/core/rtnetlink.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 90597bf84e3d..9355058bf996 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -3090,11 +3090,7 @@ static int do_setlink(const struct sk_buff *skb, struct net_device *dev, sa->sa_family = dev->type; memcpy(sa->sa_data, nla_data(tb[IFLA_ADDRESS]), dev->addr_len); - if (!netdev_need_ops_lock(dev)) - netdev_lock(dev); - err = netif_set_mac_address(dev, sa, extack); - if (!netdev_need_ops_lock(dev)) - netdev_unlock(dev); + err = netif_set_mac_address_user(dev, sa, extack); kfree(sa); if (err) goto errout; |
