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

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
...@@ -1876,7 +1876,7 @@ static int vxlan_rcv(struct sock *sk, struct sk_buff *skb) ...@@ -1876,7 +1876,7 @@ static int vxlan_rcv(struct sock *sk, struct sk_buff *skb)
goto drop; goto drop;
if (vs->flags & VXLAN_F_REMCSUM_RX) if (vs->flags & VXLAN_F_REMCSUM_RX)
if (!vxlan_remcsum(&unparsed, skb, vs->flags)) if (unlikely(!vxlan_remcsum(&unparsed, skb, vs->flags)))
goto drop; goto drop;
if (vxlan_collect_metadata(vs)) { if (vxlan_collect_metadata(vs)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment