Commit | Line | Data |
---|---|---|
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 | ||
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); | |
9dd6ad67 VO |
15 | void mqprio_qopt_reconstruct(struct net_device *dev, |
16 | struct tc_mqprio_qopt *qopt); | |
f62af20b VO |
17 | void mqprio_fp_to_offload(u32 fp[TC_QOPT_MAX_QUEUE], |
18 | struct tc_mqprio_qopt_offload *mqprio); | |
1dfe086d VO |
19 | |
20 | #endif |