diff options
author | Xin Long <lucien.xin@gmail.com> | 2023-05-14 15:52:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-05-15 10:21:20 +0100 |
commit | 35a089b5d793d2bfd2cc7cfa6104545184de2ce7 (patch) | |
tree | ab4a17e1ba482527d1a03d895bfb776f7e73f8b8 /scripts/gdb/linux/interrupts.py | |
parent | 56077b56cd3fb78e1c8619e29581ba25a5c55e86 (diff) |
tipc: check the bearer min mtu properly when setting it by netlink
Checking the bearer min mtu with tipc_udp_mtu_bad() only works for
IPv4 UDP bearer, and IPv6 UDP bearer has a different value for the
min mtu. This patch checks with encap_hlen + TIPC_MIN_BEARER_MTU
for min mtu, which works for both IPv4 and IPv6 UDP bearer.
Note that tipc_udp_mtu_bad() is still used to check media min mtu
in __tipc_nl_media_set(), as m->mtu currently is only used by the
IPv4 UDP bearer as its default mtu value.
Fixes: 682cd3cf946b ("tipc: confgiure and apply UDP bearer MTU on running links")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/gdb/linux/interrupts.py')
0 files changed, 0 insertions, 0 deletions