summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/netronome/nfp/nfp_port.h
diff options
context:
space:
mode:
authorJakub Kicinski2017-08-19 00:48:11 +0200
committerDavid S. Miller2017-08-19 07:39:27 +0200
commit06726f30364c38f12519e2c6c046f19b2aa509bc (patch)
treed97eaf2408aa2c947f9224ba74c2ae7f79a4bc67 /drivers/net/ethernet/netronome/nfp/nfp_port.h
parentMerge branch 'net-sysfs-related-cleanups' (diff)
downloadkernel-qcow2-linux-06726f30364c38f12519e2c6c046f19b2aa509bc.tar.gz
kernel-qcow2-linux-06726f30364c38f12519e2c6c046f19b2aa509bc.tar.xz
kernel-qcow2-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_port.h')
-rw-r--r--drivers/net/ethernet/netronome/nfp/nfp_port.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/nfp_port.h b/drivers/net/ethernet/netronome/nfp/nfp_port.h
index c88e376dcf0f..784d82c2f32c 100644
--- a/drivers/net/ethernet/netronome/nfp/nfp_port.h
+++ b/drivers/net/ethernet/netronome/nfp/nfp_port.h
@@ -106,6 +106,7 @@ struct nfp_port {
struct list_head port_list;
};
+extern const struct ethtool_ops nfp_port_ethtool_ops;
extern const struct switchdev_ops nfp_port_switchdev_ops;
int nfp_port_setup_tc(struct net_device *netdev, enum tc_setup_type type,