Merge tag 'perf-tools-fixes-for-v6.4-1-2023-05-20' of git://git.kernel.org/pub/scm...
[linux-block.git] / net / sched / sch_mqprio_lib.h
CommitLineData
1dfe086d
VO
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);
9dd6ad67
VO
15void mqprio_qopt_reconstruct(struct net_device *dev,
16 struct tc_mqprio_qopt *qopt);
f62af20b
VO
17void mqprio_fp_to_offload(u32 fp[TC_QOPT_MAX_QUEUE],
18 struct tc_mqprio_qopt_offload *mqprio);
1dfe086d
VO
19
20#endif