sch_mqprio_lib.h 564 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __SCH_MQPRIO_LIB_H
  3. #define __SCH_MQPRIO_LIB_H
  4. #include <linux/types.h>
  5. struct net_device;
  6. struct netlink_ext_ack;
  7. struct tc_mqprio_qopt;
  8. int mqprio_validate_qopt(struct net_device *dev, struct tc_mqprio_qopt *qopt,
  9. bool validate_queue_counts,
  10. bool allow_overlapping_txqs,
  11. struct netlink_ext_ack *extack);
  12. void mqprio_qopt_reconstruct(struct net_device *dev,
  13. struct tc_mqprio_qopt *qopt);
  14. void mqprio_fp_to_offload(u32 fp[TC_QOPT_MAX_QUEUE],
  15. struct tc_mqprio_qopt_offload *mqprio);
  16. #endif