* [PATCH for-next] RDMA/bnxt_re: Fix return value check for ib_get_eth_speed()
@ 2017-08-17 11:48 Selvin Xavier
[not found] ` <1502970504-30010-1-git-send-email-selvin.xavier-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Selvin Xavier @ 2017-08-17 11:48 UTC (permalink / raw)
To: dledford-H+wXaHxf7aLQT0dZR+AlfA
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, Selvin Xavier
ib_get_eth_speed() return 0 on success. Fixing the condition checking
and prevent reporting failure for query_port verb.
Fixes: d41861942fc5 (Add generic function to extract IB speed from netdev)
Signed-off-by: Selvin Xavier <selvin.xavier-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
---
drivers/infiniband/hw/bnxt_re/ib_verbs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.c b/drivers/infiniband/hw/bnxt_re/ib_verbs.c
index d78fedc..3fa20e0 100644
--- a/drivers/infiniband/hw/bnxt_re/ib_verbs.c
+++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.c
@@ -264,8 +264,8 @@ int bnxt_re_query_port(struct ib_device *ibdev, u8 port_num,
* IB stack to avoid race in the NETDEV_UNREG path
*/
if (test_bit(BNXT_RE_FLAG_IBDEV_REGISTERED, &rdev->flags))
- if (!ib_get_eth_speed(ibdev, port_num, &port_attr->active_speed,
- &port_attr->active_width))
+ if (ib_get_eth_speed(ibdev, port_num, &port_attr->active_speed,
+ &port_attr->active_width))
return -EINVAL;
return 0;
}
--
2.5.5
--
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH for-next] RDMA/bnxt_re: Fix return value check for ib_get_eth_speed()
[not found] ` <1502970504-30010-1-git-send-email-selvin.xavier-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
@ 2017-08-17 13:12 ` Leon Romanovsky
[not found] ` <20170817131213.GG23648-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Leon Romanovsky @ 2017-08-17 13:12 UTC (permalink / raw)
To: Selvin Xavier
Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA,
linux-rdma-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 654 bytes --]
On Thu, Aug 17, 2017 at 04:48:24AM -0700, Selvin Xavier wrote:
> ib_get_eth_speed() return 0 on success. Fixing the condition checking
> and prevent reporting failure for query_port verb.
>
> Fixes: d41861942fc5 (Add generic function to extract IB speed from netdev)
There is need to put quotes (" or ')over commit title;
Fixes: d41861942fc5 ("Add generic function to extract IB speed from netdev")
> Signed-off-by: Selvin Xavier <selvin.xavier-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
> ---
> drivers/infiniband/hw/bnxt_re/ib_verbs.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Please fix usnic too, it has the same issue.
Thanks,
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH for-next] RDMA/bnxt_re: Fix return value check for ib_get_eth_speed()
[not found] ` <20170817131213.GG23648-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
@ 2017-08-17 14:20 ` Selvin Xavier
0 siblings, 0 replies; 3+ messages in thread
From: Selvin Xavier @ 2017-08-17 14:20 UTC (permalink / raw)
To: Leon Romanovsky; +Cc: Doug Ledford, linux-rdma-u79uwXL29TY76Z2rM5mHXA
On Thu, Aug 17, 2017 at 6:42 PM, Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
>> Fixes: d41861942fc5 (Add generic function to extract IB speed from netdev)
>
> There is need to put quotes (" or ')over commit title;
> Fixes: d41861942fc5 ("Add generic function to extract IB speed from netdev")
>
>> Signed-off-by: Selvin Xavier <selvin.xavier-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
>> ---
>> drivers/infiniband/hw/bnxt_re/ib_verbs.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
> Please fix usnic too, it has the same issue.
>
Sure.. will post v2.
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-17 14:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-17 11:48 [PATCH for-next] RDMA/bnxt_re: Fix return value check for ib_get_eth_speed() Selvin Xavier
[not found] ` <1502970504-30010-1-git-send-email-selvin.xavier-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2017-08-17 13:12 ` Leon Romanovsky
[not found] ` <20170817131213.GG23648-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-08-17 14:20 ` Selvin Xavier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox