diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-08-18 15:48:11 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-18 22:39:27 -0700 |
commit | 06726f30364c38f12519e2c6c046f19b2aa509bc (patch) | |
tree | d97eaf2408aa2c947f9224ba74c2ae7f79a4bc67 /drivers/net/ethernet/netronome/nfp/nfp_net_repr.c | |
parent | ef319d4f2561c94bc2d7b8cb86dbbf4359074d8f (diff) | |
download | linux-06726f30364c38f12519e2c6c046f19b2aa509bc.tar.gz linux-06726f30364c38f12519e2c6c046f19b2aa509bc.tar.bz2 linux-06726f30364c38f12519e2c6c046f19b2aa509bc.zip |
nfp: link basic ethtool ops to representors
Start linking ethtool ops to representors. Begin by adding
a separate ops structure and providing link state. Next
patches will convert appropriate functions to only use nfp_port,
which will make them reusable on representors.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/nfp_net_repr.c')
-rw-r--r-- | drivers/net/ethernet/netronome/nfp/nfp_net_repr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_repr.c b/drivers/net/ethernet/netronome/nfp/nfp_net_repr.c index 47daad30756c..50f7cc057cc9 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_net_repr.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_repr.c @@ -320,6 +320,8 @@ int nfp_repr_init(struct nfp_app *app, struct net_device *netdev, repr->dst->u.port_info.lower_dev = pf_netdev; netdev->netdev_ops = &nfp_repr_netdev_ops; + netdev->ethtool_ops = &nfp_port_ethtool_ops; + SWITCHDEV_SET_OPS(netdev, &nfp_port_switchdev_ops); if (nfp_app_has_tc(app)) { |