[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <55F1A53E.1010908@cumulusnetworks.com>
Date: Thu, 10 Sep 2015 08:43:58 -0700
From: roopa <roopa@...ulusnetworks.com>
To: Sowmini Varadhan <sowmini.varadhan@...cle.com>
CC: David Miller <davem@...emloft.net>, netdev@...r.kernel.org,
raghavendra.kt@...ux.vnet.ibm.com
Subject: Re: IFLA_INET6_[ICMP6]STATS
On 9/9/15, 2:45 PM, Sowmini Varadhan wrote:
> On (09/09/15 14:43), David Miller wrote:
>> But what we could do is add a flag in the netlink request which
>> elides the stats. GLIBC et al. could then start setting the flag.
>>
> Yes, interestingly that's what I was experimenting with myself
> (though I was using a setsockopt in my version). I'll send out
> a patch rfc later this week for this.
>
If you decide to use a flag, there is IFLA_EXT_MASK which is used to
specify such filters from userspace today.
/* New extended info filters for IFLA_EXT_MASK */
#define RTEXT_FILTER_VF (1 << 0)
#define RTEXT_FILTER_BRVLAN (1 << 1)
#define RTEXT_FILTER_BRVLAN_COMPRESSED (1 << 2)
ideally long term, it would be nice for RTM_GETLINK request msg to
contain the attributes it is interested in (This would again be
optional with the default being get all attributes).
--
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