Home
last modified time | relevance | path

Searched refs:slot (Results 1 – 15 of 15) sorted by relevance

/net/sched/
Dsch_sfq.c208 struct sfq_slot *slot = &q->slots[x]; in sfq_link() local
209 int qlen = slot->qlen; in sfq_link()
214 slot->dep.next = n; in sfq_link()
215 slot->dep.prev = p; in sfq_link()
259 static inline struct sk_buff *slot_dequeue_tail(struct sfq_slot *slot) in slot_dequeue_tail() argument
261 struct sk_buff *skb = slot->skblist_prev; in slot_dequeue_tail()
263 slot->skblist_prev = skb->prev; in slot_dequeue_tail()
264 skb->prev->next = (struct sk_buff *)slot; in slot_dequeue_tail()
270 static inline struct sk_buff *slot_dequeue_head(struct sfq_slot *slot) in slot_dequeue_head() argument
272 struct sk_buff *skb = slot->skblist_next; in slot_dequeue_head()
[all …]
Dsch_sfb.c73 u8 slot; /* current active bins (0 or 1) */ member
106 static u32 sfb_hash(const struct sk_buff *skb, u32 slot) in sfb_hash() argument
108 return sfb_skb_cb(skb)->hashes[slot]; in sfb_hash()
127 static void increment_one_qlen(u32 sfbhash, u32 slot, struct sfb_sched_data *q) in increment_one_qlen() argument
130 struct sfb_bucket *b = &q->bins[slot].bins[0][0]; in increment_one_qlen()
155 static void decrement_one_qlen(u32 sfbhash, u32 slot, in decrement_one_qlen() argument
159 struct sfb_bucket *b = &q->bins[slot].bins[0][0]; in decrement_one_qlen()
206 const struct sfb_bucket *b = &q->bins[q->slot].bins[0][0]; in sfb_compute_qlen()
222 static void sfb_init_perturbation(u32 slot, struct sfb_sched_data *q) in sfb_init_perturbation() argument
224 get_random_bytes(&q->bins[slot].perturbation, in sfb_init_perturbation()
[all …]
Dsch_api.c539 int pkt_len, slot; in __qdisc_calculate_pkt_len() local
545 slot = pkt_len + stab->szopts.cell_align; in __qdisc_calculate_pkt_len()
546 if (unlikely(slot < 0)) in __qdisc_calculate_pkt_len()
547 slot = 0; in __qdisc_calculate_pkt_len()
549 slot >>= stab->szopts.cell_log; in __qdisc_calculate_pkt_len()
550 if (likely(slot < stab->szopts.tsize)) in __qdisc_calculate_pkt_len()
551 pkt_len = stab->data[slot]; in __qdisc_calculate_pkt_len()
554 (slot / stab->szopts.tsize) + in __qdisc_calculate_pkt_len()
555 stab->data[slot % stab->szopts.tsize]; in __qdisc_calculate_pkt_len()
Dsch_qfq.c888 u64 slot = (roundedS - grp->S) >> grp->slot_shift; in qfq_slot_insert() local
891 if (unlikely(slot > QFQ_MAX_SLOTS - 2)) { in qfq_slot_insert()
896 slot = QFQ_MAX_SLOTS - 2; in qfq_slot_insert()
899 i = (grp->front + slot) % QFQ_MAX_SLOTS; in qfq_slot_insert()
902 __set_bit(slot, &grp->full_slots); in qfq_slot_insert()
/net/ipv4/
Draw_diag.c61 int slot; in raw_sock_get() local
67 for (slot = 0; slot < RAW_HTABLE_SIZE; slot++) { in raw_sock_get()
68 sk_for_each(s, &hashinfo->ht[slot]) { in raw_sock_get()
152 int num, s_num, slot, s_slot; in raw_diag_dump() local
162 for (slot = s_slot; slot < RAW_HTABLE_SIZE; s_num = 0, slot++) { in raw_diag_dump()
165 sk_for_each(sk, &hashinfo->ht[slot]) { in raw_diag_dump()
190 cb->args[0] = slot; in raw_diag_dump()
Dinet_timewait_sock.c263 unsigned int slot; in inet_twsk_purge() local
265 for (slot = 0; slot <= hashinfo->ehash_mask; slot++) { in inet_twsk_purge()
266 struct inet_ehash_bucket *head = &hashinfo->ehash[slot]; in inet_twsk_purge()
298 if (get_nulls_value(node) != slot) in inet_twsk_purge()
Dudp_diag.c104 int num, s_num, slot, s_slot; in udp_dump() local
109 for (slot = s_slot; slot <= table->mask; s_num = 0, slot++) { in udp_dump()
110 struct udp_hslot *hslot = &table->hash[slot]; in udp_dump()
148 cb->args[0] = slot; in udp_dump()
Dinet_hashtables.c287 unsigned int slot = hash & hashinfo->ehash_mask; in __inet_lookup_established() local
288 struct inet_ehash_bucket *head = &hashinfo->ehash[slot]; in __inet_lookup_established()
312 if (get_nulls_value(node) != slot) in __inet_lookup_established()
Dudp.c488 unsigned int hash2, slot2, slot = udp_hashfn(net, hnum, udptable->mask); in __udp4_lib_lookup() local
489 struct udp_hslot *hslot2, *hslot = &udptable->hash[slot]; in __udp4_lib_lookup()
2216 unsigned int slot = udp_hashfn(net, hnum, udp_table.mask); in __udp4_lib_mcast_demux_lookup() local
2217 struct udp_hslot *hslot = &udp_table.hash[slot]; in __udp4_lib_mcast_demux_lookup()
/net/unix/
Ddiag.c185 int num, s_num, slot, s_slot; in unix_diag_dump() local
194 for (slot = s_slot; in unix_diag_dump()
195 slot < ARRAY_SIZE(unix_socket_table); in unix_diag_dump()
196 s_num = 0, slot++) { in unix_diag_dump()
200 sk_for_each(sk, &unix_socket_table[slot]) { in unix_diag_dump()
218 cb->args[0] = slot; in unix_diag_dump()
/net/llc/
Dllc_conn.c483 int slot = llc_sk_laddr_hashfn(sap, laddr); in __llc_lookup_established() local
484 struct hlist_nulls_head *laddr_hb = &sap->sk_laddr_hash[slot]; in __llc_lookup_established()
507 if (unlikely(get_nulls_value(node) != slot)) in __llc_lookup_established()
542 int slot = llc_sk_laddr_hashfn(sap, laddr); in __llc_lookup_listener() local
543 struct hlist_nulls_head *laddr_hb = &sap->sk_laddr_hash[slot]; in __llc_lookup_listener()
566 if (unlikely(get_nulls_value(node) != slot)) in __llc_lookup_listener()
Dllc_sap.c317 int slot = llc_sk_laddr_hashfn(sap, laddr); in llc_lookup_dgram() local
318 struct hlist_nulls_head *laddr_hb = &sap->sk_laddr_hash[slot]; in llc_lookup_dgram()
341 if (unlikely(get_nulls_value(node) != slot)) in llc_lookup_dgram()
/net/ipv6/
Dinet6_hashtables.c68 unsigned int slot = hash & hashinfo->ehash_mask; in __inet6_lookup_established() local
69 struct inet_ehash_bucket *head = &hashinfo->ehash[slot]; in __inet6_lookup_established()
87 if (get_nulls_value(node) != slot) in __inet6_lookup_established()
Dudp.c228 unsigned int hash2, slot2, slot = udp_hashfn(net, hnum, udptable->mask); in __udp6_lib_lookup() local
229 struct udp_hslot *hslot2, *hslot = &udptable->hash[slot]; in __udp6_lib_lookup()
/net/bridge/
Dbr_multicast.c1347 struct hlist_node *slot = NULL; in br_multicast_add_router() local
1355 slot = &p->rlist; in br_multicast_add_router()
1358 if (slot) in br_multicast_add_router()
1359 hlist_add_behind_rcu(&port->rlist, slot); in br_multicast_add_router()