]> git.baikalelectronics.ru Git - kernel.git/commit
geneve, vxlan: Don't check skb_dst() twice
authorStefano Brivio <sbrivio@redhat.com>
Fri, 12 Oct 2018 21:53:58 +0000 (23:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 04:51:13 +0000 (21:51 -0700)
commitd889ee7151a11d70c59b48ac9a1029c2deba70f3
tree6fbeefca60c20be0d9a94de89e1c14294f7a2f9d
parente9c1f15b165e0877f05eb5e666fa08acc9d84f12
geneve, vxlan: Don't check skb_dst() twice

Commit f9208097b27e ("net: don't call update_pmtu unconditionally") avoids
that we try updating PMTU for a non-existent destination, but didn't clean
up cases where the check was already explicit. Drop those redundant checks.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c
drivers/net/vxlan.c