]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/iommu.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)
commit6b4f92af3d59e882d3ba04c44a815266890d188f
tree8446305611f6d7e76b1470f1ca91f8bdb822b7bf
parent7463e4f9b99c089cc962033b46349ff29f466e40
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>
drivers/net/geneve.c
drivers/net/vxlan.c
include/net/dst.h