]> git.baikalelectronics.ru Git - kernel.git/commit
geneve, vxlan: Don't set exceptions if skb->len < mtu
authorStefano Brivio <sbrivio@redhat.com>
Fri, 12 Oct 2018 21:53:59 +0000 (23:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 04:51:13 +0000 (21:51 -0700)
commit551366285f8c82112fddaf369678b09a81513f7d
tree8446305611f6d7e76b1470f1ca91f8bdb822b7bf
parentd889ee7151a11d70c59b48ac9a1029c2deba70f3
geneve, vxlan: Don't set exceptions if skb->len < mtu

We shouldn't abuse exceptions: if the destination MTU is already higher
than what we're transmitting, no exception should be created.

Fixes: 483aabf41299 ("geneve: update skb dst pmtu on tx path")
Fixes: 7be0638ed5db ("vxlan: update skb dst pmtu on tx path")
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
include/net/dst.h