From: "ira.weiny" <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Liran Liss <liranl-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Cc: "dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org"
<dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH 14/14] IB/mad: Add final OPA MAD processing
Date: Wed, 10 Jun 2015 13:54:23 -0400 [thread overview]
Message-ID: <20150610175423.GB13497@phlsvsds.ph.intel.com> (raw)
In-Reply-To: <HE1PR05MB1418BB6C461790B76D9C02A3B1BD0-eBadYZ65MZ87O8BmmlM1zNqRiQSDpxhJvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
On Wed, Jun 10, 2015 at 06:30:58AM +0000, Liran Liss wrote:
> > From: Ira Weiny <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>
> Hi Ira,
>
> OPA cannot impersonate IB; OPA node and link types have to be designated as such.
This was discussed at length and we agreed that the kernel would have explicit
capabilities communicated between the drivers and the core layers rather than
using link layer to determine what core support was needed.
For Node Type, OPA is its own "namespace" and as such we use the same values
for "CA" and "Switch". The code you reference below is explicitly executed
only on OPA devices so I don't see why this is in conflict with IB.
> In terms of MAD processing flows, both explicit (as in the handle_opa_smi() call below) and implicit code paths (which share IB flows - there are several cases) must make this distinction.
>
I agreed and all OPA differences are limited to device/ports which explicitly
indicate they are OPA ports.
For example:
opa = rdma_cap_opa_mad(qp_info->port_priv->device,
qp_info->port_priv->port_num);
...
if (opa && ((struct ib_mad_hdr *)(recv->mad))->base_version == OPA_MGMT_BASE_VERSION) {
recv->header.recv_wc.mad_len = wc->byte_len - sizeof(struct ib_grh);
recv->header.recv_wc.mad_seg_size = sizeof(struct opa_mad);
} else {
recv->header.recv_wc.mad_len = sizeof(struct ib_mad);
recv->header.recv_wc.mad_seg_size = sizeof(struct ib_mad);
}
If I missed a place where this is not the case please let me know but I made
this change many months back and I'm pretty sure I caught them all.
Thanks,
Ira
> > +static enum smi_action
> > +handle_opa_smi(struct ib_mad_port_private *port_priv,
> > + struct ib_mad_qp_info *qp_info,
> > + struct ib_wc *wc,
> > + int port_num,
> > + struct ib_mad_private *recv,
> > + struct ib_mad_private *response)
> > +{
> ...
> > + } else if (port_priv->device->node_type == RDMA_NODE_IB_SWITCH) <----
>
> --Liran
> --
> 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
--
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:[~2015-06-10 17:54 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-06 18:38 [PATCH 00/14] IB/mad: Add support for OPA MAD processing ira.weiny-ral2JQCrhuEAvxtiuMwx3w
[not found] ` <1433615915-24591-1-git-send-email-ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-06-06 18:38 ` [PATCH 01/14] IB/mad cleanup: Clean up function params -- find_mad_agent ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-06-06 18:38 ` [PATCH 02/14] IB/mad cleanup: Generalize processing of MAD data ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-06-06 18:38 ` [PATCH 03/14] IB/mad: Split IB SMI handling from MAD Recv handler ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-06-06 18:38 ` [PATCH 04/14] IB/mad: Create a generic helper for DR SMP Send processing ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-06-06 18:38 ` [PATCH 05/14] IB/mad: Create a generic helper for DR SMP Recv processing ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-06-06 18:38 ` [PATCH 06/14] IB/mad: Create a generic helper for DR forwarding checks ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-06-06 18:38 ` [PATCH 07/14] IB/mad: Support alternate Base Versions when creating MADs ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-06-06 18:38 ` [PATCH 08/14] IB/core: Add ability for drivers to report an alternate MAD size ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-06-06 18:38 ` [PATCH 09/14] IB/mad: Convert allocations from kmem_cache to kzalloc ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-06-06 18:38 ` [PATCH 10/14] IB/mad: Add support for additional MAD info to/from drivers ira.weiny-ral2JQCrhuEAvxtiuMwx3w
[not found] ` <1433615915-24591-11-git-send-email-ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-06-08 18:50 ` Hefty, Sean
2015-06-06 18:38 ` [PATCH 11/14] IB/core: Add OPA MAD core capability flag ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-06-06 18:38 ` [PATCH 12/14] IB/mad: Add partial Intel OPA MAD support ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-06-06 18:38 ` [PATCH 13/14] " ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-06-06 18:38 ` [PATCH 14/14] IB/mad: Add final OPA MAD processing ira.weiny-ral2JQCrhuEAvxtiuMwx3w
[not found] ` <1433615915-24591-15-git-send-email-ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-06-10 6:30 ` Liran Liss
[not found] ` <HE1PR05MB1418BB6C461790B76D9C02A3B1BD0-eBadYZ65MZ87O8BmmlM1zNqRiQSDpxhJvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2015-06-10 17:54 ` ira.weiny [this message]
2015-06-10 18:37 ` Doug Ledford
[not found] ` <1433961446.71666.26.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-06-10 18:56 ` Jason Gunthorpe
[not found] ` <20150610185653.GA28153-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-06-10 19:59 ` Doug Ledford
[not found] ` <1433966378.71666.44.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-06-11 18:27 ` Liran Liss
[not found] ` <HE1PR05MB141885494D6967919DAE135EB1BC0-eBadYZ65MZ87O8BmmlM1zNqRiQSDpxhJvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2015-06-12 14:23 ` Doug Ledford
[not found] ` <557AEB5D.1040003-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-06-14 19:16 ` Liran Liss
[not found] ` <HE1PR05MB14182DCD7003B52A28BB62A5B1B90-eBadYZ65MZ87O8BmmlM1zNqRiQSDpxhJvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2015-06-15 5:39 ` Doug Ledford
[not found] ` <557E6514.1060600-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-06-16 21:05 ` Liran Liss
[not found] ` <HE1PR05MB1418C8F8E54FCC790B0CCAE3B1A70-eBadYZ65MZ87O8BmmlM1zNqRiQSDpxhJvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2015-06-17 14:03 ` Weiny, Ira
[not found] ` <2807E5FD2F6FDA4886F6618EAC48510E1109EA02-8k97q/ur5Z2krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-06-18 20:12 ` Liran Liss
2015-06-18 21:00 ` Doug Ledford
[not found] ` <953CDD5A-2738-4427-B763-EBFB4BBB2E03-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-06-19 11:53 ` Hal Rosenstock
2015-06-16 22:12 ` Hefty, Sean
2015-06-11 21:00 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A82373A8FEF1EA-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-06-11 23:24 ` Hal Rosenstock
[not found] ` <557A18C0.6010200-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2015-06-11 23:52 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A82373A8FEF321-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-06-12 0:22 ` Hal Rosenstock
2015-06-12 20:00 ` [PATCH 00/14] IB/mad: Add support for " Doug Ledford
-- strict thread matches above, loose matches on Subject: below --
2015-05-28 16:21 [PATCH 14/14] IB/mad: Add final " Liran Liss
2015-05-20 8:13 [PATCH 00/14] IB/mad: Add support for " ira.weiny-ral2JQCrhuEAvxtiuMwx3w
[not found] ` <1432109615-19564-1-git-send-email-ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-05-20 8:13 ` [PATCH 14/14] IB/mad: Add final " ira.weiny-ral2JQCrhuEAvxtiuMwx3w
[not found] ` <1432109615-19564-15-git-send-email-ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-05-20 18:59 ` Jason Gunthorpe
[not found] ` <20150520185901.GK28496-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-05-21 16:23 ` ira.weiny
2015-05-20 21:11 ` Suri Shelvapille
[not found] ` <CY1PR03MB1440B98A7FE0A82E1BE53D75DEC20-DUcFgbLRNhB/HYnSB+xpdWP7xZHs9kq/vxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2015-05-20 21:26 ` ira.weiny
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=20150610175423.GB13497@phlsvsds.ph.intel.com \
--to=ira.weiny-ral2jqcrhueavxtiumwx3w@public.gmane.org \
--cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=liranl-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.