diff options
| author | Jakub Kicinski <[email protected]> | 2019-02-26 03:34:03 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-02-26 16:49:05 +0000 |
| commit | b473b0d23529cde6c825a592c035e9d910b19e21 (patch) | |
| tree | 9a3fbac499f820e7cb565296f79b5d0207d8d5ae /net/switchdev/switchdev.c | |
| parent | net: devlink: turn devlink into a built-in (diff) | |
| download | kernel-b473b0d23529cde6c825a592c035e9d910b19e21.tar.gz kernel-b473b0d23529cde6c825a592c035e9d910b19e21.zip | |
devlink: create a special NDO for getting the devlink instance
Instead of iterating over all devlink ports add a NDO which
will return the devlink instance from the driver.
v2: add the netdev_to_devlink() helper (Michal)
v3: check that devlink has ops (Florian)
v4: hold devlink_mutex (Jiri)
Suggested-by: Jiri Pirko <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
