aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorMitch Williams <mitch.a.williams@intel.com>2015-01-09 06:18:17 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-02-08 23:50:19 -0500
commit8b011ebb5c371f8767e6e813a1aca3b7fc795f94 (patch)
treeaf2887002410ef12806cab4c37cc9c03a4675d6e /drivers/net
parentf4a718810cf73fa55c85d253634d4a1f9464f6e7 (diff)
i40evf: ignore bogus messages from FW
Occasionally on shutdown, the FW will hand us a bunch of messages filled with zeros, which can cause us to spin trying to handle them. Just ignore these and get on with shutting down. Change-ID: I347e9648f7153ad5a7b7e0847b87f7aad5f3e0da Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Tested-by: Jim Young <james.m.young@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/intel/i40evf/i40evf_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
index cd71c47732b2..38126f5d6fd9 100644
--- a/drivers/net/ethernet/intel/i40evf/i40evf_main.c
+++ b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
@@ -1631,7 +1631,7 @@ static void i40evf_adminq_task(struct work_struct *work)
1631 v_msg = (struct i40e_virtchnl_msg *)&event.desc; 1631 v_msg = (struct i40e_virtchnl_msg *)&event.desc;
1632 do { 1632 do {
1633 ret = i40evf_clean_arq_element(hw, &event, &pending); 1633 ret = i40evf_clean_arq_element(hw, &event, &pending);
1634 if (ret) 1634 if (ret || !v_msg->v_opcode)
1635 break; /* No event to process or error cleaning ARQ */ 1635 break; /* No event to process or error cleaning ARQ */
1636 1636
1637 i40evf_virtchnl_completion(adapter, v_msg->v_opcode, 1637 i40evf_virtchnl_completion(adapter, v_msg->v_opcode,