diff options
| author | Jie Wang <[email protected]> | 2022-04-12 10:01:20 +0800 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-04-15 11:41:45 -0700 |
| commit | bde292c07b480e23137060dad83cca24d55c4cc4 (patch) | |
| tree | 5106c0fc4f46524cfc3d69f19c991ff4dad3de50 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 4dc84c06a343fcb95fd5a0acb537aefa4ebdd1b0 (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 <[email protected]>
Signed-off-by: Guangbin Huang <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions