OpenCloudOS-Kernel/net/ethtool
Jie Wang f50e587136 net: ethtool: move checks before rtnl_lock() in ethnl_set_rings
Currently these two checks in ethnl_set_rings are added after rtnl_lock()
which will do useless works if the request is invalid.

So this patch moves these checks before the rtnl_lock() to avoid these
costs.

Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: hongrongxuan <hongrongxuan@huawei.com>
2024-06-12 13:17:46 +08:00
..
Makefile ethtool: provide timestamping information with TSINFO_GET request 2024-06-12 13:17:27 +08:00
bitset.c ethtool: fix stack overflow in ethnl_parse_bitset() 2024-06-12 13:17:35 +08:00
bitset.h ethtool: add ethnl_parse_bitset() helper 2024-06-12 13:17:17 +08:00
channels.c ethtool: check if there is at least one channel for TX/RX in the core 2024-06-12 13:17:28 +08:00
coalesce.c ethtool: extend coalesce setting uAPI with CQE mode 2024-06-12 13:17:42 +08:00
common.c ethtool: add support to set/get tx copybreak buf size via ethtool 2024-06-12 13:17:44 +08:00
common.h ethtool: provide timestamping information with TSINFO_GET request 2024-06-12 13:17:27 +08:00
debug.c ethtool: fix reference leak in some *_SET handlers 2024-06-12 13:17:22 +08:00
eee.c ethtool: add EEE_NTF notification 2024-06-12 13:17:26 +08:00
features.c ethtool: add FEATURES_NTF notification 2024-06-12 13:17:18 +08:00
ioctl.c ethtool: extend ringparam setting/getting API with rx_buf_len 2024-06-12 13:17:44 +08:00
linkinfo.c ethtool: linkinfo: remove an unnecessary NULL check 2024-06-12 13:17:30 +08:00
linkmodes.c ethtool: Add 100base-FX link mode entries 2024-06-12 13:17:34 +08:00
linkstate.c ethtool: Add link extended state 2024-06-12 13:17:32 +08:00
netlink.c ethtool: add a stricter length check 2024-06-12 13:17:40 +08:00
netlink.h ethtool: do not perform operations on net devices being unregistered 2024-06-12 13:17:43 +08:00
pause.c ethtool: add standard pause stats 2024-06-12 13:17:33 +08:00
privflags.c ethtool: fix reference leak in ethnl_set_privflags() 2024-06-12 13:17:23 +08:00
rings.c net: ethtool: move checks before rtnl_lock() in ethnl_set_rings 2024-06-12 13:17:46 +08:00
strset.c ethtool: strset: fix message length calculation 2024-06-12 13:17:40 +08:00
tsinfo.c ethtool: provide timestamping information with TSINFO_GET request 2024-06-12 13:17:27 +08:00
wol.c ethtool: fix reference leak in some *_SET handlers 2024-06-12 13:17:22 +08:00