[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200705180415.GB207186@unreal>
Date: Sun, 5 Jul 2020 21:04:15 +0300
From: Leon Romanovsky <leon@...nel.org>
To: David Ahern <dsahern@...il.com>
Cc: Maor Gottlieb <maorg@...lanox.com>,
Doug Ledford <dledford@...hat.com>,
Jason Gunthorpe <jgg@...lanox.com>,
linux-netdev <netdev@...r.kernel.org>,
RDMA mailing list <linux-rdma@...r.kernel.org>
Subject: Re: [PATCH iproute2-next v1 1/4] rdma: update uapi headers
On Sun, Jul 05, 2020 at 09:02:42AM -0600, David Ahern wrote:
> On 6/24/20 4:40 AM, Leon Romanovsky wrote:
> > diff --git a/rdma/include/uapi/rdma/rdma_netlink.h b/rdma/include/uapi/rdma/rdma_netlink.h
> > index ae5a77a1..fe127b88 100644
> > --- a/rdma/include/uapi/rdma/rdma_netlink.h
> > +++ b/rdma/include/uapi/rdma/rdma_netlink.h
> > @@ -287,6 +287,12 @@ enum rdma_nldev_command {
> >
> > RDMA_NLDEV_CMD_STAT_DEL,
> >
> > + RDMA_NLDEV_CMD_RES_QP_GET_RAW, /* can dump */
> > +
> > + RDMA_NLDEV_CMD_RES_CQ_GET_RAW, /* can dump */
> > +
> > + RDMA_NLDEV_CMD_RES_MR_GET_RAW, /* can dump */
> > +
> > RDMA_NLDEV_NUM_OPS
> > };
>
> you are inserting new commands in the middle which breaks existing users
> of this API.
RDMA_NLDEV_NUM_OPS is not a command, but enum item to help calculate array
size, exactly like devlink_command in include/uapi/linux/devlink.h.
Thanks
>
Powered by blists - more mailing lists