diff options
author | Sieng-Piaw Liew <liew.s.piaw@gmail.com> | 2022-07-07 22:10:56 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-08 14:23:25 +0100 |
commit | 67d7ebdeb2d5a058dd5079107505fffe7332b27a (patch) | |
tree | 646f9a7150754644e0200d6dead7e7f169a99d26 /net/strparser/strparser.c | |
parent | c2dd4059dc31ee6f5b83c8d2064bb1f1f465bcec (diff) | |
download | linux-67d7ebdeb2d5a058dd5079107505fffe7332b27a.tar.gz linux-67d7ebdeb2d5a058dd5079107505fffe7332b27a.tar.bz2 linux-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 <liew.s.piaw@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/strparser/strparser.c')
0 files changed, 0 insertions, 0 deletions