xref: /openbmc/linux/net/sched/sch_mqprio_lib.h (revision 9dd6ad674cc74a62cc85de6e02cb29d47e9c4eb5)
11dfe086dSVladimir Oltean /* SPDX-License-Identifier: GPL-2.0 */
21dfe086dSVladimir Oltean #ifndef __SCH_MQPRIO_LIB_H
31dfe086dSVladimir Oltean #define __SCH_MQPRIO_LIB_H
41dfe086dSVladimir Oltean 
51dfe086dSVladimir Oltean #include <linux/types.h>
61dfe086dSVladimir Oltean 
71dfe086dSVladimir Oltean struct net_device;
81dfe086dSVladimir Oltean struct netlink_ext_ack;
91dfe086dSVladimir Oltean struct tc_mqprio_qopt;
101dfe086dSVladimir Oltean 
111dfe086dSVladimir Oltean int mqprio_validate_qopt(struct net_device *dev, struct tc_mqprio_qopt *qopt,
121dfe086dSVladimir Oltean 			 bool validate_queue_counts,
131dfe086dSVladimir Oltean 			 bool allow_overlapping_txqs,
141dfe086dSVladimir Oltean 			 struct netlink_ext_ack *extack);
15*9dd6ad67SVladimir Oltean void mqprio_qopt_reconstruct(struct net_device *dev,
16*9dd6ad67SVladimir Oltean 			     struct tc_mqprio_qopt *qopt);
171dfe086dSVladimir Oltean 
181dfe086dSVladimir Oltean #endif
19