Home
last modified time | relevance | path

Searched hist:bde292c07b480e23137060dad83cca24d55c4cc4 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/ethtool/
H A Drings.cdiff bde292c07b480e23137060dad83cca24d55c4cc4 Mon Apr 11 21:01:20 CDT 2022 Jie Wang <wangjie125@huawei.com> 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>