Re: [net-next 2/2] i40e: Check and set the PF driver state first in i40e_ndo_set_vf_mac

2019-06-05 Thread David Miller
From: Jeff Kirsher Date: Wed, 5 Jun 2019 12:45:16 -0700 > From: Lihong Yang > > The PF driver state flag __I40E_VIRTCHNL_OP_PENDING needs to be > checked and set at the beginning of i40e_ndo_set_vf_mac. Otherwise, > if there are error conditions before it, the flag will be cleared > unexpected

[net-next 2/2] i40e: Check and set the PF driver state first in i40e_ndo_set_vf_mac

2019-06-05 Thread Jeff Kirsher
From: Lihong Yang The PF driver state flag __I40E_VIRTCHNL_OP_PENDING needs to be checked and set at the beginning of i40e_ndo_set_vf_mac. Otherwise, if there are error conditions before it, the flag will be cleared unexpectedly by this function to cause potential race conditions. Hence move the