bmips: convert to build_skb()
authorSieng Piaw Liew <liew.s.piaw@gmail.com>
Thu, 23 Jun 2022 03:16:47 +0000 (11:16 +0800)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Sat, 4 Mar 2023 18:28:16 +0000 (19:28 +0100)
commit71ef4ec47c18ad98122c6259843dc3d9b009be08
tree48d1a90d0b615c401cb9579c7b3ff080ed7122d4
parent7178adadcca8216a651e10e1fefbd7ebec930c1b
bmips: convert to build_skb()

We can increase the efficiency of rx path by using buffers to receive
packets then build SKBs around them just before passing into the network
stack. In contrast, preallocating SKBs too early reduces CPU cache
efficiency.
Performance is slightly increased but the changes allow more
potential optimizations.

Signed-off-by: Sieng Piaw Liew <liew.s.piaw@gmail.com>
[improve code format]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6368-enetsw.c