ocelot_tc.h 448 B

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