]> 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)
commit10b0351698e2864c307034bfa89283df857e076e
tree6fbeefca60c20be0d9a94de89e1c14294f7a2f9d
parent5e3dc4e455dd0fe425ccec764c04fc6ae29f77d7
geneve, vxlan: Don't check skb_dst() twice

Commit 8cbdb57453a0 ("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