0001
0002
0003
0004
0005
0006 #ifndef _MSCC_OCELOT_VCAP_H_
0007 #define _MSCC_OCELOT_VCAP_H_
0008
0009 #include "ocelot.h"
0010 #include <soc/mscc/ocelot_vcap.h>
0011 #include <net/flow_offload.h>
0012
0013 #define OCELOT_POLICER_DISCARD 0x17f
0014
0015 int ocelot_vcap_filter_stats_update(struct ocelot *ocelot,
0016 struct ocelot_vcap_filter *rule);
0017
0018 void ocelot_detect_vcap_constants(struct ocelot *ocelot);
0019 int ocelot_vcap_init(struct ocelot *ocelot);
0020
0021 int ocelot_setup_tc_cls_flower(struct ocelot_port_private *priv,
0022 struct flow_cls_offload *f,
0023 bool ingress);
0024
0025 #endif