1. 13 3月, 2011 13 次提交
  2. 11 3月, 2011 3 次提交
  3. 10 3月, 2011 9 次提交
  4. 09 3月, 2011 1 次提交
  5. 08 3月, 2011 4 次提交
    • A
      unfuck proc_sysctl ->d_compare() · dfef6dcd
      Al Viro 提交于
      a) struct inode is not going to be freed under ->d_compare();
      however, the thing PROC_I(inode)->sysctl points to just might.
      Fortunately, it's enough to make freeing that sucker delayed,
      provided that we don't step on its ->unregistering, clear
      the pointer to it in PROC_I(inode) before dropping the reference
      and check if it's NULL in ->d_compare().
      
      b) I'm not sure that we *can* walk into NULL inode here (we recheck
      dentry->seq between verifying that it's still hashed / fetching
      dentry->d_inode and passing it to ->d_compare() and there's no
      negative hashed dentries in /proc/sys/*), but if we can walk into
      that, we really should not have ->d_compare() return 0 on it!
      Said that, I really suspect that this check can be simply killed.
      Nick?
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      dfef6dcd
    • D
      ipv4: Cache source address in nexthop entries. · 1fc050a1
      David S. Miller 提交于
      When doing output route lookups, we have to select the source address
      if the user has not specified an explicit one.
      
      First, if the route has an explicit preferred source address
      specified, then we use that.
      
      Otherwise we search the route's outgoing interface for a suitable
      address.
      
      This search can be precomputed and cached at route insertion time.
      
      The only missing part is that we have to refresh this precomputed
      value any time addresses are added or removed from the interface, and
      this is accomplished by fib_update_nh_saddrs().
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1fc050a1
    • Y
      net: add ndo_fcoe_ddp_target() to support FCoE DDP in target mode · 6247e086
      Yi Zou 提交于
      The Fiber Channel over Ethernet (FCoE) Direct Data Placement (DDP) can also be
      used for FCoE target, where the DDP used for read I/O on an initiator can be
      used on an FCoE target to speed up the write I/O to the target from the initiator.
      The added ndo_fcoe_ddp_target() works in the similar way as the existing
      ndo_fcoe_ddp_setup() to allow the underlying hardware set up the DDP context
      accordingly when it gets called from the FCoE target implementation on top
      the existing Open-FCoE fcoe/libfc protocol stack so without losing the ability
      to provide DDP for read I/O as an initiator, it can also provide DDP offload
      to the write I/O coming from the initiator as a target.
      Signed-off-by: NYi Zou <yi.zou@intel.com>
      Signed-off-by: NKiran Patil <kiran.patil@intel.com>
      Tested-by: NKavindya Deegala <kavindya.s.deegala@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      6247e086
    • J
      netdevice: Convert printk to pr_info in netif_tx_stop_queue · 256ee435
      Joe Perches 提交于
      This allows any caller to be prefaced by any specific
      pr_fmt to better identify which device driver is using
      this function inappropriately.
      
      Add terminating newline.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      256ee435
  6. 05 3月, 2011 7 次提交
  7. 04 3月, 2011 3 次提交