Skip to contentSkip to conversation

IB/core: Documentation fix to the snoop handler in the MAD header file

PATCH In review Hal Rosenstock 2 participants 2 messages Jan 5, 2016 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 IB/core: Documentation fix to the snoop handler in the MAD header file

In ib_mad.h, ib_mad_snoop_handler uses send_buf rather than send_wr

---
Change since v3:
Fixed title to not include function name

Change since v2:
Changed title to use "higher" language

Change since v1:
Fixed typo in patch description

include/rdma/ib_mad.h +2 -2
index ec9b44d..2b3573d 100644
@@ -424,11 +424,11 @@ typedef void (*ib_mad_send_handler)(struct ib_mad_agent *mad_agent,
 /**
  * ib_mad_snoop_handler - Callback handler for snooping sent MADs.
  * @mad_agent: MAD agent that snooped the MAD.
- * @send_wr: Work request information on the sent MAD.
+ * @send_buf: send MAD data buffer.
  * @mad_send_wc: Work completion information on the sent MAD.  Valid
  *   only for snooping that occurs on a send completion.
  *
- * Clients snooping MADs should not modify data referenced by the @send_wr
+ * Clients snooping MADs should not modify data referenced by the @send_buf
  * or @mad_send_wc.
  */
 typedef void (*ib_mad_snoop_handler)(struct ib_mad_agent *mad_agent,

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Reviewed-by
#2 lore raw
In reply to a message not in the archive
Quoted 3 lines · Hal Rosenstock

In ib_mad.h, ib_mad_snoop_handler uses send_buf rather than send_wr

First off I have to say; this comment is wrong and should be fixed.

That said.

I agree with Sean that the snoop interface should be removed.

I don't know the specific reason madeye was not accepted upstream back in the day. However, I _think_ it was because it implements a non-standard tracing mechanism.

For this reason I have explored the use of the standard tracing infrastructure within the mad stack. The series I sent for general comment [1] implemented tracing at a number of levels (umad and mad) as well as tracing of registered agents. This IMO give more insight into what is going on within the MAD stack than the madeye module.

I'll see what I can do to update the tracing code. In the mean time if others want to look at the tracing code I have so far I pushed a branch to my github.

https://github.com/weiny2/linux-kernel doug-fn-mad-trace

Ira

[1] https://www.mail-archive.com/linux-rdma%40vger.kernel.org/msg28188.html

Quoted 29 lines

---
Change since v3:
Fixed title to not include function name

Change since v2:
Changed title to use "higher" language

Change since v1:
Fixed typo in patch description

include/rdma/ib_mad.h +2 -3
index ec9b44d..2b3573d 100644
@@ -424,11 +424,11 @@ typedef void (*ib_mad_send_handler)(struct ib_mad_agent *mad_agent,
 /**
  * ib_mad_snoop_handler - Callback handler for snooping sent MADs.
  * @mad_agent: MAD agent that snooped the MAD.
- * @send_wr: Work request information on the sent MAD.
+ * @send_buf: send MAD data buffer.
  * @mad_send_wc: Work completion information on the sent MAD.  Valid
  *   only for snooping that occurs on a send completion.
  *
- * Clients snooping MADs should not modify data referenced by the @send_wr
+ * Clients snooping MADs should not modify data referenced by the @send_buf
  * or @mad_send_wc.
  */
 typedef void (*ib_mad_snoop_handler)(struct ib_mad_agent *mad_agent,
--
Quoted 3 lines

To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html