aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/microchip/sparx5/sparx5_tc.h
diff options
context:
space:
mode:
authorDaniel Machon <daniel.machon@microchip.com>2022-09-20 12:14:28 +0200
committerDavid S. Miller <davem@davemloft.net>2022-09-23 09:53:10 +0100
commit65ec1bbe029703dc5e2a217337f30d93cf360a08 (patch)
treed4d6bc79d9671512a236fc353284051f54208e09 /drivers/net/ethernet/microchip/sparx5/sparx5_tc.h
parentMerge branch 'net-dsa-remove-unnecessary-set_drvdata' (diff)
downloadlinux-dev-65ec1bbe029703dc5e2a217337f30d93cf360a08.tar.xz
linux-dev-65ec1bbe029703dc5e2a217337f30d93cf360a08.zip
net: microchip: sparx5: add tc setup hook
Add tc setup hook for QoS features. Signed-off-by: Daniel Machon <daniel.machon@microchip.com> Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/microchip/sparx5/sparx5_tc.h')
-rw-r--r--drivers/net/ethernet/microchip/sparx5/sparx5_tc.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/ethernet/microchip/sparx5/sparx5_tc.h b/drivers/net/ethernet/microchip/sparx5/sparx5_tc.h
new file mode 100644
index 000000000000..5b55e11b77e1
--- /dev/null
+++ b/drivers/net/ethernet/microchip/sparx5/sparx5_tc.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/* Microchip Sparx5 Switch driver
+ *
+ * Copyright (c) 2022 Microchip Technology Inc. and its subsidiaries.
+ */
+
+#ifndef __SPARX5_TC_H__
+#define __SPARX5_TC_H__
+
+#include <linux/netdevice.h>
+
+int sparx5_port_setup_tc(struct net_device *ndev, enum tc_setup_type type,
+ void *type_data);
+
+#endif /* __SPARX5_TC_H__ */