summaryrefslogtreecommitdiff
path: root/net/ethtool/netlink.c
diff options
context:
space:
mode:
authorJie Wang <wangjie125@huawei.com>2022-04-12 10:01:20 +0800
committerJakub Kicinski <kuba@kernel.org>2022-04-15 11:41:45 -0700
commitbde292c07b480e23137060dad83cca24d55c4cc4 (patch)
tree5106c0fc4f46524cfc3d69f19c991ff4dad3de50 /net/ethtool/netlink.c
parent4dc84c06a343fcb95fd5a0acb537aefa4ebdd1b0 (diff)
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>
Diffstat (limited to 'net/ethtool/netlink.c')
0 files changed, 0 insertions, 0 deletions