1. 26 10月, 2017 10 次提交
  2. 19 10月, 2017 20 次提交
  3. 18 10月, 2017 10 次提交
    • K
      RDMA/cxgb4: Convert timers to use timer_setup() · a9346abe
      Kees Cook 提交于
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly. Also removes an unused timer and
      drops a redundant initialization.
      
      Cc: Steve Wise <swise@chelsio.com>
      Cc: Doug Ledford <dledford@redhat.com>
      Cc: Sean Hefty <sean.hefty@intel.com>
      Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
      Cc: linux-rdma@vger.kernel.org
      Signed-off-by: NKees Cook <keescook@chromium.org>
      Acked-by: NSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      a9346abe
    • K
      RDMA/i40iw: Convert timers to use timer_setup() (part 2) · 2ec46d68
      Kees Cook 提交于
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      This includes the remaining timers missed in the earlier i40iw patch.
      
      Cc: Faisal Latif <faisal.latif@intel.com>
      Cc: Shiraz Saleem <shiraz.saleem@intel.com>
      Cc: Doug Ledford <dledford@redhat.com>
      Cc: Sean Hefty <sean.hefty@intel.com>
      Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
      Cc: linux-rdma@vger.kernel.org
      Signed-off-by: NKees Cook <keescook@chromium.org>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      2ec46d68
    • K
      RDMA/cxgb3: Convert timers to use timer_setup() · 051947b3
      Kees Cook 提交于
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly. Also removes an unused timer.
      
      Cc: Steve Wise <swise@chelsio.com>
      Cc: Doug Ledford <dledford@redhat.com>
      Cc: Sean Hefty <sean.hefty@intel.com>
      Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
      Cc: linux-rdma@vger.kernel.org
      Signed-off-by: NKees Cook <keescook@chromium.org>
      Acked-by: NSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      051947b3
    • K
      IB/hfi1: Convert timers to use timer_setup() · 8064135e
      Kees Cook 提交于
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly. Switches test of .data field to
      .function, since .data will be going away.
      
      Cc: Mike Marciniszyn <mike.marciniszyn@intel.com>
      Cc: Dennis Dalessandro <dennis.dalessandro@intel.com>
      Cc: Doug Ledford <dledford@redhat.com>
      Cc: Sean Hefty <sean.hefty@intel.com>
      Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
      Cc: linux-rdma@vger.kernel.org
      Signed-off-by: NKees Cook <keescook@chromium.org>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      8064135e
    • K
      IB/rdmavt: Convert timers to use timer_setup() · a2930e5c
      Kees Cook 提交于
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      setup_timer() was already being called before the open-coded init_timer()
      and .data assignment. These are removed as well.
      
      Cc: Dennis Dalessandro <dennis.dalessandro@intel.com>
      Cc: Doug Ledford <dledford@redhat.com>
      Cc: Sean Hefty <sean.hefty@intel.com>
      Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
      Cc: linux-rdma@vger.kernel.org
      Signed-off-by: NKees Cook <keescook@chromium.org>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      a2930e5c
    • D
      Merge tag 'mlx5-updates-2017-10-11' of... · 2652c792
      Doug Ledford 提交于
      Merge tag 'mlx5-updates-2017-10-11' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux into mlnx-shared
      
      mlx5-updates-2017-10-11: IPoIB Muli Pkey support
      
      This series provides the support for IPoIB Multi Pkey.  InfiniBand Pkeys
      are the equivalent of Ethernet vlans.  Currently IPoIB device driver
      supports only default Pkey and IPoIB Pkey child interfaces are not
      supported with IPoIB offloads mode, this series will add the support for
      that by allowing creating mlx5 multiple IPoIB netdevices with a
      non-default Pkey.
      
      mlx5 IPoIB Pkey child interface is smaller version of mlx5i IPoIB
      interfaces and shares most of its resources with the parent IPoIB
      interface, namely RX steering and ring queue resources.
      
      The only mlx5 resources a child Pkey interface will be creating are the
      TX rings, since they should be assigned to a specific Pkey.
      
      mlx5i Pkey netdev is implemented via new mlx5e netdev profile
      implemented in mlx5/core/ipoib/ipoib_vlan.c.
      
      The series starts with a refactoring of mlx5e PTP and mlx5 clock
      implementation to move the code to be part of mlx5 core rather than
      mlx5e netdevice, in order to make mlx5 clock and PTP registration part
      of the core to be shared with mlx5e master Ethernet netdev/IPoIB parent
      netdev and mlx5_ib in the near future.
      
      Add the support for attaching multiple underlay QPs for the different
      Pkeys in mlx5 core RX steering.
      
      Add Pkey index to rdma_netdev to add the ability to set PKEY index to
      lower IPoIB offload netdev.
      
      Use hash-table to map between DQPN (Destination QP number) to child
      netdev for the IPoIB parent netdev to forward RX packets to the
      corresponding child Pkey netdev, since the RX rings are shared.
      
      The reset of the series adds the ipoib child Pkey: mlx5e netdev profile,
      netdev nods implementation and minimal set of ethtool callbacks.
      
      Thanks,
      Saeed.
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      2652c792
    • B
      IB/srp: Make CM timeout dependent on subnet timeout · 4c532d6c
      Bart Van Assche 提交于
      For small networks it is safe to reduce the subnet timeout from
      its default value (18 for opensm) to 16. Make the SRP CM timeout
      dependent on the subnet timeout such that decreasing the subnet
      timeout also causes SRP failover and failback to occur faster.
      Signed-off-by: NBart Van Assche <bart.vanassche@wdc.com>
      Reviewed-by: NSagi Grimberg <sagi@grimberg.me>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      4c532d6c
    • B
      IB/srp: Cache global rkey · cee687b6
      Bart Van Assche 提交于
      This is a micro-optimization for the hot path.
      Signed-off-by: NBart Van Assche <bart.vanassche@wdc.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      cee687b6
    • B
      IB/srp: Remove second argument of srp_destroy_qp() · 9566b054
      Bart Van Assche 提交于
      This patch does not change any functionality.
      Signed-off-by: NBart Van Assche <bart.vanassche@wdc.com>
      Reviewed-by: NSagi Grimberg <sagi@grimberg.me>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      9566b054
    • B
      IB/srp: Avoid that a cable pull can trigger a kernel crash · 8a0d18c6
      Bart Van Assche 提交于
      This patch fixes the following kernel crash:
      
      general protection fault: 0000 [#1] PREEMPT SMP
      Workqueue: ib_mad2 timeout_sends [ib_core]
      Call Trace:
       ib_sa_path_rec_callback+0x1c4/0x1d0 [ib_core]
       send_handler+0xb2/0xd0 [ib_core]
       timeout_sends+0x14d/0x220 [ib_core]
       process_one_work+0x200/0x630
       worker_thread+0x4e/0x3b0
       kthread+0x113/0x150
      
      Fixes: commit aef9ec39 ("IB: Add SCSI RDMA Protocol (SRP) initiator")
      Signed-off-by: NBart Van Assche <bart.vanassche@wdc.com>
      Reviewed-by: NSagi Grimberg <sagi@grimberg.me>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      8a0d18c6