net/mlx5: reduce unnecessary memory access in Rx
authorRuifeng Wang <ruifeng.wang@arm.com>
Wed, 7 Jul 2021 09:03:07 +0000 (17:03 +0800)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 15 Jul 2021 13:17:22 +0000 (15:17 +0200)
commit1db288f941ad4a0ddabd15f4ed65eee9d56b38e9
tree2e0c7b06f82408094355544466dbd1006d2ccd20
parentff6fcd415f4b2be7572abffa5284978c176d3de4
net/mlx5: reduce unnecessary memory access in Rx

MR btree len is a constant during Rx replenish.
Moved retrieve of the value out of loop to reduce data loads.
Slight performance uplift was measured on both N1SDP and x86.

Suggested-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_rxtx_vec.c