diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2019-02-13 05:12:50 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-02-20 04:52:18 +0100 |
commit | c2261dd76b549754c14c8ac7cadadd0993b182d6 (patch) | |
tree | 1633597dbb212404d2542ea368a872e90d75d50a /drivers/firewire/nosy.c | |
parent | RDMA/cache: Move the cache per-port data into the main ib_port_data (diff) | |
download | linux-c2261dd76b549754c14c8ac7cadadd0993b182d6.tar.xz linux-c2261dd76b549754c14c8ac7cadadd0993b182d6.zip |
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: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/firewire/nosy.c')
0 files changed, 0 insertions, 0 deletions