net/mlx5e: RX, Prefetch the xdp_frame data area
authorTariq Toukan <tariqt@mellanox.com>
Wed, 16 May 2018 07:46:57 +0000 (10:46 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 26 Jul 2018 22:23:57 +0000 (15:23 -0700)
commitd3398a4f1887eee46c22b37f6245faa6c51b130b
tree288bf28a2ace1c85791d1a2fe380be974f315190
parent58b99ee3e3ebecfaccc5641a4014d92a818494a5
net/mlx5e: RX, Prefetch the xdp_frame data area

A loaded XDP program might write to the xdp_frame data area,
prefetchw() it to avoid a potential cache miss.

Performance tests:
ConnectX-5, XDP_TX packet rate, single ring.
CPU: Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz

Before: 13,172,976 pps
After:  13,456,248 pps
2% gain.

Fixes: 22f453988194 ("net/mlx5e: Support XDP over Striding RQ")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c