|
@@ -2634,8 +2634,8 @@ static int i40e_change_mtu(struct net_device *netdev, int new_mtu)
|
|
|
netdev->mtu = new_mtu;
|
|
|
if (netif_running(netdev))
|
|
|
i40e_vsi_reinit_locked(vsi);
|
|
|
- pf->flags |= (I40E_FLAG_SERVICE_CLIENT_REQUESTED |
|
|
|
- I40E_FLAG_CLIENT_L2_CHANGE);
|
|
|
+ set_bit(__I40E_CLIENT_SERVICE_REQUESTED, pf->state);
|
|
|
+ set_bit(__I40E_CLIENT_L2_CHANGE, pf->state);
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -4722,9 +4722,9 @@ static void i40e_vsi_close(struct i40e_vsi *vsi)
|
|
|
i40e_vsi_free_tx_resources(vsi);
|
|
|
i40e_vsi_free_rx_resources(vsi);
|
|
|
vsi->current_netdev_flags = 0;
|
|
|
- pf->flags |= I40E_FLAG_SERVICE_CLIENT_REQUESTED;
|
|
|
+ set_bit(__I40E_CLIENT_SERVICE_REQUESTED, pf->state);
|
|
|
if (test_bit(__I40E_RESET_RECOVERY_PENDING, pf->state))
|
|
|
- pf->flags |= I40E_FLAG_CLIENT_RESET;
|
|
|
+ set_bit(__I40E_CLIENT_RESET, pf->state);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -6495,7 +6495,7 @@ static int i40e_up_complete(struct i40e_vsi *vsi)
|
|
|
/* On the next run of the service_task, notify any clients of the new
|
|
|
* opened netdev
|
|
|
*/
|
|
|
- pf->flags |= I40E_FLAG_SERVICE_CLIENT_REQUESTED;
|
|
|
+ set_bit(__I40E_CLIENT_SERVICE_REQUESTED, pf->state);
|
|
|
i40e_service_event_schedule(pf);
|
|
|
|
|
|
return 0;
|
|
@@ -8037,8 +8037,8 @@ static int i40e_handle_lldp_event(struct i40e_pf *pf,
|
|
|
i40e_service_event_schedule(pf);
|
|
|
} else {
|
|
|
i40e_pf_unquiesce_all_vsi(pf);
|
|
|
- pf->flags |= (I40E_FLAG_SERVICE_CLIENT_REQUESTED |
|
|
|
- I40E_FLAG_CLIENT_L2_CHANGE);
|
|
|
+ set_bit(__I40E_CLIENT_SERVICE_REQUESTED, pf->state);
|
|
|
+ set_bit(__I40E_CLIENT_L2_CHANGE, pf->state);
|
|
|
}
|
|
|
|
|
|
exit:
|
|
@@ -9785,17 +9785,15 @@ static void i40e_service_task(struct work_struct *work)
|
|
|
i40e_vc_process_vflr_event(pf);
|
|
|
i40e_watchdog_subtask(pf);
|
|
|
i40e_fdir_reinit_subtask(pf);
|
|
|
- if (pf->flags & I40E_FLAG_CLIENT_RESET) {
|
|
|
+ if (test_and_clear_bit(__I40E_CLIENT_RESET, pf->state)) {
|
|
|
/* Client subtask will reopen next time through. */
|
|
|
i40e_notify_client_of_netdev_close(pf->vsi[pf->lan_vsi], true);
|
|
|
- pf->flags &= ~I40E_FLAG_CLIENT_RESET;
|
|
|
} else {
|
|
|
i40e_client_subtask(pf);
|
|
|
- if (pf->flags & I40E_FLAG_CLIENT_L2_CHANGE) {
|
|
|
+ if (test_and_clear_bit(__I40E_CLIENT_L2_CHANGE,
|
|
|
+ pf->state))
|
|
|
i40e_notify_client_of_l2_param_changes(
|
|
|
pf->vsi[pf->lan_vsi]);
|
|
|
- pf->flags &= ~I40E_FLAG_CLIENT_L2_CHANGE;
|
|
|
- }
|
|
|
}
|
|
|
i40e_sync_filters_subtask(pf);
|
|
|
i40e_sync_udp_filters_subtask(pf);
|