From: Jason Gunthorpe <jgg@mellanox.com>
To: Edward Srouji <edwards@mellanox.com>
Cc: Noa Osherovich <noaos@mellanox.com>,
"dledford@redhat.com" <dledford@redhat.com>,
Leon Romanovsky <leonro@mellanox.com>,
"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>,
Daria Velikovsky <daria@mellanox.com>
Subject: Re: [PATCH rdma-core 2/4] pyverbs: Introduce ParentDomain class
Date: Thu, 21 Nov 2019 16:31:40 +0000 [thread overview]
Message-ID: <20191121163135.GG7481@mellanox.com> (raw)
In-Reply-To: <VI1PR05MB4157C8E9CA220454969633A6D74E0@VI1PR05MB4157.eurprd05.prod.outlook.com>
We rely on a C extension for enums larger than integers.
Jason
On Thu, Nov 21, 2019 at 04:28:00PM +0000, Edward Srouji wrote:
> The C standard specifies that enums are integers (and are guaranteed to
> be large enough to hold int).
>
> These #defines are larger than 32bits (they're 64bits), and even if
> they're compiled with the driver, the Cythonization (of Pyverbs) would
> treat the enums as integers and the values would be cut. (Cython throws
> compilation warnings related to that).
>
> The PR was updated.
> __________________________________________________________________
>
> From: Jason Gunthorpe <jgg@mellanox.com>
> Sent: Thursday, November 14, 2019 6:50 PM
> To: Edward Srouji <edwards@mellanox.com>
> Cc: Noa Osherovich <noaos@mellanox.com>; dledford@redhat.com
> <dledford@redhat.com>; Leon Romanovsky <leonro@mellanox.com>;
> linux-rdma@vger.kernel.org <linux-rdma@vger.kernel.org>; Daria
> Velikovsky <daria@mellanox.com>
> Subject: Re: [PATCH rdma-core 2/4] pyverbs: Introduce ParentDomain
> class
>
> On Thu, Nov 14, 2019 at 04:49:52PM +0000, Edward Srouji wrote:
> > They are defined in mlx5dv with #define and not enums.
> > I will change to cpdef though.
> It is a mistake they are #define
> Jason
next prev parent reply other threads:[~2019-11-21 16:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-14 9:37 [PATCH rdma-core 0/4] pyverbs: Introduce parent domain Noa Osherovich
2019-11-14 9:37 ` [PATCH rdma-core 1/4] pyverbs: Add memory allocation class Noa Osherovich
2019-11-14 13:33 ` Jason Gunthorpe
2019-11-14 17:00 ` Edward Srouji
2019-11-14 17:04 ` Jason Gunthorpe
2019-11-14 9:37 ` [PATCH rdma-core 2/4] pyverbs: Introduce ParentDomain class Noa Osherovich
2019-11-14 13:39 ` Jason Gunthorpe
2019-11-14 16:49 ` Edward Srouji
2019-11-14 16:50 ` Jason Gunthorpe
[not found] ` <VI1PR05MB4157C8E9CA220454969633A6D74E0@VI1PR05MB4157.eurprd05.prod.outlook.com>
2019-11-21 16:31 ` Jason Gunthorpe [this message]
2019-11-14 9:37 ` [PATCH rdma-core 3/4] pyverbs: Document ParentDomain class and add a simple example Noa Osherovich
2019-11-14 9:37 ` [PATCH rdma-core 4/4] tests: Add a test for parent domain Noa Osherovich
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=20191121163135.GG7481@mellanox.com \
--to=jgg@mellanox.com \
--cc=daria@mellanox.com \
--cc=dledford@redhat.com \
--cc=edwards@mellanox.com \
--cc=leonro@mellanox.com \
--cc=linux-rdma@vger.kernel.org \
--cc=noaos@mellanox.com \
/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