1. 13 3月, 2011 9 次提交
  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 次提交
  8. 03 3月, 2011 4 次提交
    • T
      blktrace: Remove blk_fill_rwbs_rq. · 2d3a8497
      Tao Ma 提交于
      If we enable trace events to trace block actions, We use
      blk_fill_rwbs_rq to analyze the corresponding actions
      in request's cmd_flags, but we only choose the minor 2 bits
      from it, so most of other flags(e.g, REQ_SYNC) are missing.
      For example, with a sync write we get:
      write_test-2409  [001]   160.013869: block_rq_insert: 3,64 W 0 () 258135 + =
      8 [write_test]
      
      Since now we have integrated the flags of both bio and request,
      it is safe to pass rq->cmd_flags directly to blk_fill_rwbs and
      blk_fill_rwbs_rq isn't needed any more.
      
      With this patch, after a sync write we get:
      write_test-2417  [000]   226.603878: block_rq_insert: 3,64 WS 0 () 258135 +=
       8 [write_test]
      Signed-off-by: NTao Ma <boyu.mt@taobao.com>
      Acked-by: NJeff Moyer <jmoyer@redhat.com>
      Signed-off-by: NJens Axboe <jaxboe@fusionio.com>
      2d3a8497
    • A
      RxRPC: Fix v1 keys · f009918a
      Anton Blanchard 提交于
      commit 33941284 (RxRPC: Allow key payloads to be passed in XDR form)
      broke klog for me. I notice the v1 key struct had a kif_version field
      added:
      
      -struct rxkad_key {
      -       u16     security_index;         /* RxRPC header security index */
      -       u16     ticket_len;             /* length of ticket[] */
      -       u32     expiry;                 /* time at which expires */
      -       u32     kvno;                   /* key version number */
      -       u8      session_key[8];         /* DES session key */
      -       u8      ticket[0];              /* the encrypted ticket */
      -};
      
      +struct rxrpc_key_data_v1 {
      +       u32             kif_version;            /* 1 */
      +       u16             security_index;
      +       u16             ticket_length;
      +       u32             expiry;                 /* time_t */
      +       u32             kvno;
      +       u8              session_key[8];
      +       u8              ticket[0];
      +};
      
      However the code in rxrpc_instantiate strips it away:
      
      	data += sizeof(kver);
      	datalen -= sizeof(kver);
      
      Removing kif_version fixes my problem.
      Signed-off-by: NAnton Blanchard <anton@samba.org>
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f009918a
    • S
      dcbnl: add support for retrieving peer configuration - cee · dc6ed1df
      Shmulik Ravid 提交于
      This patch adds the support for retrieving the remote or peer DCBX
      configuration via dcbnl for embedded DCBX stacks supporting the CEE DCBX
      standard.
      Signed-off-by: NShmulik Ravid <shmulikr@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dc6ed1df
    • S
      dcbnl: add support for retrieving peer configuration - ieee · eed84713
      Shmulik Ravid 提交于
      These 2 patches add the support for retrieving the remote or peer DCBX
      configuration via dcbnl for embedded DCBX stacks. The peer configuration
      is part of the DCBX MIB and is useful for debugging and diagnostics of
      the overall DCB configuration. The first patch add this support for IEEE
      802.1Qaz standard the second patch add the same support for the older
      CEE standard. Diff for v2 - the peer-app-info is CEE specific.
      Signed-off-by: NShmulik Ravid <shmulikr@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      eed84713