public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Jiri Pirko <jiri-rHqAuBHg3fBzbRFIqnYvSA@public.gmane.org>
To: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	Jason Gunthorpe <jgg-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	RDMA mailing list
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Steve Wise
	<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
Subject: Re: [PATCH rdma/wip/jgg-for-next] RDMA/netlink: Hide unimplemented NLDEV commands
Date: Tue, 30 Jan 2018 16:57:06 +0100	[thread overview]
Message-ID: <20180130155706.GC14797@nanopsycho> (raw)
In-Reply-To: <20180130150716.16372-1-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>

Tue, Jan 30, 2018 at 04:07:16PM CET, leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org wrote:
>From: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
>
>The nldev was implemented by following devlink implementation,
>including SET/DEL/NEW commands. However these commands were not
>implemented and hence don't need to be exposed.
>
>Signed-off-by: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
>---
> include/uapi/rdma/rdma_netlink.h | 14 ++++++--------
> 1 file changed, 6 insertions(+), 8 deletions(-)
>
>diff --git a/include/uapi/rdma/rdma_netlink.h b/include/uapi/rdma/rdma_netlink.h
>index 17e59bec169e..4c77e2a7b07e 100644
>--- a/include/uapi/rdma/rdma_netlink.h
>+++ b/include/uapi/rdma/rdma_netlink.h
>@@ -227,16 +227,14 @@ enum rdma_nldev_command {
> 	RDMA_NLDEV_CMD_UNSPEC,
>
> 	RDMA_NLDEV_CMD_GET, /* can dump */
>-	RDMA_NLDEV_CMD_SET,
>-	RDMA_NLDEV_CMD_NEW,
>-	RDMA_NLDEV_CMD_DEL,
>
>-	RDMA_NLDEV_CMD_PORT_GET, /* can dump */
>-	RDMA_NLDEV_CMD_PORT_SET,
>-	RDMA_NLDEV_CMD_PORT_NEW,
>-	RDMA_NLDEV_CMD_PORT_DEL,
>+	/* 2 - 4 are free to use */
>
>-	RDMA_NLDEV_CMD_RES_GET, /* can dump */
>+	RDMA_NLDEV_CMD_PORT_GET = 5, /* can dump */
>+
>+	/* 6 - 8 are free to use */

I don't see reason for the wholes. Also, Don't you use *_NEW for replies
to *_GET, as it is common for Netlink?

But anyway, I would rather have them in, or don't have them in but don't
leave holes for them.


>+
>+	RDMA_NLDEV_CMD_RES_GET = 9, /* can dump */
>
> 	RDMA_NLDEV_CMD_RES_QP_GET, /* can dump */
>
>--
>2.16.1
>
>--
>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

  parent reply	other threads:[~2018-01-30 15:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-30 15:07 [PATCH rdma/wip/jgg-for-next] RDMA/netlink: Hide unimplemented NLDEV commands Leon Romanovsky
     [not found] ` <20180130150716.16372-1-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2018-01-30 15:57   ` Jiri Pirko [this message]
2018-01-30 16:03     ` Jason Gunthorpe
     [not found]       ` <20180130160337.GD17053-uk2M96/98Pc@public.gmane.org>
2018-01-30 18:18         ` Jiri Pirko
2018-01-30 18:39           ` Leon Romanovsky
2018-01-30 18:48           ` Jason Gunthorpe
2018-01-30 18:38         ` Leon Romanovsky
2018-01-31 22:40   ` Jason Gunthorpe

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=20180130155706.GC14797@nanopsycho \
    --to=jiri-rhqaubhg3fbzbrfiqnyvsa@public.gmane.org \
    --cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=jgg-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@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