[openib-general] [PATCH] [MAD] changes to ib_create_send_mad
Sean Hefty
mshefty at ichips.intel.com
Thu May 5 11:48:08 PDT 2005
Sean Hefty wrote:
> Hal Rosenstock wrote:
>
>> On PayloadLength, single segment sends are fine. It is multisegment
>> sends which seem wrong to me.
>>
>> Case 1: ib_create_send_mad with hdr_len 0x38 data_len 0x278
>> paylen_newwin stored in header is 0x28C which seems correct
>> this creates 4 segments
>> 1-3 segments paylen_newwin is 0x6E0, 4th segment is 0x34
>>
>> Case 2: ib_create_send_mad with hdr_len 0x38 data_len 0x620
>> paylen_newwin stored in header is 0x634 which seems correct
>> this creates 8 segments
>> 1-7 segments paylen_newwin is 0x6E0, 4th segment is 0xBC
>>
>> Last paylen_newwin in both cases appears to me to be correct but the
>> paylen_newwin in the 1-n segments (0x6E0) seems wrong to me.
Err... I spoke too soon. Here's what I see on both the send and receive
side: Using SA class,
hdr_len = 56, data_len = 632 (x278)
1st payload: 0x370, last: 0x34
hdr_len = 56, data_len = 1568 (x620)
1st payload: 0x6e0, last: 0xbc
The middle segments in both cases equal the 1st payload, which is what I
would expect. The payload values in both cases are correct.
- Sean
Output from the two runs below...
grmpp: sent: 1, received: 0
grmpp: starting client
Madeye:sent GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x2
Method.........0x1 (Get)
Status.........0x00
Class specific.0x00
Trans ID.......0x2a7bcba09000000
Attr ID........0x35
Attr modifier..0x0000
Madeye:recv GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x2
Method.........0x81 (Get response)
Status.........0x00
Class specific.0x00
Trans ID.......0x2a7bcba09000000
Attr ID........0x35
Attr modifier..0x0000
Madeye:sent GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x1
Method.........0x12 (Get table)
Status.........0x00
Class specific.0x00
Trans ID.......0xf000000
Attr ID........0x00
Attr modifier..0x0000
RMPP version...0x1
RMPP type......0x1 (Data)
RMPP RRespTime.0x0
RMPP flags.....0x3 (Active - First)
RMPP status....0x0
Seg number.....0x0001
Payload len....0x0370
Madeye:recv GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x1
Method.........0x92 (Get table response)
Status.........0x00
Class specific.0x00
Trans ID.......0xf000000
Attr ID........0x00
Attr modifier..0x0000
RMPP version...0x1
RMPP type......0x2 (Ack)
RMPP RRespTime.0x0
RMPP flags.....0x1 (Active)
RMPP status....0x0
Seg number.....0x0001
New window.....0x0041
Madeye:sent GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x1
Method.........0x12 (Get table)
Status.........0x00
Class specific.0x00
Trans ID.......0xf000000
Attr ID........0x00
Attr modifier..0x0000
RMPP version...0x1
RMPP type......0x1 (Data)
RMPP RRespTime.0x0
RMPP flags.....0x1 (Active)
RMPP status....0x0
Seg number.....0x0002
Payload len....0x0370
Madeye:sent GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x1
Method.........0x12 (Get table)
Status.........0x00
Class specific.0x00
Trans ID.......0xf000000
Attr ID........0x00
Attr modifier..0x0000
RMPP version...0x1
RMPP type......0x1 (Data)
RMPP RRespTime.0x0
RMPP flags.....0x1 (Active)
RMPP status....0x0
Seg number.....0x0003
Payload len....0x0370
Madeye:sent GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x1
Method.........0x12 (Get table)
Status.........0x00
Class specific.0x00
Trans ID.......0xf000000
Attr ID........0x00
Attr modifier..0x0000
RMPP version...0x1
RMPP type......0x1 (Data)
RMPP RRespTime.0x0
RMPP flags.....0x5 (Active - Last)
RMPP status....0x0
Seg number.....0x0004
Payload len....0x0034
Madeye:recv GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x1
Method.........0x92 (Get table response)
Status.........0x00
Class specific.0x00
Trans ID.......0xf000000
Attr ID........0x00
Attr modifier..0x0000
RMPP version...0x1
RMPP type......0x2 (Ack)
RMPP RRespTime.0x0
RMPP flags.....0x1 (Active)
RMPP status....0x0
Seg number.....0x0004
New window.....0x0041
grmpp: test time: 1000 us
grmpp: test complete
grmpp: sent: 1, received: 0
grmpp: starting client
Madeye:sent GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x2
Method.........0x1 (Get)
Status.........0x00
Class specific.0x00
Trans ID.......0x3a7bcba09000000
Attr ID........0x35
Attr modifier..0x0000
Madeye:recv GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x2
Method.........0x81 (Get response)
Status.........0x00
Class specific.0x00
Trans ID.......0x3a7bcba09000000
Attr ID........0x35
Attr modifier..0x0000
Madeye:sent GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x1
Method.........0x12 (Get table)
Status.........0x00
Class specific.0x00
Trans ID.......0x10000000
Attr ID........0x00
Attr modifier..0x0000
RMPP version...0x1
RMPP type......0x1 (Data)
RMPP RRespTime.0x0
RMPP flags.....0x3 (Active - First)
RMPP status....0x0
Seg number.....0x0001
Payload len....0x06e0
Madeye:recv GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x1
Method.........0x92 (Get table response)
Status.........0x00
Class specific.0x00
Trans ID.......0x10000000
Attr ID........0x00
Attr modifier..0x0000
RMPP version...0x1
RMPP type......0x2 (Ack)
RMPP RRespTime.0x0
RMPP flags.....0x1 (Active)
RMPP status....0x0
Seg number.....0x0001
New window.....0x0041
Madeye:sent GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x1
Method.........0x12 (Get table)
Status.........0x00
Class specific.0x00
Trans ID.......0x10000000
Attr ID........0x00
Attr modifier..0x0000
RMPP version...0x1
RMPP type......0x1 (Data)
RMPP RRespTime.0x0
RMPP flags.....0x1 (Active)
RMPP status....0x0
Seg number.....0x0002
Payload len....0x06e0
Madeye:sent GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x1
Method.........0x12 (Get table)
Status.........0x00
Class specific.0x00
Trans ID.......0x10000000
Attr ID........0x00
Attr modifier..0x0000
RMPP version...0x1
RMPP type......0x1 (Data)
RMPP RRespTime.0x0
RMPP flags.....0x1 (Active)
RMPP status....0x0
Seg number.....0x0003
Payload len....0x06e0
Madeye:sent GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x1
Method.........0x12 (Get table)
Status.........0x00
Class specific.0x00
Trans ID.......0x10000000
Attr ID........0x00
Attr modifier..0x0000
RMPP version...0x1
RMPP type......0x1 (Data)
RMPP RRespTime.0x0
RMPP flags.....0x1 (Active)
RMPP status....0x0
Seg number.....0x0004
Payload len....0x06e0
Madeye:sent GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x1
Method.........0x12 (Get table)
Status.........0x00
Class specific.0x00
Trans ID.......0x10000000
Attr ID........0x00
Attr modifier..0x0000
RMPP version...0x1
RMPP type......0x1 (Data)
RMPP RRespTime.0x0
RMPP flags.....0x1 (Active)
RMPP status....0x0
Seg number.....0x0005
Payload len....0x06e0
Madeye:sent GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x1
Method.........0x12 (Get table)
Status.........0x00
Class specific.0x00
Trans ID.......0x10000000
Attr ID........0x00
Attr modifier..0x0000
RMPP version...0x1
RMPP type......0x1 (Data)
RMPP RRespTime.0x0
RMPP flags.....0x1 (Active)
RMPP status....0x0
Seg number.....0x0006
Payload len....0x06e0
Madeye:sent GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x1
Method.........0x12 (Get table)
Status.........0x00
Class specific.0x00
Trans ID.......0x10000000
Attr ID........0x00
Attr modifier..0x0000
RMPP version...0x1
RMPP type......0x1 (Data)
RMPP RRespTime.0x0
RMPP flags.....0x1 (Active)
RMPP status....0x0
Seg number.....0x0007
Payload len....0x06e0
Madeye:sent GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x1
Method.........0x12 (Get table)
Status.........0x00
Class specific.0x00
Trans ID.......0x10000000
Attr ID........0x00
Attr modifier..0x0000
RMPP version...0x1
RMPP type......0x1 (Data)
RMPP RRespTime.0x0
RMPP flags.....0x5 (Active - Last)
RMPP status....0x0
Seg number.....0x0008
Payload len....0x00bc
Madeye:recv GMP
MAD version....0x1
Class..........0x3 (Subnet admin.)
Class version..0x1
Method.........0x92 (Get table response)
Status.........0x00
Class specific.0x00
Trans ID.......0x10000000
Attr ID........0x00
Attr modifier..0x0000
RMPP version...0x1
RMPP type......0x2 (Ack)
RMPP RRespTime.0x0
RMPP flags.....0x1 (Active)
RMPP status....0x0
Seg number.....0x0008
New window.....0x0041
grmpp: test time: 1000 us
grmpp: test complete
More information about the general
mailing list