summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/rtnetlink.h
diff options
context:
space:
mode:
authorSowmini Varadhan2015-09-11 22:48:48 +0200
committerDavid S. Miller2015-09-16 00:25:02 +0200
commitd5566fd72ec1924958fcfd48b65c022c8f7eae64 (patch)
treefb7c5e29238657e89d33320091d8b8ae3d5f78e9 /include/uapi/linux/rtnetlink.h
parentcdc: Fix build warning. (diff)
downloadkernel-qcow2-linux-d5566fd72ec1924958fcfd48b65c022c8f7eae64.tar.gz
kernel-qcow2-linux-d5566fd72ec1924958fcfd48b65c022c8f7eae64.tar.xz
kernel-qcow2-linux-d5566fd72ec1924958fcfd48b65c022c8f7eae64.zip
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. Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/rtnetlink.h')
-rw-r--r--include/uapi/linux/rtnetlink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/rtnetlink.h b/include/uapi/linux/rtnetlink.h
index 06625b401422..4db0b3ccb497 100644
--- a/include/uapi/linux/rtnetlink.h
+++ b/include/uapi/linux/rtnetlink.h
@@ -667,6 +667,7 @@ struct tcamsg {
#define RTEXT_FILTER_VF (1 << 0)
#define RTEXT_FILTER_BRVLAN (1 << 1)
#define RTEXT_FILTER_BRVLAN_COMPRESSED (1 << 2)
+#define RTEXT_FILTER_SKIP_STATS (1 << 3)
/* End of information exported to user level */