1 From 4d6acb9dbba04cef9c7626a4633ec651faa03b51 Mon Sep 17 00:00:00 2001
2 From: Mo Zhou <lumin@debian.org>
3 Date: Tue, 1 Nov 2022 10:58:24 -0400
4 Subject: [PATCH] Reorder structure for compatibility with linux-6.0
6 Fixes: https://github.com/facebookincubator/gloo/issues/345
7 See also: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1022319
9 gloo/common/linux.cc | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
12 diff --git a/gloo/common/linux.cc b/gloo/common/linux.cc
13 index c5e6c887..423de67b 100644
14 --- a/gloo/common/linux.cc
15 +++ b/gloo/common/linux.cc
16 @@ -193,8 +193,8 @@ static int getInterfaceSpeedGLinkSettings(int sock, struct ifreq* ifr) {
17 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)
18 constexpr auto link_mode_data_nwords = 3 * 127;
20 - struct ethtool_link_settings req;
21 __u32 link_mode_data[link_mode_data_nwords];
22 + struct ethtool_link_settings req;