i40e: Issue a PF reset if Tx queue disable timeout
As part of DCB reconfiguration flow if the Tx queue disable times out then issue a PF reset to do some level of recovery. Change-ID: I7550021c55bff355351c0365e61e1f05fcaff46d Signed-off-by: Neerav Parikh <neerav.parikh@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
		
					parent
					
						
							
								cd238a3ecf
							
						
					
				
			
			
				commit
				
					
						11e4770842
					
				
			
		
					 1 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
					@ -5266,8 +5266,14 @@ static int i40e_handle_lldp_event(struct i40e_pf *pf,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Wait for the PF's Tx queues to be disabled */
 | 
						/* Wait for the PF's Tx queues to be disabled */
 | 
				
			||||||
	ret = i40e_pf_wait_txq_disabled(pf);
 | 
						ret = i40e_pf_wait_txq_disabled(pf);
 | 
				
			||||||
	if (!ret)
 | 
						if (ret) {
 | 
				
			||||||
 | 
							/* Schedule PF reset to recover */
 | 
				
			||||||
 | 
							set_bit(__I40E_PF_RESET_REQUESTED, &pf->state);
 | 
				
			||||||
 | 
							i40e_service_event_schedule(pf);
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
		i40e_pf_unquiesce_all_vsi(pf);
 | 
							i40e_pf_unquiesce_all_vsi(pf);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exit:
 | 
					exit:
 | 
				
			||||||
	return ret;
 | 
						return ret;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue