Lines Matching refs:PACKET_CB
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(first)->keypair; in wg_packet_tx_worker()
298 PACKET_CB(first)->keypair))) { in wg_packet_encrypt_worker()
328 wg_noise_keypair_put(PACKET_CB(first)->keypair, false); in wg_packet_create_data()
377 PACKET_CB(skb)->ds = ip_tunnel_ecn_encap(0, ip_hdr(skb), skb); in wg_packet_send_staged_packets()
378 PACKET_CB(skb)->nonce = in wg_packet_send_staged_packets()
380 if (unlikely(PACKET_CB(skb)->nonce >= REJECT_AFTER_MESSAGES)) in wg_packet_send_staged_packets()
386 PACKET_CB(packets.next)->keypair = keypair; in wg_packet_send_staged_packets()