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