Skip to content
Commit a8445cfe authored by Long Li's avatar Long Li Committed by Leon Romanovsky
Browse files

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: default avatarLong Li <longli@microsoft.com>
Link: https://patch.msgid.link/1741821332-9392-1-git-send-email-longli@linuxonhyperv.com


Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent 0a924dec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment