diff options
| author | Shay Agroskin <shayagr@amazon.com> | 2020-12-08 20:02:04 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2020-12-09 15:26:40 -0800 |
| commit | 89dd735e8c1e58b9b0d39535c7c32261773cb495 (patch) | |
| tree | 02a5c2c0d806ef0423cbaabb4ffb1bdf4bd66171 /net/lapb/lapb_subr.c | |
| parent | 1e5847395eebfc98e89558c9f5d0058b949ddc1d (diff) | |
net: ena: aggregate stats increase into a function
Introduce ena_increase_stat() function to increase statistics by a
certain number.
The function includes the
- lock aquire (on 32bit machines)
- stat increase
- lock release (on 32bit machines)
line sequence that is ubiquitous across the driver.
The function increases a single stat at a time and several stats which
are increased together weren't put into a function to avoid
calling the function several times for each stat which looks bad and
might decrease performance.
Signed-off-by: Shay Agroskin <shayagr@amazon.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions
