diff options
author | 2019-06-09 19:40:10 -0700 | |
---|---|---|
committer | 2019-06-09 19:40:10 -0700 | |
commit | e8a492cd539457b8f616f6db9b62b50cd5b9a980 (patch) | |
tree | ddf59935f7a1bc272d05ec206fa326329722fa1e /include/linux/tcp.h | |
parent | Merge branch 'SFP-polling-fixes' (diff) | |
parent | net: hwbm: Make the hwbm_pool lock a mutex (diff) | |
download | wireguard-linux-e8a492cd539457b8f616f6db9b62b50cd5b9a980.tar.xz wireguard-linux-e8a492cd539457b8f616f6db9b62b50cd5b9a980.zip |
Merge branch 'Avoid-local_irq_save-and-use-napi_alloc_frag-where-possible'
Sebastian Andrzej says:
====================
Avoid local_irq_save() and use napi_alloc_frag() where possible
The first two patches remove local_irq_save() around
`netdev_alloc_cache' which does not work on -RT. Besides helping -RT it
whould benefit the users of the function since they can avoid disabling
interrupts and save a few cycles.
The remaining patches are from a time when I tried to remove
`netdev_alloc_cache' but then noticed that we still have non-NAPI
drivers using netdev_alloc_skb() and I dropped that idea. Using
napi_alloc_frag() over netdev_alloc_frag() would skip the not required
local_bh_disable() around the allocation.
v1…v2:
- 1/7 + 2/7 use now "(in_irq() || irqs_disabled())" instead just
"irqs_disabled()" to align with __dev_kfree_skb_any(). Pointed out
by Eric Dumazet.
- 6/7 has a typo less. Pointed out by Sergei Shtylyov.
- 3/7 + 4/7 added acks from Ioana Radulescu.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/tcp.h')
0 files changed, 0 insertions, 0 deletions