diff options
author | Fabian Frederick <fabf@skynet.be> | 2020-09-25 16:16:18 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-26 02:58:07 +0300 |
commit | 0189399cbb5eba6e98f02b61574b507062c476b7 (patch) | |
tree | 40de8833e36333a52eb59aea31dc16f5c6c84354 /drivers/net | |
parent | 2ae2904b5bac4a554e0734cf494bb6d6fdfd4cd2 (diff) | |
download | linux-0189399cbb5eba6e98f02b61574b507062c476b7.tar.xz |
vxlan: add unlikely to vxlan_remcsum check
small optimization around checking as it's being done in all
receptions
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/vxlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 47c762f7f5b1..cc904f003f15 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -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)) { |