[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190617063753.GA3810@splinter>
Date: Mon, 17 Jun 2019 09:37:53 +0300
From: Ido Schimmel <idosch@...sch.org>
To: David Ahern <dsahern@...il.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, jiri@...lanox.com,
alexpe@...lanox.com, mlxsw@...lanox.com,
Ido Schimmel <idosch@...lanox.com>
Subject: Re: [PATCH net-next 02/17] netlink: Add field to skip in-kernel
notifications
On Sun, Jun 16, 2019 at 07:17:26PM -0600, David Ahern wrote:
> On 6/15/19 8:07 AM, Ido Schimmel wrote:
> > From: Ido Schimmel <idosch@...lanox.com>
> >
> > The struct includes a 'skip_notify' flag that indicates if netlink
> > notifications to user space should be suppressed. As explained in commit
> > 3b1137fe7482 ("net: ipv6: Change notifications for multipath add to
> > RTA_MULTIPATH"), this is useful to suppress per-nexthop RTM_NEWROUTE
> > notifications when an IPv6 multipath route is added / deleted. Instead,
> > one notification is sent for the entire multipath route.
> >
> > This concept is also useful for in-kernel notifications. Sending one
> > in-kernel notification for the addition / deletion of an IPv6 multipath
> > route - instead of one per-nexthop - provides a significant increase in
> > the insertion / deletion rate to underlying devices.
> >
> > Add a 'skip_notify_kernel' flag to suppress in-kernel notifications.
> >
> > Signed-off-by: Ido Schimmel <idosch@...lanox.com>
> > Acked-by: Jiri Pirko <jiri@...lanox.com>
> > ---
> > include/net/netlink.h | 4 +++-
> > 1 file changed, 3 insertions(+), 1 deletion(-)
> >
>
> Unfortunate a second flag is needed.
Initially I used the existing flag, but then I realized it's also used
to suppress notifications when a device goes down.
> Reviewed-by: David Ahern <dsahern@...il.com>
Thanks
Powered by blists - more mailing lists