]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
i40e: remove unused function
authorMitch Williams <mitch.a.williams@intel.com>
Tue, 29 Nov 2016 00:06:01 +0000 (16:06 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 3 Feb 2017 06:42:10 +0000 (22:42 -0800)
After refactoring the client open and close code, this is no longer
needed. Remove it.

Change-ID: If8e6e32baa354d857c2fd8b2f19404f1786011c4
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_client.c

index cdf812c6b2fd1c4d9f7e8989a95ac8ac50d5f21b..fdd9069b6cec19b858e879398ec44a10faec9358 100644 (file)
@@ -792,7 +792,6 @@ int i40e_lan_add_device(struct i40e_pf *pf);
 int i40e_lan_del_device(struct i40e_pf *pf);
 void i40e_client_subtask(struct i40e_pf *pf);
 void i40e_notify_client_of_l2_param_changes(struct i40e_vsi *vsi);
-void i40e_notify_client_of_netdev_open(struct i40e_vsi *vsi);
 void i40e_notify_client_of_netdev_close(struct i40e_vsi *vsi, bool reset);
 void i40e_notify_client_of_vf_enable(struct i40e_pf *pf, u32 num_vfs);
 void i40e_notify_client_of_vf_reset(struct i40e_pf *pf, u32 vf_id);
index 7fe72abc0b4a817afd99d57516b49b573f25bed5..7ca048f0b1595e1b595ffab4367b4d6d58add431 100644 (file)
@@ -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.