1. 10 Mar, 2010 4 commits
  2. 08 Mar, 2010 19 commits
  3. 07 Mar, 2010 13 commits
  4. 05 Mar, 2010 4 commits
    • Breno Leitao's avatar
      s2io: Fixing debug message · 3a22813a
      Breno Leitao authored
      Currently s2io is dumping debug messages using the interface name
      before it was allocated, showing a message like the following:
      
      s2io: eth%d: Ring Mem PHY: 0x7ef80000
      s2io: s2io_reset: Resetting XFrame card eth%d
      
      This patch just fixes it, printing the pci bus information for
      the card instead of the interface name.
      Signed-off-by: default avatarBreno Leitao <leitao@linux.vnet.ibm.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      3a22813a
    • Jesse Brandeburg's avatar
      e1000e: fix packet corruption and tx hang during NFSv2 · a80483d3
      Jesse Brandeburg authored
      when receiving a particular type of NFS v2 UDP traffic, the hardware could
      DMA some bad data and then hang, possibly corrupting memory.
      
      Disable the NFS parsing in this hardware, verified to fix the bug.
      
      Originally reported and reproduced by RedHat's Neil Horman
      CC: nhorman@tuxdriver.com
      Signed-off-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
      Acked-by: default avatarNeil Horman <nhorman@tuxdriver.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a80483d3
    • David Dillow's avatar
      typhoon: fix incorrect use of smp_wmb() · 5fe88eae
      David Dillow authored
      The typhoon driver was incorrectly using smp_wmb() to order memory
      accesses against IO to the NIC in a few instances. Use wmb() instead,
      which is required to actually order between memory types.
      Signed-off-by: default avatarDavid Dillow <dave@thedillows.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5fe88eae
    • Jeff Garzik's avatar
      ethtool: Add direct access to ops->get_sset_count · d17792eb
      Jeff Garzik authored
      On 03/04/2010 09:26 AM, Ben Hutchings wrote:
      > On Thu, 2010-03-04 at 00:51 -0800, Jeff Kirsher wrote:
      >> From: Jeff Garzik<jgarzik@redhat.com>
      >>
      >> This patch is an alternative approach for accessing string
      >> counts, vs. the drvinfo indirect approach.  This way the drvinfo
      >> space doesn't run out, and we don't break ABI later.
      > [...]
      >> --- a/net/core/ethtool.c
      >> +++ b/net/core/ethtool.c
      >> @@ -214,6 +214,10 @@ static noinline int ethtool_get_drvinfo(struct net_device *dev, void __user *use
      >>   	info.cmd = ETHTOOL_GDRVINFO;
      >>   	ops->get_drvinfo(dev,&info);
      >>
      >> +	/*
      >> +	 * this method of obtaining string set info is deprecated;
      >> +	 * consider using ETHTOOL_GSSET_INFO instead
      >> +	 */
      >
      > This comment belongs on the interface (ethtool.h) not the
      > implementation.
      
      Debatable -- the current comment is located at the callsite of
      ops->get_sset_count(), which is where an implementor might think to add
      a new call.  Not all the numeric fields in ethtool_drvinfo are obtained
      from ->get_sset_count().
      
      Hence the "some" in the attached patch to include/linux/ethtool.h,
      addressing your comment.
      
      > [...]
      >> +static noinline int ethtool_get_sset_info(struct net_device *dev,
      >> +                                          void __user *useraddr)
      >> +{
      > [...]
      >> +	/* calculate size of return buffer */
      >> +	for (i = 0; i<  64; i++)
      >> +		if (sset_mask&  (1ULL<<  i))
      >> +			n_bits++;
      > [...]
      >
      > We have a function for this:
      >
      > 	n_bits = hweight64(sset_mask);
      
      Agreed.
      
      I've attached a follow-up patch, which should enable my/Jeff's kernel
      patch to be applied, followed by this one.
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d17792eb