OSDN Git Service

i40evf: Fix link up issue when queues are disabled
authorAvinash Dayanand <avinash.dayanand@intel.com>
Tue, 23 Jan 2018 16:50:55 +0000 (08:50 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 14 Feb 2018 17:43:21 +0000 (09:43 -0800)
commit836ce5ed729df825ae472778978a09e5d290f543
tree01dbc81e99ed3b6010b1d3de7c32e6ae31aee359
parent1d631583ae5e40681dc9a41d7cfa845222c3c7ff
i40evf: Fix link up issue when queues are disabled

One of the previous patch fixes the link up issue by ignoring it if
i40evf is not in __I40EVF_RUNNING state. However this doesn't fix the
race condition when queues are disabled esp for ADq on VF. Hence check
if all queues are enabled before starting all queues.

Signed-off-by: Avinash Dayanand <avinash.dayanand@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf.h
drivers/net/ethernet/intel/i40evf/i40evf_main.c
drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c