1. 11 3月, 2010 4 次提交
  2. 09 3月, 2010 19 次提交
  3. 08 3月, 2010 13 次提交
  4. 06 3月, 2010 4 次提交
    • B
      s2io: Fixing debug message · 3a22813a
      Breno Leitao 提交于
      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: NBreno Leitao <leitao@linux.vnet.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3a22813a
    • J
      e1000e: fix packet corruption and tx hang during NFSv2 · a80483d3
      Jesse Brandeburg 提交于
      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: NJesse Brandeburg <jesse.brandeburg@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      Acked-by: NNeil Horman <nhorman@tuxdriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a80483d3
    • D
      typhoon: fix incorrect use of smp_wmb() · 5fe88eae
      David Dillow 提交于
      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: NDavid Dillow <dave@thedillows.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5fe88eae
    • J
      ethtool: Add direct access to ops->get_sset_count · d17792eb
      Jeff Garzik 提交于
      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: NJeff Garzik <jgarzik@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d17792eb