]> git.baikalelectronics.ru Git - kernel.git/commit
net: core: Add offload stats to if_stats_msg
authorNogah Frankel <nogahf@mellanox.com>
Fri, 16 Sep 2016 13:05:37 +0000 (15:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Sep 2016 02:33:42 +0000 (22:33 -0400)
commit17e5a993a89a88ad4efd5a91d8a7f6e3c034deea
tree4038b1ed59cb479202f666f619946d03eafbb2ec
parentbd9c9cc5701b690d0ee1080ed31c58fe076fb1c5
net: core: Add offload stats to if_stats_msg

Add a nested attribute of offload stats to if_stats_msg
named IFLA_STATS_LINK_OFFLOAD_XSTATS.
Under it, add SW stats, meaning stats only per packets that went via
slowpath to the cpu, named IFLA_OFFLOAD_XSTATS_CPU_HIT.

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_link.h
net/core/rtnetlink.c