diff options
| author | Sieng Piaw Liew <liew.s.piaw@gmail.com> | 2022-06-15 09:09:22 +0300 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2022-06-15 14:58:54 +0300 | 
| commit | c63c615e22ebb4cd29f4e7352c82ca1a7e76e00a (patch) | |
| tree | 0061779e3597bfce49eaab1862b203489862dd84 /drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.c | |
| parent | 49ae83fc4fd027a4b4cf56bd2c94c7814ec4baff (diff) | |
| download | linux-c63c615e22ebb4cd29f4e7352c82ca1a7e76e00a.tar.xz | |
bcm63xx_enet: 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>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.c')
0 files changed, 0 insertions, 0 deletions
