diff options
author | Jakub Kicinski <[email protected]> | 2022-05-02 16:27:03 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-05-03 17:26:10 -0700 |
commit | 58caed3dacb4354a25a1aa8d2febc3e9648ba1f4 (patch) | |
tree | a1e6e1f26c2658da6ed6ce6b69a4d0676dfdc7b9 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 7d4e91e06486a9adb9126ce14ccb4f564ebeceae (diff) |
netdev: reshuffle netif_napi_add() APIs to allow dropping weight
Most drivers should not have to worry about selecting the right
weight for their NAPI instances and pass NAPI_POLL_WEIGHT.
It'd be best if we didn't require the argument at all and selected
the default internally.
This change prepares the ground for such reshuffling, allowing
for a smooth transition. The following API should remain after
the next release cycle:
netif_napi_add()
netif_napi_add_weight()
netif_napi_add_tx()
netif_napi_add_tx_weight()
Where the _weight() variants take an explicit weight argument.
I opted for a _weight() suffix rather than a __ prefix, because
we use __ in places to mean that caller needs to also issue a
synchronize_net() call.
Signed-off-by: Jakub Kicinski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions