]> git.baikalelectronics.ru Git - kernel.git/commit
net: Add support for filtering link dump by master device and kind
authorDavid Ahern <dsa@cumulusnetworks.com>
Tue, 2 Feb 2016 16:17:07 +0000 (08:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2016 09:18:26 +0000 (04:18 -0500)
commitde914853b7b14378d9efa764618dc7ad9ab76a88
treef591f7f7039d598333bee9e1a720094154da6504
parenta8873f17028cd0c3b03f139dcd7d5f23f42147ba
net: Add support for filtering link dump by master device and kind

Add support for filtering link dumps by master device and kind, similar
to the filtering implemented for neighbor dumps.

Each net_device that exists adds between 1196 bytes (eth) and 1556 bytes
(bridge) to the link dump. As the number of interfaces increases so does
the amount of data pushed to user space for a link list. If the user
only wants to see a list of specific devices (e.g., interfaces enslaved
to a specific bridge or a list of VRFs) most of that data is thrown away.
Passing the filters to the kernel to have only relevant data returned
makes the dump more efficient.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c