Lines Matching refs:unlikely
30 if (unlikely(skb->len < sizeof(struct message_header))) in validate_header_len()
52 if (unlikely(!wg_check_packet_protocol(skb) || in prepare_skb_header()
59 if (unlikely(data_offset > U16_MAX || in prepare_skb_header()
66 if (unlikely(data_len < sizeof(struct udphdr) || in prepare_skb_header()
74 if (unlikely(!pskb_may_pull(skb, in prepare_skb_header()
79 if (unlikely(skb->len != data_len)) in prepare_skb_header()
83 if (unlikely(!header_len)) in prepare_skb_header()
86 if (unlikely(!pskb_may_pull(skb, data_offset + header_len))) in prepare_skb_header()
145 if (unlikely(!peer)) { in wg_receive_handshake_packet()
167 if (unlikely(!peer)) { in wg_receive_handshake_packet()
192 if (unlikely(!peer)) { in wg_receive_handshake_packet()
236 if (unlikely(send)) { in keep_key_fresh()
249 if (unlikely(!keypair)) in decrypt_packet()
252 if (unlikely(!READ_ONCE(keypair->receiving.is_valid) || in decrypt_packet()
271 if (unlikely(num_frags < 0 || num_frags > ARRAY_SIZE(sg))) in decrypt_packet()
302 if (unlikely(counter->counter >= REJECT_AFTER_MESSAGES + 1 || in counter_validate()
308 if (unlikely((COUNTER_WINDOW_SIZE + their_counter) < in counter_validate()
345 if (unlikely(wg_noise_received_with_keypair(&peer->keypairs, in wg_packet_consume_data_done()
357 if (unlikely(!skb->len)) { in wg_packet_consume_data_done()
367 if (unlikely(skb_network_header(skb) < skb->head)) in wg_packet_consume_data_done()
369 if (unlikely(!(pskb_network_may_pull(skb, sizeof(struct iphdr)) && in wg_packet_consume_data_done()
387 if (unlikely(len < sizeof(struct iphdr))) in wg_packet_consume_data_done()
398 if (unlikely(len > skb->len)) in wg_packet_consume_data_done()
401 if (unlikely(pskb_trim(skb, len))) in wg_packet_consume_data_done()
408 if (unlikely(routed_peer != peer)) in wg_packet_consume_data_done()
448 if (unlikely(budget <= 0)) in wg_packet_rx_poll()
458 if (unlikely(state != PACKET_STATE_CRYPTED)) in wg_packet_rx_poll()
461 if (unlikely(!counter_validate(&keypair->receiving_counter, in wg_packet_rx_poll()
470 if (unlikely(wg_socket_endpoint_from_skb(&endpoint, skb))) in wg_packet_rx_poll()
480 if (unlikely(free)) in wg_packet_rx_poll()
520 if (unlikely(!wg_noise_keypair_get(PACKET_CB(skb)->keypair))) in wg_packet_consume_data()
523 if (unlikely(READ_ONCE(peer->is_dead))) in wg_packet_consume_data()
528 if (unlikely(ret == -EPIPE)) in wg_packet_consume_data()
544 if (unlikely(prepare_skb_header(skb, wg) < 0)) in wg_packet_receive()
552 if (unlikely(!rng_is_initialized())) in wg_packet_receive()