Thread (1 message) 1 message, 1 author, 2016-07-13

Re: [patch v2] net/mlx5: missing error code in esw_create_offloads_fdb_table()

From: Matan Barak <hidden>
Date: 2016-07-13 13:17:05
Also in: kernel-janitors, linux-rdma

On 13/07/2016 16:04, Leon Romanovsky wrote:
On Wed, Jul 13, 2016 at 02:48:44PM +0300, Dan Carpenter wrote:
quoted
We accidentally return success when we had intended to return an error
code.

Fixes: 69697b6e2086 ('net/mlx5: E-Switch, Add support for the sriov offloads mode')
Signed-off-by: Dan Carpenter <redacted>
---
v2: return -ENOTSUPP instead --EINVAL
I'm a little bit confused. Why did you prefer ENOTSUPP over EOPNOTSUPP?
According to [1], it fits our case better - operation is valid and make 
sense, but isn't supported.

[1] https://lists.gnu.org/archive/html/bug-glibc/2002-08/msg00017.html
Thanks.
--
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help