fm10k/base: fix VF queues counting
authorWang Xiao W <xiao.w.wang@intel.com>
Thu, 10 Sep 2015 04:38:20 +0000 (12:38 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 7 Oct 2015 11:25:07 +0000 (13:25 +0200)
commit46e018c50155d30c766d95e9d5016f72f8fa7c92
treeb3f46c28519f270fc2ee78a52ca803ce4e304f07
parente78a5996518e84b0739f3e315b482fd2f87f75fb
fm10k/base: fix VF queues counting

During initialization, the VF counts its rings by walking the TQDLOC
registers. This only works if the TQMAP/RQMAP registers are set to map
the out-of-bound rings to the first one, so the VF driver can detect when
it has run out of queues cleanly. Update the PF to reset the empty
TQMAP/RQMAP registers post-VFLR to prevent innocent VF drivers from
triggering malicious events.

Signed-off-by: Wang Xiao W <xiao.w.wang@intel.com>
drivers/net/fm10k/base/fm10k_pf.c