]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: RX, Add a prefetch command for small L1_CACHE_BYTES
authorTariq Toukan <tariqt@mellanox.com>
Wed, 26 Aug 2020 12:54:18 +0000 (15:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Aug 2020 22:55:53 +0000 (15:55 -0700)
commit91e44995c45fbe14c1140f77601e98cb35410e00
treec36f4686f70d69dd88ed5ab35c3dab6eee472178
parent96239817ce92571f2a086eecb09386e72504b0e3
net/mlx4_en: RX, Add a prefetch command for small L1_CACHE_BYTES

A single cacheline might not contain the packet header for
small L1_CACHE_BYTES values.
Use net_prefetch() as it issues an additional prefetch
in this case.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c