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
7struct net_device;
8struct netlink_ext_ack;
9struct tc_mqprio_qopt;
10
11int 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);
15void mqprio_qopt_reconstruct(struct net_device *dev,
16 struct tc_mqprio_qopt *qopt);
17void mqprio_fp_to_offload(u32 fp[TC_QOPT_MAX_QUEUE],
18 struct tc_mqprio_qopt_offload *mqprio);
19
20#endif
21

source code of linux/net/sched/sch_mqprio_lib.h