Home
last modified time | relevance | path

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

/net/sched/
Dsch_sfq.c206 struct sfq_slot *slot = &q->slots[x]; in sfq_link() local
207 int qlen = slot->qlen; in sfq_link()
212 slot->dep.next = n; in sfq_link()
213 slot->dep.prev = p; in sfq_link()
257 static inline struct sk_buff *slot_dequeue_tail(struct sfq_slot *slot) in slot_dequeue_tail() argument
259 struct sk_buff *skb = slot->skblist_prev; in slot_dequeue_tail()
261 slot->skblist_prev = skb->prev; in slot_dequeue_tail()
262 skb->prev->next = (struct sk_buff *)slot; in slot_dequeue_tail()
268 static inline struct sk_buff *slot_dequeue_head(struct sfq_slot *slot) in slot_dequeue_head() argument
270 struct sk_buff *skb = slot->skblist_next; in slot_dequeue_head()
[all …]
Dsch_sfb.c69 u8 slot; /* current active bins (0 or 1) */ member
102 static u32 sfb_hash(const struct sk_buff *skb, u32 slot) in sfb_hash() argument
104 return sfb_skb_cb(skb)->hashes[slot]; in sfb_hash()
123 static void increment_one_qlen(u32 sfbhash, u32 slot, struct sfb_sched_data *q) in increment_one_qlen() argument
126 struct sfb_bucket *b = &q->bins[slot].bins[0][0]; in increment_one_qlen()
151 static void decrement_one_qlen(u32 sfbhash, u32 slot, in decrement_one_qlen() argument
155 struct sfb_bucket *b = &q->bins[slot].bins[0][0]; in decrement_one_qlen()
202 const struct sfb_bucket *b = &q->bins[q->slot].bins[0][0]; in sfb_compute_qlen()
218 static void sfb_init_perturbation(u32 slot, struct sfb_sched_data *q) in sfb_init_perturbation() argument
220 get_random_bytes(&q->bins[slot].perturbation, in sfb_init_perturbation()
[all …]
Dsch_netem.c145 } slot; member
643 q->slot.slot_next = now + next_delay; in get_slot_next()
644 q->slot.packets_left = q->slot_config.max_packets; in get_slot_next()
645 q->slot.bytes_left = q->slot_config.max_bytes; in get_slot_next()
696 if (q->slot.slot_next && q->slot.slot_next < time_to_send) in netem_dequeue()
699 if (time_to_send <= now && q->slot.slot_next <= now) { in netem_dequeue()
710 if (q->slot.slot_next) { in netem_dequeue()
711 q->slot.packets_left--; in netem_dequeue()
712 q->slot.bytes_left -= qdisc_pkt_len(skb); in netem_dequeue()
713 if (q->slot.packets_left <= 0 || in netem_dequeue()
[all …]
Dsch_api.c565 int pkt_len, slot; in __qdisc_calculate_pkt_len() local
571 slot = pkt_len + stab->szopts.cell_align; in __qdisc_calculate_pkt_len()
572 if (unlikely(slot < 0)) in __qdisc_calculate_pkt_len()
573 slot = 0; in __qdisc_calculate_pkt_len()
575 slot >>= stab->szopts.cell_log; in __qdisc_calculate_pkt_len()
576 if (likely(slot < stab->szopts.tsize)) in __qdisc_calculate_pkt_len()
577 pkt_len = stab->data[slot]; in __qdisc_calculate_pkt_len()
580 (slot / stab->szopts.tsize) + in __qdisc_calculate_pkt_len()
581 stab->data[slot % stab->szopts.tsize]; in __qdisc_calculate_pkt_len()
Dsch_qfq.c883 u64 slot = (roundedS - grp->S) >> grp->slot_shift; in qfq_slot_insert() local
886 if (unlikely(slot > QFQ_MAX_SLOTS - 2)) { in qfq_slot_insert()
891 slot = QFQ_MAX_SLOTS - 2; in qfq_slot_insert()
894 i = (grp->front + slot) % QFQ_MAX_SLOTS; in qfq_slot_insert()
897 __set_bit(slot, &grp->full_slots); in qfq_slot_insert()
/net/ipv4/
Draw_diag.c62 int slot; in raw_sock_get() local
68 for (slot = 0; slot < RAW_HTABLE_SIZE; slot++) { in raw_sock_get()
69 sk_for_each(s, &hashinfo->ht[slot]) { in raw_sock_get()
153 int num, s_num, slot, s_slot; in raw_diag_dump() local
163 for (slot = s_slot; slot < RAW_HTABLE_SIZE; s_num = 0, slot++) { in raw_diag_dump()
166 sk_for_each(sk, &hashinfo->ht[slot]) { in raw_diag_dump()
191 cb->args[0] = slot; in raw_diag_dump()
Dinet_timewait_sock.c262 unsigned int slot; in inet_twsk_purge() local
264 for (slot = 0; slot <= hashinfo->ehash_mask; slot++) { in inet_twsk_purge()
265 struct inet_ehash_bucket *head = &hashinfo->ehash[slot]; in inet_twsk_purge()
297 if (get_nulls_value(node) != slot) in inet_twsk_purge()
Dudp_diag.c101 int num, s_num, slot, s_slot; in udp_dump() local
106 for (slot = s_slot; slot <= table->mask; s_num = 0, slot++) { in udp_dump()
107 struct udp_hslot *hslot = &table->hash[slot]; in udp_dump()
145 cb->args[0] = slot; in udp_dump()
Dinet_hashtables.c366 unsigned int slot = hash & hashinfo->ehash_mask; in __inet_lookup_established() local
367 struct inet_ehash_bucket *head = &hashinfo->ehash[slot]; in __inet_lookup_established()
391 if (get_nulls_value(node) != slot) in __inet_lookup_established()
Dudp.c2400 unsigned int slot = udp_hashfn(net, hnum, udp_table.mask); in __udp4_lib_mcast_demux_lookup() local
2401 struct udp_hslot *hslot = &udp_table.hash[slot]; in __udp4_lib_mcast_demux_lookup()
/net/rxrpc/
Dpeer_event.c309 int slot; in rxrpc_peer_keepalive_dispatch() local
325 slot = keepalive_at - base; in rxrpc_peer_keepalive_dispatch()
327 cursor, peer->debug_id, slot, &peer->srx.transport); in rxrpc_peer_keepalive_dispatch()
332 slot = RXRPC_KEEPALIVE_TIME; in rxrpc_peer_keepalive_dispatch()
339 slot += cursor; in rxrpc_peer_keepalive_dispatch()
340 slot &= mask; in rxrpc_peer_keepalive_dispatch()
343 &rxnet->peer_keepalive[slot & mask]); in rxrpc_peer_keepalive_dispatch()
/net/unix/
Ddiag.c201 int num, s_num, slot, s_slot; in unix_diag_dump() local
210 for (slot = s_slot; in unix_diag_dump()
211 slot < ARRAY_SIZE(unix_socket_table); in unix_diag_dump()
212 s_num = 0, slot++) { in unix_diag_dump()
216 sk_for_each(sk, &unix_socket_table[slot]) { in unix_diag_dump()
234 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.c64 unsigned int slot = hash & hashinfo->ehash_mask; in __inet6_lookup_established() local
65 struct inet_ehash_bucket *head = &hashinfo->ehash[slot]; in __inet6_lookup_established()
83 if (get_nulls_value(node) != slot) in __inet6_lookup_established()
/net/bridge/
Dbr_multicast.c1158 struct hlist_node *slot = NULL; in br_multicast_add_router() local
1166 slot = &p->rlist; in br_multicast_add_router()
1169 if (slot) in br_multicast_add_router()
1170 hlist_add_behind_rcu(&port->rlist, slot); in br_multicast_add_router()