iser-target: Ignore non TEXT + LOGOUT opcodes for discovery
authorNicholas Bellinger <nab@linux-iscsi.org>
Mon, 8 Jul 2013 00:45:08 +0000 (17:45 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 8 Jul 2013 01:37:02 +0000 (18:37 -0700)
commitca40d24eb8fc3c194b4439493ecf6b2d703812b8
tree21f60ab15645089919328cbffffe6c78c4fdc313
parentb79fafac70fc9bbe640b8193ed772eb850efdfe6
iser-target: Ignore non TEXT + LOGOUT opcodes for discovery

This patch adds a check in isert_rx_opcode() to ignore non TEXT + LOGOUT
opcodes when SessionType=Discovery has been negotiated.

Cc: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c