diff options
author | Sieng-Piaw Liew <liew.s.piaw@gmail.com> | 2022-07-07 17:10:56 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-08 16:23:25 +0300 |
commit | 67d7ebdeb2d5a058dd5079107505fffe7332b27a (patch) | |
tree | 646f9a7150754644e0200d6dead7e7f169a99d26 /drivers/net/ieee802154/mcr20a.h | |
parent | c2dd4059dc31ee6f5b83c8d2064bb1f1f465bcec (diff) | |
download | linux-67d7ebdeb2d5a058dd5079107505fffe7332b27a.tar.xz |
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 'drivers/net/ieee802154/mcr20a.h')
0 files changed, 0 insertions, 0 deletions