|
@@ -200,41 +200,6 @@ void i40e_notify_client_of_l2_param_changes(struct i40e_vsi *vsi)
|
|
|
mutex_unlock(&i40e_client_instance_mutex);
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * i40e_notify_client_of_netdev_open - call the client open callback
|
|
|
- * @vsi: the VSI with netdev opened
|
|
|
- *
|
|
|
- * If there is a client to this netdev, call the client with open
|
|
|
- **/
|
|
|
-void i40e_notify_client_of_netdev_open(struct i40e_vsi *vsi)
|
|
|
-{
|
|
|
- struct i40e_client_instance *cdev;
|
|
|
- int ret = 0;
|
|
|
-
|
|
|
- if (!vsi)
|
|
|
- return;
|
|
|
- mutex_lock(&i40e_client_instance_mutex);
|
|
|
- list_for_each_entry(cdev, &i40e_client_instances, list) {
|
|
|
- if (cdev->lan_info.netdev == vsi->netdev) {
|
|
|
- if (!cdev->client ||
|
|
|
- !cdev->client->ops || !cdev->client->ops->open) {
|
|
|
- dev_dbg(&vsi->back->pdev->dev,
|
|
|
- "Cannot locate client instance open routine\n");
|
|
|
- continue;
|
|
|
- }
|
|
|
- if (!(test_bit(__I40E_CLIENT_INSTANCE_OPENED,
|
|
|
- &cdev->state))) {
|
|
|
- ret = cdev->client->ops->open(&cdev->lan_info,
|
|
|
- cdev->client);
|
|
|
- if (!ret)
|
|
|
- set_bit(__I40E_CLIENT_INSTANCE_OPENED,
|
|
|
- &cdev->state);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- mutex_unlock(&i40e_client_instance_mutex);
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* i40e_client_release_qvlist
|
|
|
* @ldev: pointer to L2 context.
|