]> git.ipfire.org Git - thirdparty/systemd.git/commit
ethtool-util: drop use of union ethtool_link_usettings 38879/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 2 Sep 2025 03:13:03 +0000 (12:13 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 26 Sep 2025 10:45:58 +0000 (19:45 +0900)
commitf6e9e1e304d6aaa3bddaeea56e89948b61bc77c6
treea43d7b99f97109bc6851efaed9710e971c7ce5bf
parentf8606bc54e61672f8f6da4a5141544e999ca2ca3
ethtool-util: drop use of union ethtool_link_usettings

Previously, we shift arrays on read and then shift back on write.
It is inefficient and not necessary.
Let's directly use the buffer that kernel provides as is.
src/shared/ethtool-util.c
src/shared/ethtool-util.h