Browse Source

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 <ldv@altlinux.org>
Eugene Syromyatnikov 1 year ago
parent
commit
2a750e9a9f
3 changed files with 3 additions and 1 deletions
  1. 1
    1
      NEWS
  2. 1
    0
      rtnl_tc.c
  3. 1
    0
      xlat/rtnl_tca_stats_attrs.in

+ 1
- 1
NEWS View File

@@ -23,7 +23,7 @@ Noteworthy changes in release ?.?? (????-??-??)
23 23
   * Enhanced decoding of getsockopt SO_ERROR option.
24 24
   * Enhanced error diagnostics when the first exec fails.
25 25
   * Added %net as a short form of %network in syscall specifications.
26
-  * Updated lists of FAN_*, IFLA_*, NETLINK_*, and SOL_* constants.
26
+  * Updated lists of FAN_*, IFLA_*, NETLINK_*, SOL_*, and TCA_* constants.
27 27
   * Enhanced manual page.
28 28
 
29 29
 * Bug fixes

+ 1
- 0
rtnl_tc.c View File

@@ -173,6 +173,7 @@ static const nla_decoder_t tca_stats_nla_decoders[] = {
173 173
 	[TCA_STATS_APP]		= NULL, /* unimplemented */
174 174
 	[TCA_STATS_RATE_EST64]	= decode_gnet_stats_rate_est64,
175 175
 	[TCA_STATS_PAD]		= NULL,
176
+	[TCA_STATS_BASIC_HW]	= decode_gnet_stats_basic,
176 177
 };
177 178
 
178 179
 bool

+ 1
- 0
xlat/rtnl_tca_stats_attrs.in View File

@@ -5,3 +5,4 @@ TCA_STATS_QUEUE		3
5 5
 TCA_STATS_APP		4
6 6
 TCA_STATS_RATE_EST64	5
7 7
 TCA_STATS_PAD		6
8
+TCA_STATS_BASIC_HW	7

Loading…
Cancel
Save