On 2/25/16, 8:26 AM, David Miller wrote:
> From: roopa
> Date: Wed, 24 Feb 2016 21:25:50 -0800
>
>> I did go back and forth on the attribute vs mask.
>> cosmetic but, i guess i did not feel good about having to redefine every
>> attribute again
>> for the bitmap filter ...and i anticipate the lis
From: roopa
Date: Wed, 24 Feb 2016 21:25:50 -0800
> I did go back and forth on the attribute vs mask.
> cosmetic but, i guess i did not feel good about having to redefine every
> attribute again
> for the bitmap filter ...and i anticipate the list of stat attributes to grow
> overtime (maybe th
On 2/24/16, 1:40 PM, David Miller wrote:
> From: Roopa Prabhu
> Date: Mon, 22 Feb 2016 22:01:33 -0800
>
>> From: Roopa Prabhu
>>
>> This patch adds a new RTM_GETSTATS message to query link stats via netlink
>> from the kernel. RTM_NEWLINK also dumps stats today, but RTM_NEWLINK returns
>> a
>> l
On 2/23/16, 1:26 AM, Rosen, Rami wrote:
> Hi,
>
> + if (!dev)
> + return -ENODEV;
> +
> + nskb = nlmsg_new(if_nlmsg_stats_size(dev), GFP_KERNEL);
> + if (!nskb)
> + return -ENOBUFS;
> +
> + err = rtnl_fill_statsinfo(nskb, dev, RTM_NEWSTATS,
> +
From: Roopa Prabhu
Date: Mon, 22 Feb 2016 22:01:33 -0800
> From: Roopa Prabhu
>
> This patch adds a new RTM_GETSTATS message to query link stats via netlink
> from the kernel. RTM_NEWLINK also dumps stats today, but RTM_NEWLINK returns a
> lot more than just stats and is expensive in some cases
Hi,
+ if (!dev)
+ return -ENODEV;
+
+ nskb = nlmsg_new(if_nlmsg_stats_size(dev), GFP_KERNEL);
+ if (!nskb)
+ return -ENOBUFS;
+
+ err = rtnl_fill_statsinfo(nskb, dev, RTM_NEWSTATS,
+ NETLINK_CB(skb).portid, nlh->nl