Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/wireguard/
H A 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()
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()
273 keypair = PACKET_CB(first)->keypair; in wg_packet_tx_worker()
298 PACKET_CB(first)->keypair))) { in wg_packet_encrypt_worker()
379 PACKET_CB(skb)->nonce = in wg_packet_send_staged_packets()
[all …]
H A Dreceive.c259 PACKET_CB(skb)->nonce = in decrypt_packet()
279 PACKET_CB(skb)->nonce, in decrypt_packet()
346 PACKET_CB(skb)->keypair))) { in wg_packet_consume_data_done()
455 keypair = PACKET_CB(skb)->keypair; in wg_packet_rx_poll()
462 PACKET_CB(skb)->nonce))) { in wg_packet_rx_poll()
465 PACKET_CB(skb)->nonce, in wg_packet_rx_poll()
501 likely(decrypt_packet(skb, PACKET_CB(skb)->keypair)) ? in wg_packet_decrypt_worker()
516 PACKET_CB(skb)->keypair = in wg_packet_consume_data()
520 if (unlikely(!wg_noise_keypair_get(PACKET_CB(skb)->keypair))) in wg_packet_consume_data()
535 wg_noise_keypair_put(PACKET_CB(skb)->keypair, false); in wg_packet_consume_data()
[all …]
H A Dqueueing.h67 #define PACKET_CB(skb) ((struct packet_cb *)((skb)->cb)) macro
68 #define PACKET_PEER(skb) (PACKET_CB(skb)->keypair->entry.peer)
163 atomic_set_release(&PACKET_CB(skb)->state, PACKET_STATE_UNCRYPTED); in wg_queue_enqueue_per_device_and_peer()
187 atomic_set_release(&PACKET_CB(skb)->state, state); in wg_queue_enqueue_per_peer_tx()
200 atomic_set_release(&PACKET_CB(skb)->state, state); in wg_queue_enqueue_per_peer_rx()
H A Ddevice.c201 PACKET_CB(skb)->mtu = mtu; in wg_xmit()