1. 02 2月, 2018 3 次提交
  2. 06 1月, 2018 2 次提交
  3. 14 11月, 2017 1 次提交
  4. 18 10月, 2017 1 次提交
    • 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
  5. 15 10月, 2017 1 次提交
  6. 27 9月, 2017 1 次提交
  7. 23 8月, 2017 5 次提交
  8. 01 8月, 2017 3 次提交
  9. 24 7月, 2017 1 次提交
  10. 28 6月, 2017 4 次提交
  11. 05 5月, 2017 3 次提交
  12. 02 5月, 2017 1 次提交
  13. 29 4月, 2017 3 次提交
  14. 21 4月, 2017 2 次提交
  15. 06 4月, 2017 2 次提交
    • D
      IB/hfi1: Add transmit fault injection feature · 243d9f43
      Don Hiatt 提交于
      Add ability to fault packets on transmit by opcode.
      Dropping by packet can be achieved by setting the mask to 0.
      
      In order to drop non-verbs traffic we set PbcInsertHrc
      to NONE (0x2). The packet will still be delivered to
      the receiving node but a KHdrHCRCErr (KDETH packet
      with a bad HCRC) will be triggered and the packet will
      not be delivered to the correct context.
      
      In order to drop regular verbs traffic we set the
      PbcTestEbp flag. The packet will still be delivered
      to the receiving node but a 'late ebp error' will
      be triggered and will be dropped.
      
      A global toggle (/sys/kernel/debug/hfi1/hfi1_X/fault_suppress_err)
      has been added to suppress the error messages on the receive
      node when a packet was faulted on the sending node.
      Reviewed-by: NDennis Dalessandro <dennis.dalessandro@intel.com>
      Signed-off-by: NMike Marciniszyn <mike.marciniszyn@intel.com>
      Signed-off-by: NDon Hiatt <don.hiatt@intel.com>
      Signed-off-by: NDennis Dalessandro <dennis.dalessandro@intel.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      243d9f43
    • D
      IB/hfi1: Add receive fault injection feature · 0181ce31
      Don Hiatt 提交于
      Add fault injection capability:
        - Drop packets unconditionally (fault_by_packet)
        - Drop packets based on opcode (fault_by_opcode)
      
      This feature reacts to the global FAULT_INJECTION
      config flag.
      
      The faulting traces have been added:
        - misc/fault_opcode
        - misc/fault_packet
      
      See 'Documentation/fault-injection/fault-injection.txt'
      for details.
      
      Examples:
        - Dropping packets by opcode:
          /sys/kernel/debug/hfi1/hfi1_X/fault_opcode
      	# Enable fault
      	echo Y > fault_by_opcode
      	# Setprobability of dropping (0-100%)
      	# echo 25 > probability
      	# Set opcode
      	echo 0x64 > opcode
      	# Number of times to fault
      	echo 3 > times
      	# An optional mask allows you to fault
      	# a range of opcodes
      	echo 0xf0 > mask
          /sys/kernel/debug/hfi1/hfi1_X/fault_stats
          contains a value in parentheses to indicate
          number of each opcode dropped.
      
        - Dropping packets unconditionally
          /sys/kernel/debug/hfi1/hfi1_X/fault_packet
      	# Enable fault
      	echo Y > fault_by_packet
          /sys/kernel/debug/hfi1/hfi1_X/fault_packet/fault_stats
          contains the number of packets dropped.
      Reviewed-by: NDennis Dalessandro <dennis.dalessandro@intel.com>
      Signed-off-by: NMike Marciniszyn <mike.marciniszyn@intel.com>
      Signed-off-by: NDon Hiatt <don.hiatt@intel.com>
      Signed-off-by: NDennis Dalessandro <dennis.dalessandro@intel.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      0181ce31
  16. 19 2月, 2017 2 次提交
  17. 12 12月, 2016 1 次提交
  18. 16 11月, 2016 2 次提交
  19. 02 10月, 2016 1 次提交
  20. 23 8月, 2016 1 次提交