net/i40e: fix request queue in VF
authorTao Zhu <taox.zhu@intel.com>
Wed, 24 Jul 2019 08:32:54 +0000 (16:32 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 24 Jul 2019 15:16:24 +0000 (17:16 +0200)
commitdbda2092deb5ee5988449330c6e28e9d1fb97c19
tree37cde3de847a39d5b5ba2176276382aade789d2d
parent18af127cad1f6751a08924ae84fb9bac6c50433c
net/i40e: fix request queue in VF

When the VF configuration is larger than the number of queues reserved
by PF, VF sends the request queue command through admin queue. When PF
received this command, it may reset the VF and send a notification
before resetting. If this notification is read by the timed task alarm,
Task request queue will lost notification. This patch prevents two
tasks from running simultaneously.

Fixes: ee653bd80044 ("net/i40e: determine number of queues per VF at run time")
Cc: stable@dpdk.org
Signed-off-by: Tao Zhu <taox.zhu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_ethdev_vf.c