]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtnetlink: RTEXT_FILTER_SKIP_STATS support to avoid dumping inet/inet6 stats
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Fri, 11 Sep 2015 20:48:48 +0000 (16:48 -0400)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Fri, 20 Nov 2015 01:59:29 +0000 (17:59 -0800)
commitbd4daecd62e23b26cf723a9d6501e2abaae5937d
tree0434f548f5c405f58de0ff5135bf47a7c72ea07b
parent1c15b5f5f1cff53e068a6922b8a67633d68633d8
rtnetlink: RTEXT_FILTER_SKIP_STATS support to avoid dumping inet/inet6 stats

Many commonly used functions like getifaddrs() invoke RTM_GETLINK
to dump the interface information, and do not need the
the AF_INET6 statististics that are always returned by default
from rtnl_fill_ifinfo().

Computing the statistics can be an expensive operation that impacts
scaling, so it is desirable to avoid this if the information is
not needed.

This patch adds a the RTEXT_FILTER_SKIP_STATS extended info flag that
can be passed with netlink_request() to avoid statistics computation
for the ifinfo path.

Orabug: 21857538

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
include/net/rtnetlink.h
include/uapi/linux/rtnetlink.h
net/core/rtnetlink.c
net/ipv4/devinet.c
net/ipv6/addrconf.c