All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Alexander Duyck <alexander.h.duyck@intel.com>
Cc: "Kirsher, Jeffrey T" <jeffrey.t.kirsher@intel.com>,
	"davem@davemloft.net" <davem@davemloft.net>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"gospo@redhat.com" <gospo@redhat.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"greg@kroah.com" <greg@kroah.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"Zhao, Yu" <yu.zhao@intel.com>
Subject: Re: [net-next PATCH 1/2] igbvf: add new driver to support 82576 virtual functions
Date: Tue, 17 Mar 2009 18:08:26 -0700	[thread overview]
Message-ID: <20090317180826.8f3c596b.akpm@linux-foundation.org> (raw)
In-Reply-To: <49C03C80.5020203@intel.com>

On Tue, 17 Mar 2009 17:12:48 -0700 Alexander Duyck <alexander.h.duyck@intel.com> wrote:

> Thanks for all the comments.  I tried to incorporate most of them into 
> the igbvf driver and also ended up porting some over to our other 
> drivers, specifically igb since the igbvf driver copies much of the code.
> 
> I have added my comments inline below.
> 
> Thanks,
> 
> Alex
> 
> Andrew Morton wrote:
> > On Tue, 10 Mar 2009 19:09:28 -0700 Jeff Kirsher <jeffrey.t.kirsher@intel.com> wrote:
> > 
> >> From: Alexander Duyck <alexander.h.duyck@intel.com>
> >>
> >> This adds an igbvf driver to handle virtual functions provided
> >> by the igb driver.
> > 
> > The drive-by reader is now wondering what a "virtual function" is.

^^ this comment was missed.

I was indirectly asking for an overview (preferably in the changelog) of
what the whole patch actually does.

> >>
> >> +static int igbvf_set_ringparam(struct net_device *netdev,
> >> +                               struct ethtool_ringparam *ring)
> >> +{
> >> +     struct igbvf_adapter *adapter = netdev_priv(netdev);
> >> +     struct igbvf_ring *tx_ring, *tx_old;
> >> +     struct igbvf_ring *rx_ring, *rx_old;
> >> +     int err;
> >> +
> >> +     if ((ring->rx_mini_pending) || (ring->rx_jumbo_pending))
> >> +             return -EINVAL;
> >> +
> >> +     while (test_and_set_bit(__IGBVF_RESETTING, &adapter->state))
> >> +             msleep(1);
> > 
> > No timeout needed here?  Interrupts might not be working, for example..
> 
> This bit isn't set in interrupt context.  This is always used out of 
> interrupt context and is just to prevent multiple setting changes at the 
> same time.

Oh.  Can't use plain old mutex_lock()?



  reply	other threads:[~2009-03-18  1:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-11  2:09 [net-next PATCH 1/2] igbvf: add new driver to support 82576 virtual functions Jeff Kirsher
2009-03-11  2:09 ` [net-next PATCH 2/2] igb: add PF to pool if adding a VLVF register value and the VFTA bit is Jeff Kirsher
2009-03-11  5:21 ` [net-next PATCH 1/2] igbvf: add new driver to support 82576 virtual functions Andrew Morton
2009-03-18  0:12   ` Alexander Duyck
2009-03-18  1:08     ` Andrew Morton [this message]
2009-03-18 15:22       ` Alexander Duyck
2009-03-18 21:53         ` Andrew Morton
2009-03-19  0:40           ` Alexander Duyck
2009-03-19  1:56             ` Andrew Morton

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=20090317180826.8f3c596b.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=alexander.h.duyck@intel.com \
    --cc=davem@davemloft.net \
    --cc=gospo@redhat.com \
    --cc=greg@kroah.com \
    --cc=jeffrey.t.kirsher@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=yu.zhao@intel.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 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.