net/bnxt: remove useless prefetches
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 4 Nov 2020 17:03:10 +0000 (09:03 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Nov 2020 15:26:53 +0000 (16:26 +0100)
commit1ef8c6290c86caef6cc588c8737450383a59338a
tree8f9be908f194c462be8e6c79e4e484ef5009a75c
parent048a2aa3f30c90c7f9339a17bfd1e663e379625f
net/bnxt: remove useless prefetches

Prefetching only helps performance if it is done several 100
instructions before the actual use. The purpose of the prefetch
is to read ahead, it doesn't help if the next instruction
will block.

The code in the bnxt driver was doing these unnecessary prefetches.

Fixes: 2eb53b134aae ("net/bnxt: add initial Rx code")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Lance Richardson <lance.richardson@broadcom.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_rxr.c