]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: mana: Change the function signature of mana_get_primary_netdev_rcu
authorLong Li <longli@microsoft.com>
Wed, 12 Mar 2025 23:15:31 +0000 (16:15 -0700)
committerLeon Romanovsky <leon@kernel.org>
Thu, 13 Mar 2025 12:03:02 +0000 (08:03 -0400)
commita8445cfec101c42e9d64cdb2dac13973b22c205c
tree5cbab7287c61d4ff4c7600f433fb3a2615bac669
parent0a924decd4a3a27c557a6d3c29add61d45ab592a
net: mana: Change the function signature of mana_get_primary_netdev_rcu

Change mana_get_primary_netdev_rcu() to mana_get_primary_netdev(), and
return the ndev with refcount held. The caller is responsible for dropping
the refcount.

Also drop the check for IFF_SLAVE as it is not necessary if the upper
device is present.

Signed-off-by: Long Li <longli@microsoft.com>
Link: https://patch.msgid.link/1741821332-9392-1-git-send-email-longli@linuxonhyperv.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mana/device.c
drivers/infiniband/hw/mana/mana_ib.h
drivers/net/ethernet/microsoft/mana/mana_en.c
include/net/mana/mana.h