]> git.baikalelectronics.ru Git - kernel.git/commit
net: rtnetlink: allow rtnl_fill_statsinfo to save private state counter
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Sat, 30 Apr 2016 08:25:26 +0000 (10:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 May 2016 02:27:06 +0000 (22:27 -0400)
commit57f078d9ae1b7f67b07406623ed8ced3a0cb1131
tree8ed23ba23e56af56925834c609d6de1ad91d0829
parent6491c26f2754b96255c6537e55a269dc62b010f6
net: rtnetlink: allow rtnl_fill_statsinfo to save private state counter

The new prividx argument allows the current dumping device to save a
private state counter which would enable it to continue dumping from
where it left off. And the idxattr is used to save the current idx user
so multiple prividx using attributes can be requested at the same time
as suggested by Roopa Prabhu.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c