[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230315074310.2957080-1-gaoxingwang1@huawei.com>
Date: Wed, 15 Mar 2023 15:43:10 +0800
From: gaoxingwang <gaoxingwang1@...wei.com>
To: <idosch@...sch.org>
CC: <davem@...emloft.net>, <gaoxingwang1@...wei.com>,
<kuba@...nel.org>, <liaichun@...wei.com>,
<linux-kernel@...r.kernel.org>, <netdev@...r.kernel.org>,
<pabeni@...hat.com>, <shuah@...nel.org>, <yanan@...wei.com>,
<yoshfuji@...ux-ipv6.org>
Subject: Re: ipv4:the same route is added repeatedly
> diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
> index b5736ef16ed2..390f4be7f7be 100644
> --- a/net/ipv4/fib_frontend.c
> +++ b/net/ipv4/fib_frontend.c
> @@ -576,6 +576,9 @@ static int rtentry_to_fib_config(struct net *net, int cmd, struct rtentry *rt,
> cfg->fc_scope = RT_SCOPE_UNIVERSE;
> }
>
> + if (!cfg->fc_table)
> + cfg->fc_table = RT_TABLE_MAIN;
> +
> if (cmd == SIOCDELRT)
> return 0;
Thanks for you reply.This patch works for me.
Can you submit a patch? Hope the problem will be fixed as soon as possible.
Powered by blists - more mailing lists