* [dpdk-dev] [PATCH] net/vdev_netvsc: fix device detection error check
@ 2018-02-05 12:48 Matan Azrad
2018-02-05 17:27 ` Ferruh Yigit
0 siblings, 1 reply; 2+ messages in thread
From: Matan Azrad @ 2018-02-05 12:48 UTC (permalink / raw)
To: Matan Azrad; +Cc: dev
The vdev_netvsc driver does periodic detection of PCI devices matched
to the netvsc existed interfaces.
When it finds a match, the PCI address is written to the pipe of the
associated fail-safe PMD instance and a positive value is returned to
the periodic check which is wrongly considered as error.
Change the check to consider only a negative value as error.
Fixes: e7dc5d7becc5 ("net/vdev_netvsc: implement core functionality")
Signed-off-by: Matan Azrad <matan@mellanox.com>
---
drivers/net/vdev_netvsc/vdev_netvsc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/vdev_netvsc/vdev_netvsc.c b/drivers/net/vdev_netvsc/vdev_netvsc.c
index a8a1a7f..cbf4d59 100644
--- a/drivers/net/vdev_netvsc/vdev_netvsc.c
+++ b/drivers/net/vdev_netvsc/vdev_netvsc.c
@@ -388,7 +388,7 @@ static LIST_HEAD(, vdev_netvsc_ctx) vdev_netvsc_ctx_list =
LIST_FOREACH(ctx, &vdev_netvsc_ctx_list, entry) {
ret = vdev_netvsc_foreach_iface(vdev_netvsc_device_probe, ctx);
- if (ret)
+ if (ret < 0)
break;
}
if (!vdev_netvsc_ctx_count)
--
1.8.3.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] net/vdev_netvsc: fix device detection error check
2018-02-05 12:48 [dpdk-dev] [PATCH] net/vdev_netvsc: fix device detection error check Matan Azrad
@ 2018-02-05 17:27 ` Ferruh Yigit
0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2018-02-05 17:27 UTC (permalink / raw)
To: Matan Azrad; +Cc: dev
On 2/5/2018 12:48 PM, Matan Azrad wrote:
> The vdev_netvsc driver does periodic detection of PCI devices matched
> to the netvsc existed interfaces.
>
> When it finds a match, the PCI address is written to the pipe of the
> associated fail-safe PMD instance and a positive value is returned to
> the periodic check which is wrongly considered as error.
>
> Change the check to consider only a negative value as error.
>
> Fixes: e7dc5d7becc5 ("net/vdev_netvsc: implement core functionality")
>
> Signed-off-by: Matan Azrad <matan@mellanox.com>
Applied to dpdk-next-net/master, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-05 17:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-05 12:48 [dpdk-dev] [PATCH] net/vdev_netvsc: fix device detection error check Matan Azrad
2018-02-05 17:27 ` Ferruh Yigit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).