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.c | |
parent | d05d9eb79d0cd0f7a978621b4a56a1f2db444f86 (diff) |
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.c')
-rw-r--r-- | drivers/net/ethernet/microchip/sparx5/sparx5_tc.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/net/ethernet/microchip/sparx5/sparx5_tc.c b/drivers/net/ethernet/microchip/sparx5/sparx5_tc.c new file mode 100644 index 000000000000..1bafca0be795 --- /dev/null +++ b/drivers/net/ethernet/microchip/sparx5/sparx5_tc.c @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* Microchip Sparx5 Switch driver + * + * Copyright (c) 2022 Microchip Technology Inc. and its subsidiaries. + */ + +#include "sparx5_tc.h" +#include "sparx5_main.h" + +int sparx5_port_setup_tc(struct net_device *ndev, enum tc_setup_type type, + void *type_data) +{ + switch (type) { + default: + return -EOPNOTSUPP; + } + + return 0; +} |