aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorNogah Frankel <nogahf@mellanox.com>2016-09-16 09:05:37 -0400
committerDavid S. Miller <davem@davemloft.net>2016-09-18 22:33:42 -0400
commit69ae6ad2ff37911903a90256e216d7e7ae460002 (patch)
tree4038b1ed59cb479202f666f619946d03eafbb2ec /include/uapi/linux
parent2c9d85d4d82d9e0a62aad08bf50650804e68ed30 (diff)
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>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/if_link.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h
index 9bf3aecfe05b..2351776a724f 100644
--- a/include/uapi/linux/if_link.h
+++ b/include/uapi/linux/if_link.h
@@ -826,6 +826,7 @@ enum {
826 IFLA_STATS_LINK_64, 826 IFLA_STATS_LINK_64,
827 IFLA_STATS_LINK_XSTATS, 827 IFLA_STATS_LINK_XSTATS,
828 IFLA_STATS_LINK_XSTATS_SLAVE, 828 IFLA_STATS_LINK_XSTATS_SLAVE,
829 IFLA_STATS_LINK_OFFLOAD_XSTATS,
829 __IFLA_STATS_MAX, 830 __IFLA_STATS_MAX,
830}; 831};
831 832
@@ -845,6 +846,14 @@ enum {
845}; 846};
846#define LINK_XSTATS_TYPE_MAX (__LINK_XSTATS_TYPE_MAX - 1) 847#define LINK_XSTATS_TYPE_MAX (__LINK_XSTATS_TYPE_MAX - 1)
847 848
849/* These are stats embedded into IFLA_STATS_LINK_OFFLOAD_XSTATS */
850enum {
851 IFLA_OFFLOAD_XSTATS_UNSPEC,
852 IFLA_OFFLOAD_XSTATS_CPU_HIT, /* struct rtnl_link_stats64 */
853 __IFLA_OFFLOAD_XSTATS_MAX
854};
855#define IFLA_OFFLOAD_XSTATS_MAX (__IFLA_OFFLOAD_XSTATS_MAX - 1)
856
848/* XDP section */ 857/* XDP section */
849 858
850enum { 859enum {