[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181015.233058.2244617226408510426.davem@davemloft.net>
Date: Mon, 15 Oct 2018 23:30:58 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: dsahern@...nel.org
Cc: netdev@...r.kernel.org, dsahern@...il.com
Subject: Re: [PATCH v2 net-next 00/11] net: Kernel side filtering for route
dumps
From: David Ahern <dsahern@...nel.org>
Date: Mon, 15 Oct 2018 18:56:40 -0700
> From: David Ahern <dsahern@...il.com>
>
> Implement kernel side filtering of route dumps by protocol (e.g., which
> routing daemon installed the route), route type (e.g., unicast), table
> id and nexthop device.
>
> iproute2 has been doing this filtering in userspace for years; pushing
> the filters to the kernel side reduces the amount of data the kernel
> sends and reduces wasted cycles on both sides processing unwanted data.
> These initial options provide a huge improvement for efficiently
> examining routes on large scale systems.
>
> v2
> - better handling of requests for a specific table. Rather than walking
> the hash of all tables, lookup the specific table and dump it
> - refactor mr_rtm_dumproute moving the loop over the table into a
> helper that can be invoked directly
> - add hook to return NLM_F_DUMP_FILTERED in DONE message to ensure
> it is returned even when the dump returns nothing
Looks great David, I'll push this out to net-next after my build tests
finish.
Thanks.
Powered by blists - more mailing lists