From: Greg Rose <redacted>
Date: Fri, 10 Feb 2012 07:05:18 -0800
+/*
+ * Applications that set NLM_F_EXT have allocated
+ * a 16K or larger buffer.
+ * (Or they should have before using this flag)
+ */
+#define NLM_F_EXT 0x800 /* Get extended interface info such as VFs */
This is not what I meant.
I meant to add a "netlink attribute" that gets passed in with GETLINK
requests. Which is a u32 set of flag bits, one bit for each extended
feature. So VF would get one bit.
Like "IFLA_EXT_MASK" or similar.
Then rtnl_getlink() would inspect the mask (using nla_get_32()), if
present, and make this control what extended parts of the per-link
dump are provided.