netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Amit Kumar Salecha <amit.salecha@qlogic.com>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, ameen.rahman@qlogic.com,
	Rajesh Borundia <rajesh.borundia@qlogic.com>
Subject: [PATCH NEXT 3/8] qlcnic: fix for setting function modes
Date: Wed, 11 Aug 2010 05:05:24 -0700	[thread overview]
Message-ID: <1281528329-8812-4-git-send-email-amit.salecha@qlogic.com> (raw)
In-Reply-To: <1281528329-8812-1-git-send-email-amit.salecha@qlogic.com>

From: Rajesh Borundia <rajesh.borundia@qlogic.com>

function modes was not working with CNA device, in CNA mode
other function(FCOE) can be enabled before nic.

Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
---
 drivers/net/qlcnic/qlcnic_main.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/net/qlcnic/qlcnic_main.c b/drivers/net/qlcnic/qlcnic_main.c
index bac2371..49c8110 100644
--- a/drivers/net/qlcnic/qlcnic_main.c
+++ b/drivers/net/qlcnic/qlcnic_main.c
@@ -533,8 +533,6 @@ qlcnic_set_function_modes(struct qlcnic_adapter *adapter)
 	ret = qlcnic_api_lock(adapter);
 	if (ret)
 		goto err_lock;
-	if (QLC_DEV_CLR_REF_CNT(ref_count, adapter->ahw.pci_func))
-		goto err_npar;
 
 	if (qlcnic_config_npars) {
 		for (i = 0; i < QLCNIC_MAX_PCI_FUNC; i++) {
@@ -552,7 +550,6 @@ qlcnic_set_function_modes(struct qlcnic_adapter *adapter)
 			adapter->ahw.pci_func));
 	}
 	writel(data, priv_op);
-err_npar:
 	qlcnic_api_unlock(adapter);
 err_lock:
 	return ret;
-- 
1.6.0.2


  parent reply	other threads:[~2010-08-11 12:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-11 12:05 [PATCH NEXT 0/8]qlcnic: enhancement and fixes Amit Kumar Salecha
2010-08-11 12:05 ` [PATCH NEXT 1/8] qlcnic: fix aer for virtual func Amit Kumar Salecha
2010-08-11 12:05 ` [PATCH NEXT 2/8] qlcnic: device state management fixes " Amit Kumar Salecha
2010-08-11 12:05 ` Amit Kumar Salecha [this message]
2010-08-11 12:05 ` [PATCH NEXT 4/8] qlcnic: add eswitch statistics support Amit Kumar Salecha
2010-08-11 12:05 ` [PATCH NEXT 5/8] qlcnic: fix link status message Amit Kumar Salecha
2010-08-11 12:05 ` [PATCH NEXT 6/8] qlcnic: fix link diag test Amit Kumar Salecha
2010-08-11 12:05 ` [PATCH NEXT 7/8] qlcnic: turn off lro when rxcsum is disabled Amit Kumar Salecha
2010-08-11 12:05 ` [PATCH NEXT 8/8] qlcnic: update version 5.0.8.0 Amit Kumar Salecha
2010-08-12  3:41 ` [PATCH NEXT 0/8]qlcnic: enhancement and fixes Amit Salecha
2010-08-12  5:23   ` David Miller

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=1281528329-8812-4-git-send-email-amit.salecha@qlogic.com \
    --to=amit.salecha@qlogic.com \
    --cc=ameen.rahman@qlogic.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=rajesh.borundia@qlogic.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).