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)
commit2c9d85d4d82d9e0a62aad08bf50650804e68ed30
tree869f1aa551e8affeca3a5270c743f0b00ca282bc
parentc13ed534b8db543e4d8ead3885f4b06585a5771c
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