[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120210.135151.754379087490167636.davem@davemloft.net>
Date: Fri, 10 Feb 2012 13:51:51 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: gregory.v.rose@...el.com
Cc: netdev@...r.kernel.org
Subject: Re: [RFC PATCH] rtnetlink: Fix problem with buffer allocation
From: Greg Rose <gregory.v.rose@...el.com>
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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists