author | Stefano Brivio <sbrivio@redhat.com> | |
Fri, 12 Oct 2018 21:53:59 +0000 (23:53 +0200) | ||
committer | David S. Miller <davem@davemloft.net> | |
Thu, 18 Oct 2018 04:51:13 +0000 (21:51 -0700) | ||
commit | 6b4f92af3d59e882d3ba04c44a815266890d188f | |
tree | 8446305611f6d7e76b1470f1ca91f8bdb822b7bf | tree | snapshot (tar.xz tar.gz zip) |
parent | 7463e4f9b99c089cc962033b46349ff29f466e40 | commit | diff |
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: 52a589d51f10 ("geneve: update skb dst pmtu on tx path")
Fixes: a93bf0ff4490 ("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>
We shouldn't abuse exceptions: if the destination MTU is already higher
than what we're transmitting, no exception should be created.
Fixes: 52a589d51f10 ("geneve: update skb dst pmtu on tx path")
Fixes: a93bf0ff4490 ("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 | diff | blob | history | |
drivers/net/vxlan.c | diff | blob | history | |
include/net/dst.h | diff | blob | history |