diff options
| author | Kuniyuki Iwashima <kuniyu@google.com> | 2026-03-01 01:17:22 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-03-03 05:49:39 +0300 |
| commit | 2bd6c9d600d66497f5293dbb8ec61a5e80f13e64 (patch) | |
| tree | d459f9f2e0faa7408ca785a4a819a1b8a2b68a3d /include/linux/timerqueue.h | |
| parent | 402a8111d7becb4220a94f5684edfbd5d4668ddb (diff) | |
| download | linux-2bd6c9d600d66497f5293dbb8ec61a5e80f13e64.tar.xz | |
ipmr: Use MAXVIFS in mroute_msgsize().
mroute_msgsize() calculates skb size needed for ipmr_fill_mroute().
The size differs based on mrt->maxvif.
We will drop RTNL for ipmr_rtm_getroute() and mrt->maxvif may
change under RCU.
To avoid -EMSGSIZE, let's calculate the size with the maximum
value of mrt->maxvif, MAXVIFS.
struct rtnexthop is 8 bytes and MAXVIFS is 32, so the maximum delta
is 256 bytes, which is small enough.
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260228221800.1082070-5-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
