Home
last modified time | relevance | path

Searched refs:staged_packet_queue (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/net/wireguard/
Dsend.c225 if (skb_queue_empty(&peer->staged_packet_queue)) { in wg_packet_send_keepalive()
233 skb_queue_tail(&peer->staged_packet_queue, skb); in wg_packet_send_keepalive()
335 spin_lock_bh(&peer->staged_packet_queue.lock); in wg_packet_purge_staged_packets()
336 peer->device->dev->stats.tx_dropped += peer->staged_packet_queue.qlen; in wg_packet_purge_staged_packets()
337 __skb_queue_purge(&peer->staged_packet_queue); in wg_packet_purge_staged_packets()
338 spin_unlock_bh(&peer->staged_packet_queue.lock); in wg_packet_purge_staged_packets()
349 spin_lock_bh(&peer->staged_packet_queue.lock); in wg_packet_send_staged_packets()
350 skb_queue_splice_init(&peer->staged_packet_queue, &packets); in wg_packet_send_staged_packets()
351 spin_unlock_bh(&peer->staged_packet_queue.lock); in wg_packet_send_staged_packets()
405 spin_lock_bh(&peer->staged_packet_queue.lock); in wg_packet_send_staged_packets()
[all …]
Ddevice.c205 spin_lock_bh(&peer->staged_packet_queue.lock); in wg_xmit()
210 while (skb_queue_len(&peer->staged_packet_queue) > MAX_STAGED_PACKETS) { in wg_xmit()
211 dev_kfree_skb(__skb_dequeue(&peer->staged_packet_queue)); in wg_xmit()
214 skb_queue_splice_tail(&packets, &peer->staged_packet_queue); in wg_xmit()
215 spin_unlock_bh(&peer->staged_packet_queue.lock); in wg_xmit()
Dpeer.h40 struct sk_buff_head staged_packet_queue; member
Dpeer.c54 skb_queue_head_init(&peer->staged_packet_queue); in wg_peer_create()