aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/receive.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/receive.c')
-rw-r--r--src/receive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/receive.c b/src/receive.c
index 11fc700..5dc9c5b 100644
--- a/src/receive.c
+++ b/src/receive.c
@@ -248,7 +248,7 @@ static void receive_data_packet(struct sk_buff *skb, struct wireguard_peer *peer
}
dev->last_rx = jiffies;
- if (netif_rx(skb) == NET_RX_SUCCESS)
+ if (likely(netif_rx(skb) == NET_RX_SUCCESS))
rx_stats(peer, skb->len);
else {
++dev->stats.rx_dropped;