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>
This commit is contained in:
Eugene Syromyatnikov 2018-11-01 17:01:29 +01:00 committed by Dmitry V. Levin
parent 6b662a84b4
commit 2a750e9a9f
3 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -23,7 +23,7 @@ Noteworthy changes in release ?.?? (????-??-??)
* Enhanced decoding of getsockopt SO_ERROR option. * Enhanced decoding of getsockopt SO_ERROR option.
* Enhanced error diagnostics when the first exec fails. * Enhanced error diagnostics when the first exec fails.
* Added %net as a short form of %network in syscall specifications. * 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. * Enhanced manual page.
* Bug fixes * Bug fixes

View File

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

View File

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