| .. | .. |
|---|
| 4332 | 4332 | /* duplicate request, so just return success */ |
|---|
| 4333 | 4333 | goto error_pvid; |
|---|
| 4334 | 4334 | |
|---|
| 4335 | | - i40e_vc_reset_vf(vf, true); |
|---|
| 4336 | | - /* During reset the VF got a new VSI, so refresh a pointer. */ |
|---|
| 4337 | | - vsi = pf->vsi[vf->lan_vsi_idx]; |
|---|
| 4338 | 4335 | /* Locked once because multiple functions below iterate list */ |
|---|
| 4339 | 4336 | spin_lock_bh(&vsi->mac_filter_hash_lock); |
|---|
| 4340 | 4337 | |
|---|
| .. | .. |
|---|
| 4420 | 4417 | */ |
|---|
| 4421 | 4418 | vf->port_vlan_id = le16_to_cpu(vsi->info.pvid); |
|---|
| 4422 | 4419 | |
|---|
| 4420 | + i40e_vc_reset_vf(vf, true); |
|---|
| 4421 | + /* During reset the VF got a new VSI, so refresh a pointer. */ |
|---|
| 4422 | + vsi = pf->vsi[vf->lan_vsi_idx]; |
|---|
| 4423 | + |
|---|
| 4423 | 4424 | ret = i40e_config_vf_promiscuous_mode(vf, vsi->id, allmulti, alluni); |
|---|
| 4424 | 4425 | if (ret) { |
|---|
| 4425 | 4426 | dev_err(&pf->pdev->dev, "Unable to config vf promiscuous mode\n"); |
|---|