Skip to content

Commit ea66c05

Browse files
committed
linux: add additional netlink interface attribute tags
IFLA_PARENT_DEV_* were added in linux v5.13 linux: 00e77ed8e64d5f271c1f015c7153545980d48a76 IFLA_GRO_MAX_SIZE was added in linux v5.16 linux: eac1b93c14d645ef147b049ace0d5230df755548 IFLA_TSO_MAX_* were added in linux v5.18 linux: 89527be8d8d672773eeaec910118a6e84fb597e3 IFLA_ALLMULTI was added in linux v6.0 linux: 7e6e1b57162ed6a2d32d2f0929c27d79482ff706
1 parent 216a428 commit ea66c05

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

libc-test/build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3634,6 +3634,13 @@ fn test_linux(target: &str) {
36343634
// Added in Linux 5.13
36353635
"PTRACE_GET_RSEQ_CONFIGURATION" if sparc64 => true,
36363636

3637+
// FIXME: Requires more recent kernel headers
3638+
| "IFLA_GRO_MAX_SIZE" // linux v5.16+
3639+
| "IFLA_TSO_MAX_SIZE" // linux v5.18+
3640+
| "IFLA_TSO_MAX_SEGS" // linux v5.18+
3641+
| "IFLA_ALLMULTI" // linux v6.0+
3642+
=> true,
3643+
36373644
_ => false,
36383645
}
36393646
});

libc-test/semver/linux.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,7 @@ IFF_UP
836836
IFF_VNET_HDR
837837
IFLA_ADDRESS
838838
IFLA_AF_SPEC
839+
IFLA_ALLMULTI
839840
IFLA_ALT_IFNAME
840841
IFLA_BROADCAST
841842
IFLA_CARRIER
@@ -845,6 +846,7 @@ IFLA_CARRIER_UP_COUNT
845846
IFLA_COST
846847
IFLA_EVENT
847848
IFLA_EXT_MASK
849+
IFLA_GRO_MAX_SIZE
848850
IFLA_GROUP
849851
IFLA_GSO_MAX_SEGS
850852
IFLA_GSO_MAX_SIZE
@@ -875,6 +877,8 @@ IFLA_NUM_TX_QUEUES
875877
IFLA_NUM_VF
876878
IFLA_OPERSTATE
877879
IFLA_PAD
880+
IFLA_PARENT_DEV_BUS_NAME
881+
IFLA_PARENT_DEV_NAME
878882
IFLA_PERM_ADDRESS
879883
IFLA_PHYS_PORT_ID
880884
IFLA_PHYS_PORT_NAME
@@ -890,6 +894,8 @@ IFLA_QDISC
890894
IFLA_STATS
891895
IFLA_STATS64
892896
IFLA_TARGET_NETNSID
897+
IFLA_TSO_MAX_SEGS
898+
IFLA_TSO_MAX_SIZE
893899
IFLA_TXQLEN
894900
IFLA_UNSPEC
895901
IFLA_VFINFO_LIST

src/unix/linux_like/linux/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,6 +1699,12 @@ pub const IFLA_PROP_LIST: ::c_ushort = 52;
16991699
pub const IFLA_ALT_IFNAME: ::c_ushort = 53;
17001700
pub const IFLA_PERM_ADDRESS: ::c_ushort = 54;
17011701
pub const IFLA_PROTO_DOWN_REASON: ::c_ushort = 55;
1702+
pub const IFLA_PARENT_DEV_NAME: ::c_ushort = 56;
1703+
pub const IFLA_PARENT_DEV_BUS_NAME: ::c_ushort = 57;
1704+
pub const IFLA_GRO_MAX_SIZE: ::c_ushort = 58;
1705+
pub const IFLA_TSO_MAX_SIZE: ::c_ushort = 59;
1706+
pub const IFLA_TSO_MAX_SEGS: ::c_ushort = 60;
1707+
pub const IFLA_ALLMULTI: ::c_ushort = 61;
17021708

17031709
pub const IFLA_INFO_UNSPEC: ::c_ushort = 0;
17041710
pub const IFLA_INFO_KIND: ::c_ushort = 1;

0 commit comments

Comments
 (0)