Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/wireguard/
Dsend.c145 if (unlikely(!PACKET_CB(skb)->mtu)) in calculate_skb_padding()
154 if (unlikely(last_unit > PACKET_CB(skb)->mtu)) in calculate_skb_padding()
155 last_unit %= PACKET_CB(skb)->mtu; in calculate_skb_padding()
157 padded_size = min(PACKET_CB(skb)->mtu, in calculate_skb_padding()
208 header->counter = cpu_to_le64(PACKET_CB(skb)->nonce); in encrypt_packet()
217 PACKET_CB(skb)->nonce, in encrypt_packet()
232 PACKET_CB(skb)->mtu = skb->dev->mtu; in wg_packet_send_keepalive()
252 PACKET_CB(skb)->ds) && !is_keepalive)) in wg_packet_create_data_done()
270 (state = atomic_read_acquire(&PACKET_CB(first)->state)) != in wg_packet_tx_worker()
273 keypair = PACKET_CB(first)->keypair; in wg_packet_tx_worker()
[all …]
Dreceive.c266 PACKET_CB(skb)->nonce = in decrypt_packet()
286 PACKET_CB(skb)->nonce, in decrypt_packet()
353 PACKET_CB(skb)->keypair))) { in wg_packet_consume_data_done()
396 INET_ECN_decapsulate(skb, PACKET_CB(skb)->ds, ip_hdr(skb)->tos); in wg_packet_consume_data_done()
400 INET_ECN_decapsulate(skb, PACKET_CB(skb)->ds, ipv6_get_dsfield(ipv6_hdr(skb))); in wg_packet_consume_data_done()
459 (state = atomic_read_acquire(&PACKET_CB(skb)->state)) != in wg_packet_rx_poll()
462 keypair = PACKET_CB(skb)->keypair; in wg_packet_rx_poll()
469 PACKET_CB(skb)->nonce))) { in wg_packet_rx_poll()
472 PACKET_CB(skb)->nonce, in wg_packet_rx_poll()
508 likely(decrypt_packet(skb, PACKET_CB(skb)->keypair)) ? in wg_packet_decrypt_worker()
[all …]
Dqueueing.h67 #define PACKET_CB(skb) ((struct packet_cb *)((skb)->cb)) macro
68 #define PACKET_PEER(skb) (PACKET_CB(skb)->keypair->entry.peer)
168 atomic_set_release(&PACKET_CB(skb)->state, PACKET_STATE_UNCRYPTED); in wg_queue_enqueue_per_device_and_peer()
192 atomic_set_release(&PACKET_CB(skb)->state, state); in wg_queue_enqueue_per_peer_tx()
205 atomic_set_release(&PACKET_CB(skb)->state, state); in wg_queue_enqueue_per_peer_rx()
Ddevice.c184 PACKET_CB(skb)->mtu = mtu; in wg_xmit()