Home
last modified time | relevance | path

Searched refs:priomap (Results 1 – 18 of 18) sorted by relevance

/Linux-v5.10/net/core/
Dnetprio_cgroup.c47 old = rtnl_dereference(dev->priomap); in extend_netdev_table()
58 new_len = (new_sz - offsetof(struct netprio_map, priomap)) / in extend_netdev_table()
59 sizeof(new->priomap[0]); in extend_netdev_table()
74 memcpy(new->priomap, old->priomap, in extend_netdev_table()
75 old->priomap_len * sizeof(old->priomap[0])); in extend_netdev_table()
80 rcu_assign_pointer(dev->priomap, new); in extend_netdev_table()
95 struct netprio_map *map = rcu_dereference_rtnl(dev->priomap); in netprio_prio()
99 return map->priomap[id]; in netprio_prio()
120 map = rtnl_dereference(dev->priomap); in netprio_set_prio()
128 map = rtnl_dereference(dev->priomap); in netprio_set_prio()
[all …]
Ddev.c3824 map = rcu_dereference_bh(skb->dev->priomap); in skb_update_prio()
3834 skb->priority = map->priomap[prioidx]; in skb_update_prio()
/Linux-v5.10/tools/testing/selftests/net/forwarding/
Dsch_ets_core.sh108 local priomap=$1; shift
116 priomap $priomap
124 local priomap=$1; shift
137 for band in $priomap; do
Dsch_ets_tests.sh153 local priomap=$(seq 0 $((nstreams - 1)))
165 ets_change_qdisc $dev $nstrict "$priomap" ${quanta[@]}
Dsch_tbf_etsprio.sh27 tc qdisc add dev $swp2 root handle 10: $QDISC 3 priomap 2 1 0
Dskbedit_priority.sh66 prio bands 8 priomap 7 6 5 4 3 2 1 0
/Linux-v5.10/net/sched/
Dsch_ets.c126 memcpy(&qopt.replace_params.priomap, in ets_offload_change()
509 unsigned int nbands, u8 *priomap, in ets_qdisc_priomap_parse() argument
536 priomap[prio++] = band; in ets_qdisc_priomap_parse()
592 u8 priomap[TC_PRIO_MAX + 1]; in ets_qdisc_change() local
617 memset(priomap, nbands - 1, sizeof(priomap)); in ets_qdisc_change()
629 nbands, priomap, extack); in ets_qdisc_change()
664 memcpy(q->prio2band, priomap, sizeof(priomap)); in ets_qdisc_change()
Dsch_prio.c156 memcpy(&opt.replace_params.priomap, qopt->priomap, in prio_offload()
194 if (qopt->priomap[i] >= qopt->bands) in prio_tune()
213 memcpy(q->prio2band, qopt->priomap, TC_PRIO_MAX+1); in prio_tune()
272 memcpy(&opt.priomap, q->prio2band, TC_PRIO_MAX + 1); in prio_dump()
Dsch_generic.c711 memcpy(&opt.priomap, prio2band, TC_PRIO_MAX + 1); in pfifo_fast_dump()
/Linux-v5.10/tools/testing/selftests/drivers/net/mlxsw/
Dqos_pfc.sh173 ets bands 8 strict 8 priomap 7 6
189 ets bands 8 strict 8 priomap 7 6
206 ets bands 8 strict 8 priomap 7 6
228 ets bands 8 strict 8 priomap 7 6
Dsch_red_ets.sh29 bands 8 priomap 7 6 5 4 3 2 1 0
Dqos_mc_aware.sh134 prio bands 8 priomap 7 7 7 7 7 7 7 7
/Linux-v5.10/include/net/
Dnetprio_cgroup.h19 u32 priomap[]; member
Dpkt_cls.h870 u8 priomap[TC_PRIO_MAX + 1]; member
912 u8 priomap[TC_PRIO_MAX + 1]; member
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_qdisc.c964 const u8 *priomap) in __mlxsw_sp_qdisc_ets_replace() argument
986 if (priomap[i] == band) { in __mlxsw_sp_qdisc_ets_replace()
1038 zeroes, zeroes, p->priomap); in mlxsw_sp_qdisc_prio_replace()
1143 p->quanta, p->weights, p->priomap); in mlxsw_sp_qdisc_ets_replace()
/Linux-v5.10/tools/include/uapi/linux/
Dpkt_sched.h149 __u8 priomap[TC_PRIO_MAX+1]; /* Map: logical priority -> PRIO band */ member
/Linux-v5.10/include/uapi/linux/
Dpkt_sched.h150 __u8 priomap[TC_PRIO_MAX+1]; /* Map: logical priority -> PRIO band */ member
/Linux-v5.10/include/linux/
Dnetdevice.h2147 struct netprio_map __rcu *priomap; member