From: Jason Gunthorpe Subject: Re: [PATCH ib-next 2/3] IB/core: IB/core: Allow legacy verbs through extended interfaces Date: Mon, 9 Nov 2015 15:35:31 -0700 Message-ID: <20151109223531.GB1305@obsidianresearch.com> References: <1446745208-17733-1-git-send-email-eli@mellanox.com> <1446745208-17733-3-git-send-email-eli@mellanox.com> <564041C4.1090303@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <564041C4.1090303-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Haggai Eran Cc: Matan Barak , Eli Cohen , Doug Ledford , Yann Droneaud , linux-rdma , Or Gerlitz , Eran Ben Elisha , matanbe-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org List-Id: linux-rdma@vger.kernel.org On Mon, Nov 09, 2015 at 08:48:36AM +0200, Haggai Eran wrote: > On 08/11/2015 17:04, Matan Barak wrote: > >> @@ -704,6 +719,10 @@ static ssize_t ib_uverbs_write(struct file *filp, const char __user *buf, > >> > } > >> > > >> > command = hdr.command & IB_USER_VERBS_CMD_COMMAND_MASK; > >> > + if (verify_command_mask(ib_dev, command)) { > >> > + ret = -EINVAL; > > Why did you replace ENOSYS with EINVAL? > > I think ENOSYS is meant only to represent a system call number that > isn't supported. There was a change in checkpatch that now warns about > it [1]. I'm not sure the intention was to fix existing uses though. Within verbs we should have two kinds of return - not supported request, and supported request with invalid parameters. Maybe use EOPNOTSUPP ? Jason -- 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