qca_spi: Avoid skb_copy_expand in TX path
authorStefan Wahren <wahrenst@gmx.net>
Sun, 28 Jan 2024 20:10:48 +0000 (21:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jan 2024 13:38:50 +0000 (13:38 +0000)
commit56f0b4f55b71f453c2ec6b6f70725c28dc437c32
tree72e4a8e52207cfa838c884e6aafea69598d11652
parent3c5e48780882d1c2de5efc9667c633ff0ebae2bc
qca_spi: Avoid skb_copy_expand in TX path

The skb spare room needs to be expanded for SPI header, footer
and possible padding within the TX path. So announce the necessary
space in order to avoid expensive skb_copy_expand calls.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/qca_spi.c