summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKuniyuki Iwashima <kuniyu@google.com>2026-06-05 01:46:21 +0300
committerJakub Kicinski <kuba@kernel.org>2026-06-09 03:06:22 +0300
commit36be7d7c5ded0d70c3384e4730664e25b8d076fc (patch)
tree381e6dbf94209c67b230a30bf87154aae6c87aac /include
parent364568de4e7f8a5a0f0e12a0ba8812377f53c07a (diff)
downloadlinux-36be7d7c5ded0d70c3384e4730664e25b8d076fc.tar.xz
ip6mr: Use MAXMIFS in mr6_msgsize().
mr6_msgsize() calculates skb size needed for ip6mr_fill_mroute(). The size differs based on mrt->maxvif. We will drop RTNL for ip6mr_rtm_getroute() and mrt->maxvif may change under RCU. To avoid -EMSGSIZE, let's calculate the size with the maximum value of mrt->maxvif, MAXMIFS. struct rtnexthop is 8 bytes and MAXMIFS is 32, so the maximum delta is 256 bytes, which is small enough. Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20260604224712.3209821-4-kuniyu@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions