diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-02-26 06:34:03 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-26 19:49:05 +0300 |
commit | b473b0d23529cde6c825a592c035e9d910b19e21 (patch) | |
tree | 9a3fbac499f820e7cb565296f79b5d0207d8d5ae /drivers/net/ethernet/netronome/nfp/nfp_app.h | |
parent | f4b6bcc7002f0e3a3428bac33cf1945abff95450 (diff) | |
download | linux-b473b0d23529cde6c825a592c035e9d910b19e21.tar.xz |
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 <jiri@resnulli.us>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/nfp_app.h')
0 files changed, 0 insertions, 0 deletions