]> git.karo-electronics.de Git - linux-beck.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)
commit69ae6ad2ff37911903a90256e216d7e7ae460002
tree4038b1ed59cb479202f666f619946d03eafbb2ec
parent2c9d85d4d82d9e0a62aad08bf50650804e68ed30
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