summaryrefslogtreecommitdiff
path: root/include/rdma/ib_pack.h
diff options
context:
space:
mode:
authorDon Hiatt <don.hiatt@intel.com>2017-03-20 17:26:14 -0700
committerDoug Ledford <dledford@redhat.com>2017-04-05 14:45:09 -0400
commit0181ce31b26021f7c2f9506112a05c847a36f0f2 (patch)
tree9b31b878fdbdbe7a8c771bc46d8b841abd49751c /include/rdma/ib_pack.h
parentf7b42633720deb5ca8f4bcb175c7dc2933057e7f (diff)
downloadlwn-0181ce31b26021f7c2f9506112a05c847a36f0f2.tar.gz
lwn-0181ce31b26021f7c2f9506112a05c847a36f0f2.zip
IB/hfi1: Add receive fault injection feature
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: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Don Hiatt <don.hiatt@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/ib_pack.h')
0 files changed, 0 insertions, 0 deletions