162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef __SCH_MQPRIO_LIB_H 362306a36Sopenharmony_ci#define __SCH_MQPRIO_LIB_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include <linux/types.h> 662306a36Sopenharmony_ci 762306a36Sopenharmony_cistruct net_device; 862306a36Sopenharmony_cistruct netlink_ext_ack; 962306a36Sopenharmony_cistruct tc_mqprio_qopt; 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ciint mqprio_validate_qopt(struct net_device *dev, struct tc_mqprio_qopt *qopt, 1262306a36Sopenharmony_ci bool validate_queue_counts, 1362306a36Sopenharmony_ci bool allow_overlapping_txqs, 1462306a36Sopenharmony_ci struct netlink_ext_ack *extack); 1562306a36Sopenharmony_civoid mqprio_qopt_reconstruct(struct net_device *dev, 1662306a36Sopenharmony_ci struct tc_mqprio_qopt *qopt); 1762306a36Sopenharmony_civoid mqprio_fp_to_offload(u32 fp[TC_QOPT_MAX_QUEUE], 1862306a36Sopenharmony_ci struct tc_mqprio_qopt_offload *mqprio); 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ci#endif 21