diff options
| author | Sieng-Piaw Liew <[email protected]> | 2022-07-07 14:10:56 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-07-08 13:23:25 +0000 |
| commit | 67d7ebdeb2d5a058dd5079107505fffe7332b27a (patch) | |
| tree | 646f9a7150754644e0200d6dead7e7f169a99d26 /net/strparser/strparser.c | |
| parent | net: minor optimization in __alloc_skb() (diff) | |
| download | kernel-67d7ebdeb2d5a058dd5079107505fffe7332b27a.tar.gz kernel-67d7ebdeb2d5a058dd5079107505fffe7332b27a.zip | |
net: ag71xx: switch to napi_build_skb() to reuse skbuff_heads
napi_build_skb() reuses NAPI skbuff_head cache in order to save some
cycles on freeing/allocating skbuff_heads on every new Rx or completed
Tx.
Use napi_consume_skb() to feed the cache with skbuff_heads of completed
Tx, so it's never empty. The budget parameter is added to indicate NAPI
context, as a value of zero can be passed in the case of netpoll.
Signed-off-by: Sieng-Piaw Liew <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/strparser/strparser.c')
0 files changed, 0 insertions, 0 deletions
