• James Smart's avatar
    nvme-fcloop: add sysfs attribute to inject command drop · 03d99e5d
    James Smart authored
    Add sysfs attribute to specify parameters for dropping a command.  The
    attribute takes a string of:
    
      <opcode>:<starting a what instance>:<number of times>
    
    Opcode is formatted as lower 8 bits are opcode.  If a fabrics opcode, a
    bit above bits 7:0 will be set.
    
    Once set, each sqe is looked at. If the opcode matches the running
    instance count is updated. If the instance count is in the range of where
    to drop (based on starting and # of times), then drop the command by not
    passing it to the target layer.
    Signed-off-by: default avatarJames Smart <james.smart@broadcom.com>
    03d99e5d
fcloop.c 37.5 KB