From: Jason Gunthorpe <jgg@nvidia.com>
To: Yishai Hadas <yishaih@nvidia.com>
Cc: <linux-rdma@vger.kernel.org>, <maorg@nvidia.com>, <avihaih@nvidia.com>
Subject: Re: [PATCH rdma-core 3/8] verbs: Introduce a new query GID entry API
Date: Mon, 21 Sep 2020 13:49:36 -0300 [thread overview]
Message-ID: <20200921164936.GW3699@nvidia.com> (raw)
In-Reply-To: <20200914063503.192997-4-yishaih@nvidia.com>
On Mon, Sep 14, 2020 at 09:34:58AM +0300, Yishai Hadas wrote:
> +static int query_sysfs_gid_ndev_ifindex(struct ibv_context *context,
> + uint8_t port_num, uint32_t gid_index,
> + uint32_t *ndev_ifindex)
> +{
> + struct verbs_device *verbs_device = verbs_get_device(context->device);
> + char buff[IF_NAMESIZE] = {};
This init is not necessary
> diff --git a/libibverbs/verbs.c b/libibverbs/verbs.c
> index 9507ffd..9427aba 100644
> +++ b/libibverbs/verbs.c
> @@ -240,6 +240,14 @@ LATEST_SYMVER_FUNC(ibv_query_gid, 1_1, "IBVERBS_1.1",
> return 0;
> }
>
> +int _ibv_query_gid_ex(struct ibv_context *context, uint32_t port_num,
> + uint32_t gid_index, struct ibv_gid_entry *entry,
> + uint32_t flags, size_t entry_size)
> +{
> + return ibv_cmd_query_gid_entry(context, port_num, gid_index, entry,
> + flags, entry_size);
> +}
This extra function seems unncessary.
We've been creating C files for each object type, the gid stuff could
go in device.c
Jason
next prev parent reply other threads:[~2020-09-21 16:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-14 6:34 [PATCH rdma-core 0/8] verbs: Query GID table API Yishai Hadas
2020-09-14 6:34 ` [PATCH rdma-core 1/8] Update kernel headers Yishai Hadas
2020-09-14 6:34 ` [PATCH rdma-core 2/8] verbs: Change the name of enum ibv_gid_type Yishai Hadas
2020-09-14 6:34 ` [PATCH rdma-core 3/8] verbs: Introduce a new query GID entry API Yishai Hadas
2020-09-21 16:49 ` Jason Gunthorpe [this message]
2020-09-22 12:47 ` Yishai Hadas
2020-09-14 6:34 ` [PATCH rdma-core 4/8] verbs: Implement ibv_query_gid and ibv_query_gid_type over ioctl Yishai Hadas
2020-09-21 16:53 ` Jason Gunthorpe
2020-09-22 12:59 ` Yishai Hadas
2020-09-14 6:35 ` [PATCH rdma-core 5/8] verbs: Optimize ibv_query_gid and ibv_query_gid_type Yishai Hadas
2020-09-14 6:35 ` [PATCH rdma-core 6/8] verbs: Introduce a new query GID table API Yishai Hadas
2020-09-14 6:35 ` [PATCH rdma-core 7/8] pyverbs: Add query_gid_table and query_gid_ex methods Yishai Hadas
2020-09-14 6:35 ` [PATCH rdma-core 8/8] tests: Add tests for ibv_query_gid_table and ibv_query_gid_ex Yishai Hadas
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=20200921164936.GW3699@nvidia.com \
--to=jgg@nvidia.com \
--cc=avihaih@nvidia.com \
--cc=linux-rdma@vger.kernel.org \
--cc=maorg@nvidia.com \
--cc=yishaih@nvidia.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 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.