From 2a750e9a9fab2bb563fbf81a6aa1fa9ccd51518d Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Thu, 1 Nov 2018 17:01:29 +0100 Subject: [PATCH] rtnl_tc: add TCA_STATS_BASIC_HW * xlat/rtnl_tca_stats_attrs.in (TCA_STATS_BASIC_HW): New constant, introduced by Linux commit v4.20-rc1~14^2~274^2~1. * rtnl_tc.c (tca_stats_nla_decoders): Add TCA_STATS_BASIC_HW. * NEWS: Mention this. Co-Authored-by: Dmitry V. Levin --- NEWS | 2 +- rtnl_tc.c | 1 + xlat/rtnl_tca_stats_attrs.in | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 9c04b479..a228ce45 100644 --- a/NEWS +++ b/NEWS @@ -23,7 +23,7 @@ Noteworthy changes in release ?.?? (????-??-??) * Enhanced decoding of getsockopt SO_ERROR option. * Enhanced error diagnostics when the first exec fails. * Added %net as a short form of %network in syscall specifications. - * Updated lists of FAN_*, IFLA_*, NETLINK_*, and SOL_* constants. + * Updated lists of FAN_*, IFLA_*, NETLINK_*, SOL_*, and TCA_* constants. * Enhanced manual page. * Bug fixes diff --git a/rtnl_tc.c b/rtnl_tc.c index 047b515b..dd056e19 100644 --- a/rtnl_tc.c +++ b/rtnl_tc.c @@ -173,6 +173,7 @@ static const nla_decoder_t tca_stats_nla_decoders[] = { [TCA_STATS_APP] = NULL, /* unimplemented */ [TCA_STATS_RATE_EST64] = decode_gnet_stats_rate_est64, [TCA_STATS_PAD] = NULL, + [TCA_STATS_BASIC_HW] = decode_gnet_stats_basic, }; bool diff --git a/xlat/rtnl_tca_stats_attrs.in b/xlat/rtnl_tca_stats_attrs.in index 807e7fe6..82b8a337 100644 --- a/xlat/rtnl_tca_stats_attrs.in +++ b/xlat/rtnl_tca_stats_attrs.in @@ -5,3 +5,4 @@ TCA_STATS_QUEUE 3 TCA_STATS_APP 4 TCA_STATS_RATE_EST64 5 TCA_STATS_PAD 6 +TCA_STATS_BASIC_HW 7 -- 2.40.0