aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mana/mana.h
diff options
context:
space:
mode:
authorLong Li <[email protected]>2025-03-12 23:15:31 +0000
committerLeon Romanovsky <[email protected]>2025-03-13 12:03:02 +0000
commita8445cfec101c42e9d64cdb2dac13973b22c205c (patch)
tree5cbab7287c61d4ff4c7600f433fb3a2615bac669 /include/net/mana/mana.h
parentRDMA/rxe: Improve readability of ODP pagefault interface (diff)
downloadkernel-a8445cfec101c42e9d64cdb2dac13973b22c205c.tar.gz
kernel-a8445cfec101c42e9d64cdb2dac13973b22c205c.zip
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'include/net/mana/mana.h')
-rw-r--r--include/net/mana/mana.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/mana/mana.h b/include/net/mana/mana.h
index 0d00b24eacaf..0f78065de8fe 100644
--- a/include/net/mana/mana.h
+++ b/include/net/mana/mana.h
@@ -827,5 +827,7 @@ int mana_cfg_vport(struct mana_port_context *apc, u32 protection_dom_id,
u32 doorbell_pg_id);
void mana_uncfg_vport(struct mana_port_context *apc);
-struct net_device *mana_get_primary_netdev_rcu(struct mana_context *ac, u32 port_index);
+struct net_device *mana_get_primary_netdev(struct mana_context *ac,
+ u32 port_index,
+ netdevice_tracker *tracker);
#endif /* _MANA_H */