summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/srp/ib_srp.h
diff options
context:
space:
mode:
authorRoland Dreier2006-06-18 05:37:33 +0200
committerRoland Dreier2006-06-18 05:37:33 +0200
commit6bfa24fa3e189269e113197a80e12862c211b3d3 (patch)
treecdd5adcb58ce726708a48636d3b657155000e8cf /drivers/infiniband/ulp/srp/ib_srp.h
parentIB/srp: Handle DREQ events from CM (diff)
downloadkernel-qcow2-linux-6bfa24fa3e189269e113197a80e12862c211b3d3.tar.gz
kernel-qcow2-linux-6bfa24fa3e189269e113197a80e12862c211b3d3.tar.xz
kernel-qcow2-linux-6bfa24fa3e189269e113197a80e12862c211b3d3.zip
IB/srp: Get rid of "Target has req_lim 0" messages
It's perfectly valid for a connection to an SRP target to have a request limit of 0, so get rid of the message about it, which can spam kernel logs even with printk_ratelimit(). Keep a count of such events in a "zero_req_lim" SCSI host attribute instead, so someone who cares can look at the statistics. Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/ulp/srp/ib_srp.h')
-rw-r--r--drivers/infiniband/ulp/srp/ib_srp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.h b/drivers/infiniband/ulp/srp/ib_srp.h
index 033a44772ae3..ad45e4856e1c 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.h
+++ b/drivers/infiniband/ulp/srp/ib_srp.h
@@ -138,6 +138,8 @@ struct srp_target_port {
int max_ti_iu_len;
s32 req_lim;
+ int zero_req_lim;
+
unsigned rx_head;
struct srp_iu *rx_ring[SRP_RQ_SIZE];