Commit 0189399c authored by Fabian Frederick's avatar Fabian Frederick Committed by David S. Miller
Browse files

vxlan: add unlikely to vxlan_remcsum check



small optimization around checking as it's being done in all
receptions

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2ae2904b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1876,7 +1876,7 @@ static int vxlan_rcv(struct sock *sk, struct sk_buff *skb)
		goto drop;

	if (vs->flags & VXLAN_F_REMCSUM_RX)
		if (!vxlan_remcsum(&unparsed, skb, vs->flags))
		if (unlikely(!vxlan_remcsum(&unparsed, skb, vs->flags)))
			goto drop;

	if (vxlan_collect_metadata(vs)) {