diff options
| author | Breno Leitao <[email protected]> | 2024-04-11 19:22:31 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-04-15 18:19:52 +0000 |
| commit | 721f076b62cb05108565adf17c27875ef5015307 (patch) | |
| tree | 98ab8f19bf48dba680172ca5922c9e20bcd5b804 /drivers/net/netdevsim/netdev.c | |
| parent | net: dql: Separate queue function responsibilities (diff) | |
| download | kernel-721f076b62cb05108565adf17c27875ef5015307.tar.gz kernel-721f076b62cb05108565adf17c27875ef5015307.zip | |
net: dql: Optimize stall information population
When Dynamic Queue Limit (DQL) is set, it always populate stall
information through dql_queue_stall(). However, this information is
only necessary if a stall threshold is set, stored in struct
dql->stall_thrs.
dql_queue_stall() is cheap, but not free, since it does have memory
barriers and so forth.
Do not call dql_queue_stall() if there is no stall threshold set, and
save some CPU cycles.
Signed-off-by: Breno Leitao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/netdevsim/netdev.c')
0 files changed, 0 insertions, 0 deletions
