All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: Gal Pressman <galpress@amazon.com>
Cc: Doug Ledford <dledford@redhat.com>,
	Jason Gunthorpe <jgg@mellanox.com>,
	linux-rdma@vger.kernel.org
Subject: Re: [PATCH rdma-next] RDMA/ucma: Return stable IB device index as identifier
Date: Mon, 4 May 2020 14:13:42 +0300	[thread overview]
Message-ID: <20200504111342.GF111287@unreal> (raw)
In-Reply-To: <20200504110929.GD111287@unreal>

On Mon, May 04, 2020 at 02:09:29PM +0300, Leon Romanovsky wrote:
> On Mon, May 04, 2020 at 02:01:23PM +0300, Gal Pressman wrote:
> > On 30/04/2020 18:29, Leon Romanovsky wrote:
> > > From: Leon Romanovsky <leonro@mellanox.com>
> > >
> > > The librdmacm uses node_guid as identifier to correlate between
> > > IB devices and CMA devices. However FW resets cause to such
> > > "connection" to be lost and require from the user to restart
> > > its application.
> > >
> > > Extend UCMA to return IB device index, which is stable identifier.
> > >
> > > Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
> > > ---
> > > diff --git a/include/uapi/rdma/rdma_user_cm.h b/include/uapi/rdma/rdma_user_cm.h
> > > index e545f2de1e13..14d48b462d91 100644
> > > --- a/include/uapi/rdma/rdma_user_cm.h
> > > +++ b/include/uapi/rdma/rdma_user_cm.h
> > > @@ -168,6 +168,7 @@ struct rdma_ucm_query_route_resp {
> > >  	__u32 num_paths;
> > >  	__u8 port_num;
> > >  	__u8 reserved[3];
> > > +	__u32 ibdev_index;
> > >  };
> > >
> > >  struct rdma_ucm_query_addr_resp {
> > > @@ -179,6 +180,7 @@ struct rdma_ucm_query_addr_resp {
> > >  	__u16 dst_size;
> > >  	struct __kernel_sockaddr_storage src_addr;
> > >  	struct __kernel_sockaddr_storage dst_addr;
> > > +	__u32 ibdev_index;
> > >  };
> >
> > Should both these structs size be aligned to 8 bytes?
>
> Are you asking about 8 bytes or 64 bytes?
> Because u32 is aligned to 8 bytes.

Sorry, of course, you are right.

>
> Thanks

      reply	other threads:[~2020-05-04 11:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-30 15:29 [PATCH rdma-next] RDMA/ucma: Return stable IB device index as identifier Leon Romanovsky
2020-05-04 11:01 ` Gal Pressman
2020-05-04 11:09   ` Leon Romanovsky
2020-05-04 11:13     ` Leon Romanovsky [this message]

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=20200504111342.GF111287@unreal \
    --to=leon@kernel.org \
    --cc=dledford@redhat.com \
    --cc=galpress@amazon.com \
    --cc=jgg@mellanox.com \
    --cc=linux-rdma@vger.kernel.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.