Searched refs:PACKET_CB (Results 1 – 3 of 3) sorted by relevance
145 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(firs in wg_packet_tx_worker() [all...]
67 #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()
201 PACKET_CB(skb)->mtu = mtu; in wg_xmit()