IB/srpt: Report login failures only once
authorBart Van Assche <bart.vanassche@sandisk.com>
Sat, 12 Nov 2016 00:36:06 +0000 (16:36 -0800)
committerDoug Ledford <dledford@redhat.com>
Wed, 14 Dec 2016 17:58:30 +0000 (12:58 -0500)
commit0d38c240f97602d9a4553252bb710521f49bb264
tree2b004bde185f1321ce50f4cc946c97c9170568ab
parent5f4c7e4eb5f36974ed46a485290f5d01ace5fdba
IB/srpt: Report login failures only once

Report the following message only once if no ACL has been configured
yet for an initiator port:

"Rejected login because no ACL has been configured yet for initiator %s.\n"

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Sagi Grimberg <sagig@grimberg.me>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srpt/ib_srpt.c