Skip to content

Commit

Permalink
Reorder structure for compatibility with linux-6.0 (facebookincubator…
Browse files Browse the repository at this point in the history
…#346)

Summary:
Fixes: facebookincubator#345
See also: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1022319

Pull Request resolved: facebookincubator#346

Reviewed By: wz337, wanchaol

Differential Revision: D42553412

Pulled By: fduwjj

fbshipit-source-id: c0132a4b5cf577f4fd957227d091a6417c78ba0b
  • Loading branch information
cdluminate authored and facebook-github-bot committed Jan 17, 2023
1 parent 4a5e339 commit 1090929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gloo/common/linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ static int getInterfaceSpeedGLinkSettings(int sock, struct ifreq* ifr) {
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)
constexpr auto link_mode_data_nwords = 3 * 127;
struct {
struct ethtool_link_settings req;
__u32 link_mode_data[link_mode_data_nwords];
struct ethtool_link_settings req;
} ecmd;
int rv;

Expand Down

0 comments on commit 1090929

Please sign in to comment.