aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/mad_priv.h
diff options
context:
space:
mode:
authorSean Hefty <sean.hefty@intel.com>2007-11-27 00:11:04 -0800
committerRoland Dreier <rolandd@cisco.com>2008-01-25 14:15:30 -0800
commit4fc8cd4919428f9b86f0b65e2f3245a1c186737f (patch)
tree07bca41da2be7504e6d17745fb86264e59a4958e /drivers/infiniband/core/mad_priv.h
parentIB/multicast: Report errors on multicast groups if P_key changes (diff)
downloadlinux-dev-4fc8cd4919428f9b86f0b65e2f3245a1c186737f.tar.xz
linux-dev-4fc8cd4919428f9b86f0b65e2f3245a1c186737f.zip
IB/mad: Report number of times a mad was retried
To allow ULPs to tune timeout values and capture retry statistics, report the number of times that a mad send operation was retried. For RMPP mads, report the total number of times that the any portion (send window) of the send operation was retried. Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/core/mad_priv.h')
-rw-r--r--drivers/infiniband/core/mad_priv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/core/mad_priv.h b/drivers/infiniband/core/mad_priv.h
index 9be5cc00a3a9..8b75010016ec 100644
--- a/drivers/infiniband/core/mad_priv.h
+++ b/drivers/infiniband/core/mad_priv.h
@@ -131,7 +131,8 @@ struct ib_mad_send_wr_private {
struct ib_sge sg_list[IB_MAD_SEND_REQ_MAX_SG];
__be64 tid;
unsigned long timeout;
- int retries;
+ int max_retries;
+ int retries_left;
int retry;
int refcount;
enum ib_wc_status status;