Skip to contentSkip to conversation

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

PATCH Superseded Hal Rosenstock 3 participants 5 messages Jan 5, 2016 4 messages not in the archive InfiniBand

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 IB/core: Documentation fix to ib_mad_snoop_handler in the MAD header file

In ib_mad.h, ib_mad_snoop_handler uses send_buf rather than send_wr

---
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

A message that is not in the archive (sent off-list or not yet received): 568B98A6.3010908-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org

#2 lore raw

PiBJbiBpYl9tYWQuaCwgaWJfbWFkX3Nub29wX2hhbmRsZXIgdXNlcyBzZW5kX2J1ZiByYXRoZXIg dGhhbiBzZW5kX3dyDQoNClRoZSBNQUQgc25vb3Bpbmcgc2hvdWxkIGJlIHJlbW92ZWQgZnJvbSB0 aGUgbWFkIHN0YWNrLiAgVGhlcmUgYXJlIG5vIGluIHRyZWUgdXNlcnMgYW5kIHRoZSBvbmx5IGF0 dGVtcHQgYXQgYWRkaW5nIG9uZSB3YXMgcmVqZWN0ZWQuDQo=
--
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

A message that is not in the archive (sent off-list or not yet received): 1828884A29C6694DAF28B7E6B8A82373AAFF512F-P5GAC/[email protected]

#4 lore raw
Quoted 3 lines · Sean
Quoted 1 line

In ib_mad.h, ib_mad_snoop_handler uses send_buf rather than send_wr

The MAD snooping should be removed from the mad stack.

This last discussed on linux-rdma list back in late September when Ira posted a partial RFC patch to do this.

Quoted 1 line

There are no in tree users and the only attempt at adding one was rejected.

There are no in tree users of this but there is your madeye tool (which is out of tree). This is still a useful debug tool for MADs and there are people who still use that.

Ira posted the start of MAD stack tracing but AFAIT it was not equivalent and that thread died out.
--
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

A message that is not in the archive (sent off-list or not yet received): 568C1028.3090309-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org

#6 lore raw

PiA+IFRoZXJlIGFyZSBubyBpbiB0cmVlIHVzZXJzIGFuZCB0aGUgb25seSBhdHRlbXB0IGF0IGFk ZGluZyBvbmUgd2FzDQo+IHJlamVjdGVkLg0KPiANCj4gVGhlcmUgYXJlIG5vIGluIHRyZWUgdXNl cnMgb2YgdGhpcyBidXQgdGhlcmUgaXMgeW91ciBtYWRleWUgdG9vbCAod2hpY2gNCj4gaXMgb3V0 IG9mIHRyZWUpLiBUaGlzIGlzIHN0aWxsIGEgdXNlZnVsIGRlYnVnIHRvb2wgZm9yIE1BRHMgYW5k IHRoZXJlDQo+IGFyZSBwZW9wbGUgd2hvIHN0aWxsIHVzZSB0aGF0Lg0KDQpJdCdzIGFuIG91dCBv ZiB0cmVlIHRvb2wuICBNYWludGFpbiB0aGUgc25vb3BpbmcgaG9va3MgaW50byB0aGUgbWFkIGxh eWVyIG91dCBvZiB0cmVlIGFzIHdlbGwuDQo=
--
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

A message that is not in the archive (sent off-list or not yet received): 1828884A29C6694DAF28B7E6B8A82373AAFF51A5-P5GAC/[email protected]

#8 lore raw
Quoted 8 lines · Sean
Quoted 6 lines
Quoted 1 line

There are no in tree users and the only attempt at adding one was

rejected.

There are no in tree users of this but there is your madeye tool (which is out of tree). This is still a useful debug tool for MADs and there are people who still use that.

It's an out of tree tool. Maintain the snooping hooks into the mad layer out of tree as well.

Any real reason not to pick this good tool into the kernel code?

Or.
--
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