bmips: switch to napi_build_skb() to reuse skbuff_heads
authorSieng Piaw Liew <liew.s.piaw@gmail.com>
Thu, 23 Jun 2022 04:49:28 +0000 (12:49 +0800)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Sat, 4 Mar 2023 18:28:16 +0000 (19:28 +0100)
commit330cbcc09c4d142279b958e6d0e4b764dacd686c
treed2415c27d450451687ba181b940a08fcb9a918eb
parenta332b8cc9cb1536684d1a33291bb9db6b22cff99
bmips: 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.

Signed-off-by: Sieng Piaw Liew <liew.s.piaw@gmail.com>
target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6368-enetsw.c