]> granicus.if.org Git - strace/commitdiff
rtnl_tc: add TCA_STATS_BASIC_HW
authorEugene Syromyatnikov <evgsyr@gmail.com>
Thu, 1 Nov 2018 16:01:29 +0000 (17:01 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 26 Dec 2018 01:59:38 +0000 (01:59 +0000)
* 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 <ldv@altlinux.org>
NEWS
rtnl_tc.c
xlat/rtnl_tca_stats_attrs.in

diff --git a/NEWS b/NEWS
index 9c04b479514db6ff5531bf336652e35660713add..a228ce4504b00ed9bc213b369c6f45ccca0943ae 100644 (file)
--- 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
index 047b515b1c1302e3895a8fc4519f80fd1a6acbed..dd056e1969cbe0dd778dea8c425c74aae6cf8010 100644 (file)
--- 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
index 807e7fe69c7afd9d2816c1b78ad3436ed2860939..82b8a3378d1489c1648ca2c64f59e0d95d5e7e32 100644 (file)
@@ -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