From: Petr Vorel <pvorel@suse.cz>
To: zihanx@nebusec.ai
Cc: davem@davemloft.net, dsahern@kernel.org, edumazet@google.com,
horms@kernel.org, idosch@nvidia.com, kaber@trash.net,
kuba@kernel.org, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, pabeni@redhat.com,
stable@vger.kernel.org, vega@nebusec.ai,
Petr Vorel <pvorel@suse.cz>
Subject: Re: [PATCH net v3 1/1] ipv4: fib: bound automatic table ID allocation
Date: Tue, 1 Sep 2026 13:20:25 +0200 [thread overview]
Message-ID: <20260901112025.855917-1-pvorel@suse.cz> (raw)
In-Reply-To: <6f2f2a7a136aee005512a2e1ac8ede62ac8c7bb6.1788258884.git.zihanx@nebusec.ai>
> diff --git a/net/ipv4/fib_rules.c b/net/ipv4/fib_rules.c
> index 4edb0dca7be8..060501b376a8 100644
> --- a/net/ipv4/fib_rules.c
> +++ b/net/ipv4/fib_rules.c
> @@ -214,6 +214,8 @@ INDIRECT_CALLABLE_SCOPE int fib4_rule_match(struct fib_rule *rule,
> return 1;
> }
>
> +#define FIB_MAX_AUTO_TABLE_ID 4096
> +
> static struct fib_table *fib_empty_table(struct net *net)
> {
> u32 id = 1;
> @@ -222,7 +224,7 @@ static struct fib_table *fib_empty_table(struct net *net)
> if (!fib_get_table(net, id))
> return fib_new_table(net, id);
>
> - if (id++ == RT_TABLE_MAX)
> + if (id++ == FIB_MAX_AUTO_TABLE_ID)
> break;
> }
> return NULL;
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Kind regards,
Petr
prev parent reply other threads:[~2026-09-01 11:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-01 10:59 [PATCH net v3 0/1] ipv4: fib: bound automatic table ID allocation Zihan Xi
2026-09-01 10:59 ` [PATCH net v3 1/1] " Zihan Xi
2026-09-01 11:20 ` Petr Vorel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260901112025.855917-1-pvorel@suse.cz \
--to=pvorel@suse.cz \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=idosch@nvidia.com \
--cc=kaber@trash.net \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=stable@vger.kernel.org \
--cc=vega@nebusec.ai \
--cc=zihanx@nebusec.ai \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox