Messages in this thread |  | | From | Breno Leitao <> | | Subject | [PATCH net-next 0/3] net: dqs: optimize if stall threshold is not set | | Date | Thu, 4 Apr 2024 07:59:29 -0700 |
| |
Here are three patches aimed at enhancing the Dynamic Queue Limit (DQL) subsystem within the networking stack.
The first two commits involve code refactoring, while the final patch introduces the actual change.
Typically, when DQL is enabled, stall information is always populated through dql_queue_stall(). However, this information is only necessary if a stall threshold is set, which is stored in struct dql->stall_thrs.
Although dql_queue_stall() is relatively inexpensive, it is not entirely free due to memory barriers and similar overheads.
To optimize performance, refrain from calling dql_queue_stall() when no stall threshold is set, thus avoiding the processing of unnecessary information.
Breno Leitao (3): net: dql: Avoid calling BUG() when WARN() is enough net: dql: Separate queue function responsibilities net: dql: Optimize stall information population
include/linux/dynamic_queue_limits.h | 45 +++++++++++++++++----------- 1 file changed, 27 insertions(+), 18 deletions(-)
-- 2.43.0
|  |