pkt_sched.h (9c3a985f88fa4de82bf4bda906095ce6444e9039) pkt_sched.h (2d800bc500fb3fb07a0fb42e2d0a1356fb9e1e8f)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __NET_PKT_SCHED_H
3#define __NET_PKT_SCHED_H
4
5#include <linux/jiffies.h>
6#include <linux/ktime.h>
7#include <linux/if_vlan.h>
8#include <linux/netdevice.h>

--- 171 unchanged lines hidden (view full) ---

180 bool gate_mask_per_txq:1;
181 /* Device expects lower TXQ numbers to have higher priority over higher
182 * TXQs, regardless of their TC mapping. DO NOT USE FOR NEW DRIVERS,
183 * INSTEAD ENFORCE A PROPER TC:TXQ MAPPING COMING FROM USER SPACE.
184 */
185 bool broken_mqprio:1;
186};
187
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __NET_PKT_SCHED_H
3#define __NET_PKT_SCHED_H
4
5#include <linux/jiffies.h>
6#include <linux/ktime.h>
7#include <linux/if_vlan.h>
8#include <linux/netdevice.h>

--- 171 unchanged lines hidden (view full) ---

180 bool gate_mask_per_txq:1;
181 /* Device expects lower TXQ numbers to have higher priority over higher
182 * TXQs, regardless of their TC mapping. DO NOT USE FOR NEW DRIVERS,
183 * INSTEAD ENFORCE A PROPER TC:TXQ MAPPING COMING FROM USER SPACE.
184 */
185 bool broken_mqprio:1;
186};
187
188enum tc_taprio_qopt_cmd {
189 TAPRIO_CMD_REPLACE,
190 TAPRIO_CMD_DESTROY,
191};
192
188struct tc_taprio_sched_entry {
189 u8 command; /* TC_TAPRIO_CMD_* */
190
191 /* The gate_mask in the offloading side refers to traffic classes */
192 u32 gate_mask;
193 u32 interval;
194};
195
196struct tc_taprio_qopt_offload {
197 struct tc_mqprio_qopt_offload mqprio;
198 struct netlink_ext_ack *extack;
193struct tc_taprio_sched_entry {
194 u8 command; /* TC_TAPRIO_CMD_* */
195
196 /* The gate_mask in the offloading side refers to traffic classes */
197 u32 gate_mask;
198 u32 interval;
199};
200
201struct tc_taprio_qopt_offload {
202 struct tc_mqprio_qopt_offload mqprio;
203 struct netlink_ext_ack *extack;
199 u8 enable;
204 enum tc_taprio_qopt_cmd cmd;
200 ktime_t base_time;
201 u64 cycle_time;
202 u64 cycle_time_extension;
203 u32 max_sdu[TC_MAX_QUEUE];
204
205 size_t num_entries;
206 struct tc_taprio_sched_entry entries[];
207};

--- 64 unchanged lines hidden ---
205 ktime_t base_time;
206 u64 cycle_time;
207 u64 cycle_time_extension;
208 u32 max_sdu[TC_MAX_QUEUE];
209
210 size_t num_entries;
211 struct tc_taprio_sched_entry entries[];
212};

--- 64 unchanged lines hidden ---