diff options
| author | Anirudh Venkataramanan <[email protected]> | 2021-08-04 19:12:42 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2021-08-09 16:59:23 +0000 |
| commit | c503e63200c679e362afca7aca9d3dc63a0f45ed (patch) | |
| tree | f9f9564201fa0b8e52d22e417c8afffb588183d3 /drivers/net/ethernet/intel/ice/ice.h | |
| parent | ice: Prevent probing virtual functions (diff) | |
| download | kernel-c503e63200c679e362afca7aca9d3dc63a0f45ed.tar.gz kernel-c503e63200c679e362afca7aca9d3dc63a0f45ed.zip | |
ice: Stop processing VF messages during teardown
When VFs are setup and torn down in quick succession, it is possible
that a VF is torn down by the PF while the VF's virtchnl requests are
still in the PF's mailbox ring. Processing the VF's virtchnl request
when the VF itself doesn't exist results in undefined behavior. Fix
this by adding a check to stop processing virtchnl requests when VF
teardown is in progress.
Fixes: ddf30f7ff840 ("ice: Add handler to configure SR-IOV")
Signed-off-by: Anirudh Venkataramanan <[email protected]>
Tested-by: Konrad Jankowski <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice.h')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice.h b/drivers/net/ethernet/intel/ice/ice.h index a450343fbb92..eadcb9958346 100644 --- a/drivers/net/ethernet/intel/ice/ice.h +++ b/drivers/net/ethernet/intel/ice/ice.h @@ -234,6 +234,7 @@ enum ice_pf_state { ICE_VFLR_EVENT_PENDING, ICE_FLTR_OVERFLOW_PROMISC, ICE_VF_DIS, + ICE_VF_DEINIT_IN_PROGRESS, ICE_CFG_BUSY, ICE_SERVICE_SCHED, ICE_SERVICE_DIS, |
