]> git.baikalelectronics.ru Git - kernel.git/commit
netdevice: Add offload statistics ndo
authorNogah Frankel <nogahf@mellanox.com>
Fri, 16 Sep 2016 13:05:36 +0000 (15:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Sep 2016 02:33:41 +0000 (22:33 -0400)
commitbd9c9cc5701b690d0ee1080ed31c58fe076fb1c5
tree869f1aa551e8affeca3a5270c743f0b00ca282bc
parent26a5fa7644ca628a4ff91abaf5b8c6c584306d8d
netdevice: Add offload statistics ndo

Add a new ndo to return statistics for offloaded operation.
Since there can be many different offloaded operation with many
stats types, the ndo gets an attribute id by which it knows which
stats are wanted. The ndo also gets a void pointer to be cast according
to the attribute id.

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h