Yu Watanabe
d8af104fb0
ethtool-util: fix setting advertising link modes
...
Fixes a regression caused by d307410327 .
The link_mode_masks flex array in struct ethtool_link_settings contains
three packed arrays, and the length of each array is given by
link_mode_masks_nwords field:
```
__u32 link_mode_masks[];
/* layout of link_mode_masks fields:
* __u32 map_supported[link_mode_masks_nwords];
* __u32 map_advertising[link_mode_masks_nwords];
* __u32 map_lp_advertising[link_mode_masks_nwords];
*/
```
Hence, we cannot use the received data as is through the union, but need
to shift the array to make each map accessible through the union.
2025-09-04 12:57:10 +02:00
..
2025-08-28 14:09:50 +02:00
2025-08-20 02:32:02 +09:00
2025-07-10 14:02:00 +09:00
2025-07-22 03:05:54 +09:00
2025-08-25 23:45:12 +09:00
2025-08-26 15:45:44 +02:00
2025-06-17 02:10:37 +02:00
2025-09-04 08:57:59 +02:00
2025-07-17 15:09:58 +01:00
2025-07-12 21:19:01 +09:00
2025-07-11 13:05:46 +09:00
2025-07-22 03:05:54 +09:00
2025-08-18 13:03:18 +01:00
2025-07-26 05:00:02 +09:00
2025-07-22 03:05:33 +09:00
2025-07-22 03:05:54 +09:00
2025-07-16 05:47:38 +09:00
2025-06-17 16:14:47 +09:00
2025-08-19 11:50:27 +02:00
2025-07-25 12:33:13 +02:00
2025-07-25 14:04:17 +02:00
2025-08-29 14:49:12 +09:00
2025-07-22 03:05:33 +09:00
2025-08-28 14:09:50 +02:00
2025-08-20 13:19:51 +01:00
2025-08-28 14:09:50 +02:00
2025-07-31 12:32:10 +01:00
2025-07-25 14:04:17 +02:00
2025-06-10 08:45:31 -04:00
2025-07-11 13:05:46 +09:00
2025-08-20 02:15:36 +09:00
2025-07-31 05:41:53 +09:00
2025-06-30 09:19:15 +02:00
2025-07-27 00:58:02 +01:00
2025-08-06 12:54:26 +09:00
2025-08-13 23:43:51 +09:00
2025-08-20 02:32:02 +09:00
2025-08-20 02:32:02 +09:00
2025-08-08 19:39:31 +09:00
2025-06-17 13:16:43 +02:00
2025-08-25 19:08:01 +01:00
2025-08-26 15:30:39 +02:00
2025-08-17 00:14:42 +09:00
2025-08-17 00:14:42 +09:00
2025-08-17 00:14:42 +09:00
2025-08-17 00:14:42 +09:00
2025-08-06 14:09:33 +01:00
2025-07-03 17:43:01 +02:00
2025-09-03 11:14:04 +02:00
2025-07-22 03:05:33 +09:00
2025-07-16 05:47:38 +09:00
2025-07-01 12:24:32 +09:00
2025-09-04 06:52:17 +09:00
2025-08-28 14:09:14 +02:00
2025-07-14 13:07:29 +01:00
2025-07-30 01:15:29 +09:00
2025-06-10 08:44:51 -04:00
2025-09-04 12:57:10 +02:00
2025-07-11 13:05:46 +09:00
2025-07-10 16:19:46 +02:00
2025-07-10 14:02:00 +09:00
2025-06-17 02:10:37 +02:00
2025-06-30 09:19:15 +02:00
2025-07-10 14:02:00 +09:00
2025-07-22 03:05:54 +09:00
2025-07-16 21:03:10 +09:00
2025-07-31 05:41:53 +09:00
2025-08-20 02:32:02 +09:00
2025-07-11 13:05:46 +09:00
2025-09-04 14:36:46 +09:00
2025-06-24 23:23:40 +09:00
2025-07-22 03:05:33 +09:00
2025-08-26 04:07:24 +09:00
2025-07-24 17:10:17 +01:00
2025-08-26 06:00:03 +09:00
2025-08-19 17:49:07 +01:00
2025-07-13 05:49:00 +09:00
2025-08-28 14:09:50 +02:00
2025-06-30 09:19:15 +02:00
2025-07-12 21:19:01 +09:00
2025-08-18 15:37:43 +09:00
2025-06-30 09:19:15 +02:00