]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip neigh: Add ifindex to request when filtering dumps by device
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 7 Oct 2015 17:23:24 +0000 (10:23 -0700)
committerStephen Hemminger <shemming@brocade.com>
Mon, 12 Oct 2015 16:43:28 +0000 (09:43 -0700)
commitb8c753245bad3f13a03b105b724ff406d278c753
tree10d7fe54155b8af53692d44282c1e154f9888106
parentfaa8a463002fb9a365054dd333556e0aaa022759
ip neigh: Add ifindex to request when filtering dumps by device

Add ifindex to dump request when filtering by device. If the kernel
supports it adding the index to the request limits the amount of data
the kernel pushes to userpsace.

The feature exists in userspace already, so no need to warn the user
if kernel side support does not exist. Using the kernel side filter
makes the request more efficient.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
ip/ipneigh.c