diff options
author | Daniel Machon <daniel.machon@microchip.com> | 2022-09-20 12:14:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-09-23 09:53:10 +0100 |
commit | 65ec1bbe029703dc5e2a217337f30d93cf360a08 (patch) | |
tree | d4d6bc79d9671512a236fc353284051f54208e09 /drivers/net/ethernet/microchip/sparx5/sparx5_tc.h | |
parent | Merge branch 'net-dsa-remove-unnecessary-set_drvdata' (diff) | |
download | linux-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.h | 15 |
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__ */ |