Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v5.18 29 lines 732 B view raw
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ 3 */ 4 5#ifndef AM65_CPSW_QOS_H_ 6#define AM65_CPSW_QOS_H_ 7 8#include <linux/netdevice.h> 9#include <net/pkt_sched.h> 10 11struct am65_cpsw_est { 12 int buf; 13 /* has to be the last one */ 14 struct tc_taprio_qopt_offload taprio; 15}; 16 17struct am65_cpsw_qos { 18 struct am65_cpsw_est *est_admin; 19 struct am65_cpsw_est *est_oper; 20 ktime_t link_down_time; 21 int link_speed; 22}; 23 24int am65_cpsw_qos_ndo_setup_tc(struct net_device *ndev, enum tc_setup_type type, 25 void *type_data); 26void am65_cpsw_qos_link_up(struct net_device *ndev, int link_speed); 27void am65_cpsw_qos_link_down(struct net_device *ndev); 28 29#endif /* AM65_CPSW_QOS_H_ */