net/i40e: fix VF reset flow
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 17 Jan 2017 08:45:11 +0000 (16:45 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:41:43 +0000 (19:41 +0100)
commit32ecaf723fa3724f6e78aad08653cb9c975b9ad9
tree70ef1b912de02ca47cc61379e8fffeba42785fe0
parent26b83c86a6385d4e90c52803a9446de5923afa58
net/i40e: fix VF reset flow

Add missing step during VF reset: PF should
set I40E_VFGEN_RSTAT to ACTIVE at end of the
VF reset operation or VF driver may not able
to detect that reset is already completed.
This patch also remove the unnecessary enum
for vfr state.

Fixes: 4861cde46116 ("i40e: new poll mode driver")

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
drivers/net/i40e/i40e_pf.c
drivers/net/i40e/i40e_pf.h