xlat: add IFLA_BR_VLAN_STATS_PER_PORT to rtnl_ifla_info_data_bridge_attrs
authorEugene Syromyatnikov <evgsyr@gmail.com>
Thu, 1 Nov 2018 15:31:14 +0000 (16:31 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 26 Dec 2018 01:59:38 +0000 (01:59 +0000)
* xlat/rtnl_ifla_info_data_bridge_attrs.in
(IFLA_BR_VLAN_STATS_PER_PORT): New constant, introduced by Linux commit
v4.20-rc1~14^2~90.
* rtnl_link.c (ifla_info_data_bridge_nla_decoders): Add
IFLA_BR_VLAN_STATS_PER_PORT.
* NEWS: Mention this.
* tests/nlattr_ifla_linkinfo.c (main): Check it.

Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
NEWS
rtnl_link.c
tests/nlattr_ifla_linkinfo.c
xlat/rtnl_ifla_info_data_bridge_attrs.in

diff --git a/NEWS b/NEWS
index 81eef8f91b80c05b484f8bc669abc0055d18e48b..648eb90510b178649d0e2ded03b988899fb35dc1 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_* and SOL_* constants.
+  * Updated lists of FAN_*, IFLA_*, and SOL_* constants.
   * Enhanced manual page.
 
 * Bug fixes
index fa6278ef8b3e65000922ebabe1c434fd8afe6dfb..f0e83fe7b2d19c947a7e52255df44d0920e95c53 100644 (file)
@@ -314,6 +314,7 @@ static const nla_decoder_t ifla_info_data_bridge_nla_decoders[] = {
        [IFLA_BR_MCAST_STATS_ENABLED]           = decode_nla_u8,
        [IFLA_BR_MCAST_IGMP_VERSION]            = decode_nla_u8,
        [IFLA_BR_MCAST_MLD_VERSION]             = decode_nla_u8,
+       [IFLA_BR_VLAN_STATS_PER_PORT]           = decode_nla_u8,
 };
 
 bool
index 8074cf2c1b270db377620c552b3852d345365fe5..901baa04bb253ce609ccb7a1f457c382072a6455 100644 (file)
@@ -350,7 +350,7 @@ main(void)
                { 20, "IFLA_BR_GROUP_ADDR" },
                { 21, "IFLA_BR_FDB_FLUSH" },
                { 40, "IFLA_BR_PAD" },
-               { 45, "0x2d /* IFLA_BR_??? */" },
+               { 46, "0x2e /* IFLA_BR_??? */" },
        };
 
        for (size_t k = 0; k < ARRAY_SIZE(und_br_attrs); k++) {
@@ -479,6 +479,7 @@ main(void)
                { 42, "IFLA_BR_MCAST_STATS_ENABLED" },
                { 43, "IFLA_BR_MCAST_IGMP_VERSION" },
                { 44, "IFLA_BR_MCAST_MLD_VERSION" },
+               { 45, "IFLA_BR_VLAN_STATS_PER_PORT" },
        };
 
        for (size_t k = 0; k < ARRAY_SIZE(u8_br_attrs); k++) {
index 524dc8b5a6a9f673be5376bdb0ba77ceb2c2e02b..8446100ad2a787383ed7ac80b1ccd0c1a9937434 100644 (file)
@@ -44,3 +44,4 @@ IFLA_BR_VLAN_STATS_ENABLED            41
 IFLA_BR_MCAST_STATS_ENABLED            42
 IFLA_BR_MCAST_IGMP_VERSION             43
 IFLA_BR_MCAST_MLD_VERSION              44
+IFLA_BR_VLAN_STATS_PER_PORT            45