Skip to content
Snippets Groups Projects
Commit c2261dd7 authored by Jason Gunthorpe's avatar Jason Gunthorpe
Browse files

RDMA/device: Add ib_device_set_netdev() as an alternative to get_netdev


The associated netdev should not actually be very dynamic, so for most
drivers there is no reason for a callback like this. Provide an API to
inform the core code about the net dev affiliation and use a core
maintained data structure instead.

This allows the core code to be more aware of the ndev relationship which
will allow some new APIs based around this.

This also uses locking that makes some kind of sense, many drivers had a
confusing RCU lock, or missing locking which isn't right.

Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 8faea9fd
No related branches found
No related tags found
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