]> git.proxmox.com Git - ovs.git/commit
dpif-netlink-rtnl: Use 65000 instead of 65535 as tunnel MTU.
authorBen Pfaff <blp@ovn.org>
Wed, 17 Jan 2018 18:02:24 +0000 (10:02 -0800)
committerBen Pfaff <blp@ovn.org>
Thu, 18 Jan 2018 22:53:06 +0000 (14:53 -0800)
commit0ca24ab2874bb7213a0c09716070be0c6e4826c7
tree9912bd9e38fde33bfa9480b0a3433b8a6b1cca3a
parente3882e4df1ca57e0b671cabd3f8633bd8964f211
dpif-netlink-rtnl: Use 65000 instead of 65535 as tunnel MTU.

Most of the existing tunnels accept 65535 for MTU and internally reduce it
to the maximum value actually supported.  However, in RTM_SETLINK calls,
at least GRE tunnels reject MTU larger than actually supported.  This
commit changes the MTU used in RTM_NEWLINK calls to use a value that should
be acceptable to all tunnels and yet does not noticeably reduce
performance.

(This code doesn't actually use RTM_SETLINK to change MTU yet, but that's
coming up.)

Suggested-by: Eric Garver <e@erig.me>
Suggested-at: https://mail.openvswitch.org/pipermail/ovs-dev/2018-January/343304.html
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Eric Garver <e@erig.me>
Tested-by: James Page <james.page@ubuntu.com>
lib/dpif-netlink-rtnl.c