net/enic: initialize RQ fetch index before enabling RQ
authorHyong Youb Kim <hyonkim@cisco.com>
Fri, 29 Jun 2018 09:29:33 +0000 (02:29 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 2 Jul 2018 23:53:57 +0000 (01:53 +0200)
commit1c7c3ad1a001239c78403ab0155ef2b3f4a4fa37
tree30a78b3f2169c0f285bd55df1d6c95a2c635a381
parent2a7e3d54659cd12d337ad816dcf202eec1af1367
net/enic: initialize RQ fetch index before enabling RQ

The fetch index must be initialized only when RQ is
disabled. Otherwise, it may lead to stale entries in IG descriptor
cache on the VIC.

Fixes: a74629cfa3a1 ("net/enic: enable RQ first and then post Rx buffers")
Cc: stable@dpdk.org
Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_main.c