]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: update skb dst pmtu on tx path
authorXin Long <lucien.xin@gmail.com>
Mon, 18 Dec 2017 06:20:56 +0000 (14:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Dec 2017 18:37:27 +0000 (13:37 -0500)
commit7be0638ed5dbce0ae7e9cf0904fe0d95e8b68b67
treef992eb65066704d932295403ec13e7de6113c150
parent7e458d7d6ef35a7cf5c12cdf6ada5c203ff057f0
vxlan: update skb dst pmtu on tx path

Unlike ip tunnels, now vxlan doesn't do any pmtu update for
upper dst pmtu, even if it doesn't match the lower dst pmtu
any more.

The problem can be reproduced when reducing the vxlan lower
dev's pmtu when running netperf. In jianlin's testing, the
performance went to 1/7 of the previous.

This patch is to update the upper dst pmtu to match the lower
dst pmtu on tx path so that packets can be sent out even when
lower dev's pmtu has been changed.

It also works for metadata dst.

Note that this patch doesn't process any pmtu icmp packet.
But even in the future, the support for pmtu icmp packets
process of udp tunnels will also needs this.

The same thing will be done for geneve in another patch.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c