]> 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)
commit124a149fe668f9db991bf196547067966f69dcf8
tree869f1aa551e8affeca3a5270c743f0b00ca282bc
parent5e9fbb80182c40bfbfbbd0b84ba4a1bdc6b41e90
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