Home
last modified time | relevance | path

Searched refs:prio (Results 1 – 25 of 54) sorted by relevance

123

/net/sched/
Dsch_skbprio.c42 int prio; in calc_new_high_prio() local
44 for (prio = q->highest_prio - 1; prio >= q->lowest_prio; prio--) { in calc_new_high_prio()
45 if (!skb_queue_empty(&q->qdiscs[prio])) in calc_new_high_prio()
46 return prio; in calc_new_high_prio()
55 int prio; in calc_new_low_prio() local
57 for (prio = q->lowest_prio + 1; prio <= q->highest_prio; prio++) { in calc_new_low_prio()
58 if (!skb_queue_empty(&q->qdiscs[prio])) in calc_new_low_prio()
59 return prio; in calc_new_low_prio()
76 u16 prio, lp; in skbprio_enqueue() local
79 prio = min(skb->priority, max_priority); in skbprio_enqueue()
[all …]
Dsch_prio.c100 int prio; in prio_peek() local
102 for (prio = 0; prio < q->bands; prio++) { in prio_peek()
103 struct Qdisc *qdisc = q->queues[prio]; in prio_peek()
114 int prio; in prio_dequeue() local
116 for (prio = 0; prio < q->bands; prio++) { in prio_dequeue()
117 struct Qdisc *qdisc = q->queues[prio]; in prio_dequeue()
133 int prio; in prio_reset() local
136 for (prio = 0; prio < q->bands; prio++) in prio_reset()
137 qdisc_reset(q->queues[prio]); in prio_reset()
167 int prio; in prio_destroy() local
[all …]
Dsch_htb.c100 u32 prio; /* these two are used only by leaves... */ member
275 struct htb_class *cl, int prio) in htb_add_to_id_tree() argument
282 c = rb_entry(parent, struct htb_class, node[prio]); in htb_add_to_id_tree()
289 rb_link_node(&cl->node[prio], parent, p); in htb_add_to_id_tree()
290 rb_insert_color(&cl->node[prio], root); in htb_add_to_id_tree()
348 int prio = ffz(~mask); in htb_add_class_to_row() local
349 mask &= ~(1 << prio); in htb_add_class_to_row()
350 htb_add_to_id_tree(&q->hlevel[cl->level].hprio[prio].row, cl, prio); in htb_add_class_to_row()
379 int prio = ffz(~mask); in htb_remove_class_from_row() local
380 struct htb_prio *hprio = &hlevel->hprio[prio]; in htb_remove_class_from_row()
[all …]
Dsch_gred.c40 u8 prio; /* the prio of this vq */ member
105 if (table->tab[n] && table->tab[n]->prio == q->prio) in gred_wred_mode_check()
198 if (t->tab[i] && t->tab[i]->prio < q->prio && in gred_enqueue()
338 opt.set.tab[i].prio = q->prio; in gred_offload()
475 struct tc_gred_qopt *ctl, int prio, in gred_change_vq() argument
497 q->prio = prio; in gred_change_vq()
641 int err, prio = GRED_DEF_PRIO; in gred_change() local
685 if (ctl->prio == 0) { in gred_change()
689 def_prio = table->tab[table->def]->prio; in gred_change()
694 prio = def_prio; in gred_change()
[all …]
Dsch_generic.c769 int prio; in pfifo_fast_init() local
775 for (prio = 0; prio < PFIFO_FAST_BANDS; prio++) { in pfifo_fast_init()
776 struct skb_array *q = band2list(priv, prio); in pfifo_fast_init()
792 int prio; in pfifo_fast_destroy() local
794 for (prio = 0; prio < PFIFO_FAST_BANDS; prio++) { in pfifo_fast_destroy()
795 struct skb_array *q = band2list(priv, prio); in pfifo_fast_destroy()
814 int prio; in pfifo_fast_change_tx_queue_len() local
816 for (prio = 0; prio < PFIFO_FAST_BANDS; prio++) { in pfifo_fast_change_tx_queue_len()
817 struct skb_array *q = band2list(priv, prio); in pfifo_fast_change_tx_queue_len()
819 bands[prio] = q; in pfifo_fast_change_tx_queue_len()
Dcls_api.c52 return jhash_3words(tp->chain->index, tp->prio, in destroy_obj_hashfn()
71 tp1->prio == tp2->prio && in tcf_proto_cmp()
216 first = tp->prio - 1; in tcf_auto_prio()
250 u32 prio, struct tcf_chain *chain, in tcf_proto_create() argument
268 tp->prio = prio; in tcf_proto_create()
956 u32 prio = 0; in __tcf_get_next_proto() local
968 prio = tp->prio + 1; in __tcf_get_next_proto()
972 if (!tp->deleting && tp->prio >= prio) in __tcf_get_next_proto()
1573 tp->prio & 0xffff, in __tcf_classify()
1683 u32 protocol, u32 prio,
[all …]
Dcls_u32.c72 u32 prio; member
362 root_ht->prio = tp->prio; in u32_init()
485 cls_u32.hnode.prio = h->prio; in u32_clear_hw_hnode()
503 cls_u32.hnode.prio = h->prio; in u32_replace_hw_hnode()
961 ht->prio = tp->prio; in u32_change()
1169 if (ht->prio != tp->prio) in u32_walk()
1207 cls_u32.hnode.prio = ht->prio; in u32_reoffload_hnode()
1267 if (ht->prio != tp->prio) in u32_reoffload()
Dsch_ets.c513 int prio = 0; in ets_qdisc_priomap_parse() local
527 if (prio > TC_PRIO_MAX) { in ets_qdisc_priomap_parse()
536 priomap[prio++] = band; in ets_qdisc_priomap_parse()
744 int prio; in ets_qdisc_dump() local
780 for (prio = 0; prio <= TC_PRIO_MAX; prio++) { in ets_qdisc_dump()
781 if (nla_put_u8(skb, TCA_ETS_PRIOMAP_BAND, q->prio2band[prio])) in ets_qdisc_dump()
Dact_gate.c313 s32 prio = -1; in tcf_gate_init() local
373 prio = nla_get_s32(tb[TCA_GATE_PRIORITY]); in tcf_gate_init()
421 p->tcfg_priority = prio; in tcf_gate_init()
/net/sctp/
Dstream_sched_prio.c41 struct sctp_stream *stream, int prio, gfp_t gfp) in sctp_sched_prio_new_head() argument
52 p->prio = prio; in sctp_sched_prio_new_head()
59 struct sctp_stream *stream, int prio, gfp_t gfp) in sctp_sched_prio_get_head() argument
68 if (p->prio == prio) in sctp_sched_prio_get_head()
70 if (p->prio > prio) in sctp_sched_prio_get_head()
85 if (p->prio == prio) in sctp_sched_prio_get_head()
90 return sctp_sched_prio_new_head(stream, prio, gfp); in sctp_sched_prio_get_head()
133 struct sctp_stream_priorities *prio, *prio_head; in sctp_sched_prio_sched() local
153 list_for_each_entry(prio, &stream->prio_list, prio_sched) { in sctp_sched_prio_sched()
154 if (prio->prio > prio_head->prio) { in sctp_sched_prio_sched()
[all …]
/net/core/
Dnetprio_cgroup.c113 struct net_device *dev, u32 prio) in netprio_set_prio() argument
121 if (!prio && (!map || map->priomap_len <= id)) in netprio_set_prio()
129 map->priomap[id] = prio; in netprio_set_prio()
163 u32 prio = netprio_prio(parent_css, dev); in cgrp_css_online() local
165 ret = netprio_set_prio(css, dev, prio); in cgrp_css_online()
200 u32 prio; in write_priomap() local
203 if (sscanf(buf, "%"__stringify(IFNAMSIZ)"s %u", devname, &prio) != 2) in write_priomap()
214 ret = netprio_set_prio(of_css(of), dev, prio); in write_priomap()
/net/bridge/
Dbr_stp_bpdu.c92 buf[5] = bpdu->root.prio[0]; in br_send_config_bpdu()
93 buf[6] = bpdu->root.prio[1]; in br_send_config_bpdu()
104 buf[17] = bpdu->bridge_id.prio[0]; in br_send_config_bpdu()
105 buf[18] = bpdu->bridge_id.prio[1]; in br_send_config_bpdu()
200 bpdu.root.prio[0] = buf[2]; in br_stp_rcv()
201 bpdu.root.prio[1] = buf[3]; in br_stp_rcv()
213 bpdu.bridge_id.prio[0] = buf[14]; in br_stp_rcv()
214 bpdu.bridge_id.prio[1] = buf[15]; in br_stp_rcv()
Dbr_stp_if.c296 p->designated_bridge.prio[0] = (newprio >> 8) & 0xFF; in br_stp_set_bridge_priority()
297 p->designated_bridge.prio[1] = newprio & 0xFF; in br_stp_set_bridge_priority()
302 br->bridge_id.prio[0] = (newprio >> 8) & 0xFF; in br_stp_set_bridge_priority()
303 br->bridge_id.prio[1] = newprio & 0xFF; in br_stp_set_bridge_priority()
351 id->prio[0], id->prio[1], in br_show_bridge_id()
Dbr_mrp.c192 hdr->prio = cpu_to_be16(mrp->prio); in br_mrp_alloc_test_skb()
480 mrp->prio = instance->prio; in br_mrp_add()
889 u16 prio = be16_to_cpu(hdr->prio); in br_mrp_test_better_than_own() local
891 if (prio < mrp->prio || in br_mrp_test_better_than_own()
892 (prio == mrp->prio && in br_mrp_test_better_than_own()
Dbr_stp_timer.c58 id->prio[0], id->prio[1], &id->addr); in br_message_age_timer_expired()
Dbr_mrp_switchdev.c15 .prio = mrp->prio, in br_mrp_switchdev_add()
Dbr_mrp_netlink.c56 inst.prio = MRP_DEFAULT_PRIO; in br_mrp_instance_parse()
59 inst.prio = nla_get_u16(tb[IFLA_BRIDGE_MRP_INSTANCE_PRIO]); in br_mrp_instance_parse()
483 mrp->prio)) in br_mrp_fill_info()
/net/bridge/netfilter/
Debt_vlan.c32 unsigned char prio; /* user_priority, given from frame TCI */ in ebt_vlan_mt() local
60 prio = (TCI >> 13) & 0x7; in ebt_vlan_mt()
68 EXIT_ON_MISMATCH(prio, EBT_VLAN_PRIO); in ebt_vlan_mt()
130 if ((unsigned char) info->prio > 7) { in ebt_vlan_mt_check()
132 info->prio); in ebt_vlan_mt_check()
/net/dcb/
Ddcbnl.c557 u8 prio, pgid, tc_pct, up_map; in __dcbnl_pg_getcfg() local
603 prio = DCB_ATTR_VALUE_UNDEFINED; in __dcbnl_pg_getcfg()
610 i - DCB_PG_ATTR_TC_0, &prio, in __dcbnl_pg_getcfg()
615 i - DCB_PG_ATTR_TC_0, &prio, in __dcbnl_pg_getcfg()
636 DCB_TC_ATTR_PARAM_STRICT_PRIO, prio); in __dcbnl_pg_getcfg()
775 u8 prio; in __dcbnl_pg_setcfg() local
805 prio = DCB_ATTR_VALUE_UNDEFINED; in __dcbnl_pg_setcfg()
810 prio = in __dcbnl_pg_setcfg()
828 prio, pgid, tc_pct, up_map); in __dcbnl_pg_setcfg()
833 prio, pgid, tc_pct, up_map); in __dcbnl_pg_setcfg()
[all …]
/net/tipc/
Dbearer.c236 u32 disc_domain, u32 prio, in tipc_enable_bearer() argument
256 if (prio > TIPC_MAX_LINK_PRI && prio != TIPC_MEDIA_LINK_PRI) { in tipc_enable_bearer()
269 if (prio == TIPC_MEDIA_LINK_PRI) in tipc_enable_bearer()
270 prio = m->priority; in tipc_enable_bearer()
287 if (b->priority == prio && in tipc_enable_bearer()
290 name, prio); in tipc_enable_bearer()
292 if (prio == TIPC_MIN_LINK_PRI) { in tipc_enable_bearer()
300 prio--; in tipc_enable_bearer()
333 b->priority = prio; in tipc_enable_bearer()
356 pr_info("Enabled bearer <%s>, priority %u\n", name, prio); in tipc_enable_bearer()
[all …]
/net/batman-adv/
Dmain.c409 u32 prio; in batadv_skb_set_priority() local
425 prio = ntohs(vhdr->h_vlan_TCI) & VLAN_PRIO_MASK; in batadv_skb_set_priority()
426 prio = prio >> VLAN_PRIO_SHIFT; in batadv_skb_set_priority()
433 prio = (ipv4_get_dsfield(ip_hdr) & 0xfc) >> 5; in batadv_skb_set_priority()
440 prio = (ipv6_get_dsfield(ip6_hdr) & 0xfc) >> 5; in batadv_skb_set_priority()
446 skb->priority = prio + 256; in batadv_skb_set_priority()
/net/ipv6/
Dip6_udp_tunnel.c80 __u8 prio, __u8 ttl, __be32 label, in udp_tunnel6_xmit_skb() argument
102 ip6_flow_hdr(ip6h, prio, label); in udp_tunnel6_xmit_skb()
Dsit.c141 int prio = 0; in __ipip6_bucket() local
144 prio |= 2; in __ipip6_bucket()
148 prio |= 1; in __ipip6_bucket()
151 return &sitn->tunnels[prio][h]; in __ipip6_bucket()
1863 int prio; in sit_destroy_tunnels() local
1869 for (prio = 0; prio < 4; prio++) { in sit_destroy_tunnels()
1871 for (h = 0; h < (prio ? IP6_SIT_HASH_SIZE : 1); h++) { in sit_destroy_tunnels()
1874 t = rtnl_dereference(sitn->tunnels[prio][h]); in sit_destroy_tunnels()
/net/netfilter/
Dcore.c168 int prio = INT_MIN; in hooks_validate() local
177 WARN_ON(orig_ops[i]->priority < prio); in hooks_validate()
179 if (orig_ops[i]->priority > prio) in hooks_validate()
180 prio = orig_ops[i]->priority; in hooks_validate()
/net/caif/
Dcfctrl.c382 u8 prio; in cfctrl_recv() local
399 prio = tmp >> 3; in cfctrl_recv()
401 linkparam.priority = prio; in cfctrl_recv()

123