summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mscc/ocelot_tc.h
blob: 61757c2250a684a9a23e0048dd897828732ec562 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
/* Microsemi Ocelot Switch driver
 *
 * Copyright (c) 2019 Microsemi Corporation
 */

#ifndef _MSCC_OCELOT_TC_H_
#define _MSCC_OCELOT_TC_H_

#include <linux/netdevice.h>

struct ocelot_port_tc {
	bool block_shared;
	unsigned long offload_cnt;

	unsigned long police_id;
};

int ocelot_setup_tc(struct net_device *dev, enum tc_setup_type type,
		    void *type_data);

#endif /* _MSCC_OCELOT_TC_H_ */