Lines Matching defs:slot
151 } slot;
634 /* Delay the next round with a new future slot with a
652 q->slot.slot_next = now + next_delay;
653 q->slot.packets_left = q->slot_config.max_packets;
654 q->slot.bytes_left = q->slot_config.max_bytes;
705 if (q->slot.slot_next && q->slot.slot_next < time_to_send)
708 if (time_to_send <= now && q->slot.slot_next <= now) {
719 if (q->slot.slot_next) {
720 q->slot.packets_left--;
721 q->slot.bytes_left -= qdisc_pkt_len(skb);
722 if (q->slot.packets_left <= 0 ||
723 q->slot.bytes_left <= 0)
753 q->slot.slot_next));
820 q->slot.packets_left = q->slot_config.max_packets;
821 q->slot.bytes_left = q->slot_config.max_bytes;
824 q->slot.slot_next = ktime_get_ns();
826 q->slot.slot_next = 0;
1155 struct tc_netem_slot slot;
1212 slot = q->slot_config;
1213 if (slot.max_packets == INT_MAX)
1214 slot.max_packets = 0;
1215 if (slot.max_bytes == INT_MAX)
1216 slot.max_bytes = 0;
1217 if (nla_put(skb, TCA_NETEM_SLOT, sizeof(slot), &slot))