From: Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org>
To: "Weiny, Ira" <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: "Hefty,
Sean" <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
Hal Rosenstock
<hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>,
"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org"
<roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Vu Pham <vuhuong-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
Sagi Grimberg <sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: Re: [PATCH] ib/mad: remove Device Mgmt from RMPP class list
Date: Thu, 25 Jul 2013 10:20:14 +0200 [thread overview]
Message-ID: <51F0DFBE.10608@acm.org> (raw)
In-Reply-To: <2807E5FD2F6FDA4886F6618EAC48510E021B1166-8k97q/ur5Z2krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
On 07/25/13 01:05, Weiny, Ira wrote:
>> -----Original Message-----
>> From: Hefty, Sean
>> Subject: RE: [PATCH] ib/mad: remove Device Mgmt from RMPP class list
>>
>>>>>> See Annex 8; DevMgt class version 2 rather than 1 is currently
>> supported.
>>>>>
>>>>> Could older devices still return version 1? If so the kernel
>>>>> should allow DevMgt without RMPP, correct?
>>>>
>>>> This check has been this way since 2.6.17. I think it's reasonable
>>>> to say
>>> that
>>>> there aren't any devices using version 1 that are running with Linux.
>>>
>>> FWIW the ib_srpt module uses a class version of 1:
>>>
>>> Ib_srpt.c:
>>>
>>> ...
>>> reg_req.mgmt_class_version = IB_MGMT_BASE_VERSION;
>> ...
>>
>> So, then this just happens to work because of some other check? If that's so,
>> then I agree with Hal, in that we can add the class version to the check.
>
> I think this works because the MAD stack triggers off of rmpp_version (in the
> agent) and RMPP_ACTIVE (in the individual MAD's). Since rmpp_version
> == 0 in this registration and likely all the MAD sent have a 0'ed out
> RMPP Header (ie the MAD stack thinks all MADs are RMPP _in_active) I
> think the stack passes all the MAD's without invoking the RMPP
> processing.
Changing the mgmt_class_version in ib_srpt.c from 1 into 2 would break
existing SRP device management clients (srp_daemon and ibsrpdm) since
these set mgmt_class_version to 1.
I'm not sure changing the rmpp_version argument in the
ib_register_mad_agent() call in ib_srpt.c would be sufficient to enable
RMPP for DM MAD's. Wouldn't the clients (srp_daemon and ibsrpdm) have to
be updated as well to set the rmpp_version in the MAD header as well ?
Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-07-25 8:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-24 21:44 [PATCH] ib/mad: remove Device Mgmt from RMPP class list Ira Weiny
[not found] ` <20130724144426.5a63669ea6107c8a3e6c1867-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2013-07-24 21:59 ` Hal Rosenstock
[not found] ` <51F04E2D.9060708-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2013-07-24 22:10 ` Weiny, Ira
[not found] ` <2807E5FD2F6FDA4886F6618EAC48510E021B0B9D-8k97q/ur5Z2krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-07-24 22:21 ` Hal Rosenstock
2013-07-24 22:22 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A8237384567CA1-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-07-24 22:29 ` Weiny, Ira
2013-07-24 22:56 ` Weiny, Ira
[not found] ` <2807E5FD2F6FDA4886F6618EAC48510E021B1099-8k97q/ur5Z2krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-07-24 23:01 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A8237384567D00-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-07-24 23:05 ` Weiny, Ira
[not found] ` <2807E5FD2F6FDA4886F6618EAC48510E021B1166-8k97q/ur5Z2krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-07-25 8:20 ` Bart Van Assche [this message]
[not found] ` <51F0DFBE.10608-HInyCGIudOg@public.gmane.org>
2013-07-25 10:26 ` Hal Rosenstock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51F0DFBE.10608@acm.org \
--to=bvanassche-hinycgiudog@public.gmane.org \
--cc=hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
--cc=ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
--cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=vuhuong-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox