netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: sony.chacko@qlogic.com
Cc: netdev@vger.kernel.org, Dept_NX_Linux_NIC_Driver@qlogic.com
Subject: Re: [PATCH net-next 0/15] qlcnic: patches for new adapter - Qlogic 83XX CNA
Date: Fri, 24 Aug 2012 12:56:56 -0400 (EDT)	[thread overview]
Message-ID: <20120824.125656.2080260426772048132.davem@davemloft.net> (raw)
In-Reply-To: <1345770439-30517-1-git-send-email-sony.chacko@qlogic.com>

From: Sony Chacko <sony.chacko@qlogic.com>
Date: Thu, 23 Aug 2012 21:07:04 -0400

> From: Sony Chacko <sony.chacko@qlogic.com>
> 
> Patch series will restructure the existing 82XX adapter driver to create
> a common driver for Qlogic 82XX and 83XX adapters.
> 
> Please apply it to net-next.

Sorry, this is terrible.

Firstly, I'm not going to let you create arbitrary new sysfs and
debugfs crap for facilities that are already supported by the kernel
via other interfaces.

For example, providing a facility to read and write the PCI BARs
is completely pointless.  Use the PCI config space access APIs for
this if you want to do this from userspace.

The patches are also much more verbose than they need to be.  When you
move an operation to the new hwops, keep the existing function name
but make it an inline function that invokes the hwop.

That way you won't need hundreds of lines in your patch that look
like this:


-	qlcnic_clear_lb_mode(adapter);
+	ahw->hw_ops->clear_loopback(adapter, mode);

Instead you'd have:

static inline void qlcnic_clear_lb_mode(struct qlcnic_adapter *adapter, u8 mode)
{
	struct qlcnic_hardware_context *ahw = &adapter->ahw;

	ahw->hw_ops->clear_loopback(adapter, mode);
}

      parent reply	other threads:[~2012-08-24 16:57 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-24  1:07 [PATCH net-next 0/15] qlcnic: patches for new adapter - Qlogic 83XX CNA Sony Chacko
2012-08-24  1:07 ` [PATCH net-next 01/15] qlcnic: Refactoring - template based hardware interface Sony Chacko
2012-08-24  1:07 ` [PATCH net-next 02/15] qlcnic: Refactoring - Tx/Rx code path separation Sony Chacko
2012-08-24  1:07 ` [PATCH net-next 03/15] qlcnic: Refactoring - Move sysfs code Sony Chacko
2012-08-24  1:07 ` [PATCH net-next 04/15] qlcnic: Refactoring - Moving hw specific data to hardware context Sony Chacko
2012-08-24  1:07 ` [PATCH net-next 05/15] qlcnic: remove 82xx specific register dump utility Sony Chacko
2012-08-24  1:07 ` [PATCH net-next 06/15] qlcnic: change driver firmware interface mechanism Sony Chacko
2012-08-24  1:07 ` [PATCH net-next 07/15] qlcnic: 83xx data path and HW interfaces routines Sony Chacko
2012-08-24  1:07 ` [PATCH net-next 08/15] qlcnic: register dump utility Sony Chacko
2012-08-24  1:07 ` [PATCH net-next 09/15] qlcnic: 83xx adpater flash interface routines Sony Chacko
2012-08-24  1:07 ` [PATCH net-next 10/15] qlcnic: 83xx CNA inter driver communication mechanism Sony Chacko
2012-08-24  1:07 ` [PATCH net-next 11/15] qlcnic: 83xx adpater ethtool Sony Chacko
2012-08-24  1:07 ` [PATCH net-next 12/15] qlcnic: enable 83xx virtual NIC mode Sony Chacko
2012-08-24  1:07 ` [PATCH net-next 13/15] qlcnic: create new file for 82xx firmware commands Sony Chacko
2012-08-24  1:07 ` [PATCH net-next 14/15] qlcnic: restructure file layout of combined driver Sony Chacko
2012-08-24  1:07 ` [PATCH net-next 15/15] qlcnic: update driver version - 5.1.30 Sony Chacko
2012-08-24 16:56 ` David Miller [this message]

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=20120824.125656.2080260426772048132.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=Dept_NX_Linux_NIC_Driver@qlogic.com \
    --cc=netdev@vger.kernel.org \
    --cc=sony.chacko@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).