#ifndef __SPARX5_TC_H__
#define __SPARX5_TC_H__
#include <net/flow_offload.h>
#include <net/pkt_cls.h>
#include <linux/netdevice.h>
enum SPX5_PORT_MASK_MODE { … };
enum SPX5_FORWARDING_SEL { … };
enum SPX5_OUTER_TAG_SEL { … };
enum SPX5_TPID_A_SEL { … };
enum SPX5_VID_A_SEL { … };
enum SPX5_PCP_A_SEL { … };
enum SPX5_DEI_A_SEL { … };
enum SPX5_INNER_TAG_SEL { … };
enum SPX5_TPID_B_SEL { … };
int sparx5_port_setup_tc(struct net_device *ndev, enum tc_setup_type type,
void *type_data);
int sparx5_tc_matchall(struct net_device *ndev,
struct tc_cls_matchall_offload *tmo,
bool ingress);
int sparx5_tc_flower(struct net_device *ndev, struct flow_cls_offload *fco,
bool ingress);
#endif