All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bimmy Pujari <bimmy.pujari@intel.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [next PATCH S47 4/9] i40e: Remove unused function i40e_vsi_lookup
Date: Tue, 27 Sep 2016 11:26:52 -0700	[thread overview]
Message-ID: <1475000817-27280-5-git-send-email-bimmy.pujari@intel.com> (raw)
In-Reply-To: <1475000817-27280-1-git-send-email-bimmy.pujari@intel.com>

From: Alexander Duyck <alexander.h.duyck@intel.com>

The function is not used so there is no need to carry it forward.  I have
plans to add a slightly different function that can be inlined to handle
the same kind of functionality.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Change-ID: Ie2dfcb189dc75e5fbc156bac23003e3b4210ae0f
---
Testing Hints:
        Verify driver builds without issues under various configurations.

 drivers/net/ethernet/intel/i40e/i40e.h        |  2 --
 drivers/net/ethernet/intel/i40e/i40e_client.c | 31 ---------------------------
 2 files changed, 33 deletions(-)

diff --git a/drivers/net/ethernet/intel/i40e/i40e.h b/drivers/net/ethernet/intel/i40e/i40e.h
index dfc52a9..29bc649 100644
--- a/drivers/net/ethernet/intel/i40e/i40e.h
+++ b/drivers/net/ethernet/intel/i40e/i40e.h
@@ -732,8 +732,6 @@ int i40e_sync_vsi_filters(struct i40e_vsi *vsi);
 struct i40e_vsi *i40e_vsi_setup(struct i40e_pf *pf, u8 type,
 				u16 uplink, u32 param1);
 int i40e_vsi_release(struct i40e_vsi *vsi);
-struct i40e_vsi *i40e_vsi_lookup(struct i40e_pf *pf, enum i40e_vsi_type type,
-				 struct i40e_vsi *start_vsi);
 #ifdef I40E_FCOE
 void i40e_vsi_setup_queue_map(struct i40e_vsi *vsi,
 			      struct i40e_vsi_context *ctxt,
diff --git a/drivers/net/ethernet/intel/i40e/i40e_client.c b/drivers/net/ethernet/intel/i40e/i40e_client.c
index 6ffac03..417ac16 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_client.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_client.c
@@ -406,37 +406,6 @@ int i40e_vf_client_capable(struct i40e_pf *pf, u32 vf_id,
 }
 
 /**
- * i40e_vsi_lookup - finds a matching VSI from the PF list starting at start_vsi
- * @pf: board private structure
- * @type: vsi type
- * @start_vsi: a VSI pointer from where to start the search
- *
- * Returns non NULL on success or NULL for failure
- **/
-struct i40e_vsi *i40e_vsi_lookup(struct i40e_pf *pf,
-				 enum i40e_vsi_type type,
-				 struct i40e_vsi *start_vsi)
-{
-	struct i40e_vsi *vsi;
-	int i = 0;
-
-	if (start_vsi) {
-		for (i = 0; i < pf->num_alloc_vsi; i++) {
-			vsi = pf->vsi[i];
-			if (vsi == start_vsi)
-				break;
-		}
-	}
-	for (; i < pf->num_alloc_vsi; i++) {
-		vsi = pf->vsi[i];
-		if (vsi && vsi->type == type)
-			return vsi;
-	}
-
-	return NULL;
-}
-
-/**
  * i40e_client_add_instance - add a client instance struct to the instance list
  * @pf: pointer to the board struct
  * @client: pointer to a client struct in the client list.
-- 
2.4.11


  parent reply	other threads:[~2016-09-27 18:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-27 18:26 [Intel-wired-lan] [next PATCH S47 0/9] i40e/i40evf updates Bimmy Pujari
2016-09-27 18:26 ` [Intel-wired-lan] [next PATCH S47 1/9] i40e: Fix client interaction Bimmy Pujari
2016-09-27 18:26 ` [Intel-wired-lan] [next PATCH S47 2/9] i40e: Rewrite Flow Director busy wait loop Bimmy Pujari
2016-09-27 18:26 ` [Intel-wired-lan] [next PATCH S47 3/9] i40e: Bit test mask correction Bimmy Pujari
2016-09-27 18:26 ` Bimmy Pujari [this message]
2016-09-27 18:26 ` [Intel-wired-lan] [next PATCH S47 5/9] i40e: Drop code for unsupported flow types Bimmy Pujari
2016-09-27 18:26 ` [Intel-wired-lan] [next PATCH S47 6/9] i40e: reopen client after reset Bimmy Pujari
2016-09-27 18:26 ` [Intel-wired-lan] [next PATCH S47 7/9] i40e: group base mode VF offload flags Bimmy Pujari
2016-09-27 18:26 ` [Intel-wired-lan] [next PATCH S47 8/9] i40e/i40evf: fix interrupt affinity bug Bimmy Pujari
2016-09-27 18:26 ` [Intel-wired-lan] [next PATCH S47 9/9] i40e/i40evf: Changed version from 1.6.16 to 1.6.19 Bimmy Pujari
  -- strict thread matches above, loose matches on Subject: below --
2016-09-14 23:24 [Intel-wired-lan] [next PATCH S47 0/9] i40e/i40evf updates Bimmy Pujari
2016-09-14 23:24 ` [Intel-wired-lan] [next PATCH S47 4/9] i40e: Remove unused function i40e_vsi_lookup Bimmy Pujari
2016-09-21 17:22   ` Bowers, AndrewX

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1475000817-27280-5-git-send-email-bimmy.pujari@intel.com \
    --to=bimmy.pujari@intel.com \
    --cc=intel-wired-lan@osuosl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.