1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
2 /* Microsemi Ocelot Switch driver
3 *
4 * Copyright (c) 2019 Microsemi Corporation
5 */
6
7 #ifndef _MSCC_OCELOT_TC_H_
8 #define _MSCC_OCELOT_TC_H_
9
10 #include <linux/netdevice.h>
11
12 struct ocelot_port_tc {
13 bool block_shared;
14 unsigned long offload_cnt;
15
16 unsigned long police_id;
17 };
18
19 int ocelot_setup_tc(struct net_device *dev, enum tc_setup_type type,
20 void *type_data);
21
22 #endif /* _MSCC_OCELOT_TC_H_ */