net/ice/base: enable HW to prefetch Rx descriptors
authorLeyi Rong <leyi.rong@intel.com>
Wed, 19 Jun 2019 15:18:06 +0000 (23:18 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Jun 2019 18:31:48 +0000 (20:31 +0200)
commit1ff81a72d4d98a085848525930941079a39c38b7
treee1ba59063c4c51a5a123cce2bb022ba7efde4cf0
parentd9d698f82aadc12fd6f8833808bbdc5d5b894ce0
net/ice/base: enable HW to prefetch Rx descriptors

Currently we are always setting prefena to 0. This is causing the
hardware to only fetch descriptors when there are none free in the cache
for a received packet instead of prefetching when it has used the last
descriptor regardless of incoming packets.

Fix this by allowing the hardware to prefetch Rx descriptors.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Leyi Rong <leyi.rong@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/base/ice_common.c
drivers/net/ice/base/ice_lan_tx_rx.h