Commit 6c52c867 authored by Xin Long's avatar Xin Long Committed by sanglipeng
Browse files

tipc: add tipc_bearer_min_mtu to calculate min mtu

stable inclusion
from stable-v5.10.181
commit 097ea78d8ccaf789eeeb154fdfb6afbd274a2a87
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8GJZJ

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=097ea78d8ccaf789eeeb154fdfb6afbd274a2a87



--------------------------------

[ Upstream commit 3ae6d66b ]

As different media may requires different min mtu, and even the
same media with different net family requires different min mtu,
add tipc_bearer_min_mtu() to calculate min mtu accordingly.

This API will be used to check the new mtu when doing the link
mtu negotiation in the next patch.

Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
Acked-by: default avatarJon Maloy <jmaloy@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Stable-dep-of: 56077b56 ("tipc: do not update mtu if msg_max is too small in mtu negotiation")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 43a6c4e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment