ocelot_vcap.h 624 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
  2. /* Microsemi Ocelot Switch driver
  3. * Copyright (c) 2019 Microsemi Corporation
  4. */
  5. #ifndef _MSCC_OCELOT_VCAP_H_
  6. #define _MSCC_OCELOT_VCAP_H_
  7. #include "ocelot.h"
  8. #include <soc/mscc/ocelot_vcap.h>
  9. #include <net/flow_offload.h>
  10. #define OCELOT_POLICER_DISCARD 0x17f
  11. int ocelot_vcap_filter_stats_update(struct ocelot *ocelot,
  12. struct ocelot_vcap_filter *rule);
  13. int ocelot_vcap_init(struct ocelot *ocelot);
  14. int ocelot_setup_tc_cls_flower(struct ocelot_port_private *priv,
  15. struct flow_cls_offload *f,
  16. bool ingress);
  17. #endif /* _MSCC_OCELOT_VCAP_H_ */