From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 70217A034E; Thu, 7 Nov 2019 11:44:04 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5363E1E90B; Thu, 7 Nov 2019 11:44:03 +0100 (CET) Received: from mail-vs1-f67.google.com (mail-vs1-f67.google.com [209.85.217.67]) by dpdk.org (Postfix) with ESMTP id 40A0F1E8F2 for ; Thu, 7 Nov 2019 11:44:02 +0100 (CET) Received: by mail-vs1-f67.google.com with SMTP id a143so950078vsd.9 for ; Thu, 07 Nov 2019 02:44:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=eVrPZDWCpTWg7OtgC7IkL6YIxWXaWy1QZCC5cJiXXws=; b=BBwan9NP3Hm+TmuQyd4JbcSGpq7O658Ldb4Lua90gujZa2GTYVh+Gv+ka7+lhZKFAF KbBgzlKj5vtdpdVGh03YnRGloRZfjFNtm1AoAbDaG7k4UfSxRLZwqaBu1Wn3qdfeHd3a i2ne8aaw/YJfJXkGLgFV+SuFeEMas9mFta74TTDXCWHOFsbtMm9rtCwPBA8Hvvy9TGQh /C2CHkL64MQOYzKDDYv0UpIciZ9HdC5MkaMiO42qvKH2gJSWx3oPxQqkVABGKbMIXcly 2OlF5nAUSnZgjrsc9mXDpyeylJhdOM0UcW4noXLduTt7SdSXkfCX+t5RoqER+KjVbstD /e9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=eVrPZDWCpTWg7OtgC7IkL6YIxWXaWy1QZCC5cJiXXws=; b=RAgEj7z6iJJkjbvcXye6KrbN4BEAhqBB4dfhOgu8B5sDz6o0QZFj2JtwmXKrrBG2k6 5ntFdAky4kJj83+5x66f0QrbmRA/h7XRqDJzTJUcAiGKuh0T6Oi2pTRDTisVmiwtLyH0 VSDnFuYgJvJmpbL0hRf5wfejgbzgJDWNDgsVOUm9qaCIOhD/kol9MN49gSOrjwC1Xt57 QUCjMR7TMsNFAG6TNtaiXQ6udsbeTqRrq1JopEbUb6t2dNwBi99bk+n6te8fyH6uelMK uVFVnPUyE1pzYRjK6ItopFrRhuiN5TgXAHvNMYs+AQsFrXaP3BxhYcEjPEHuyTB9EF8N elHA== X-Gm-Message-State: APjAAAWJuMTQWNaemQY3TBL7/QZopjS5T8wybq1n6tckNgk0AnhFIq5a yTsIhv47bhGcrfnGBVGLSXpAGrH0a8zC9trKwm/XFH0p X-Google-Smtp-Source: APXvYqz1PRzHXjiE0K4rYHwQU13uqHSmXLWkruAxOQV95KMveZLM3j0be21QSd96yBiAq34QbRxP3NK+cEW30t5xt1c= X-Received: by 2002:a67:5d47:: with SMTP id r68mr2338146vsb.103.1573123441116; Thu, 07 Nov 2019 02:44:01 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Deepak Gowda Date: Thu, 7 Nov 2019 16:13:49 +0530 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Docker container OVS-dpdk: vhost_user_setup(): connect error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Also, If i restart the ovs and try running the testpmd again, I see this, from inside the container. EAL: Detected 4 lcore(s) EAL: Detected 1 NUMA nodes EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Probing VFIO support... vhost_user_read(): Failed to recv msg hdr: -1 instead of 12. vhost_user_sock(): Received msg failed: Connection reset by peer virtio_user_dev_init(): get_features failed: Connection reset by peer virtio_user_pmd_probe(): virtio_user_dev_init fails vdev_probe(): failed to initialize virtio_user1 device EAL: Bus (vdev) probe failed. Seems like the daemon is crashing, And i see this in the ovs-vswitchd.log when the testpmd fails, 2019-11-07T07:31:43.860Z|00001|dpdk|INFO|VHOST_CONFIG: new vhost user connection is 311 2019-11-07T07:31:43.860Z|00002|dpdk|INFO|VHOST_CONFIG: new device, handle is 0 2019-11-07T07:31:43.860Z|00003|dpdk|INFO|VHOST_CONFIG: read message VHOST_USER_SET_OWNER 2019-11-07T07:31:43.860Z|00004|dpdk|INFO|VHOST_CONFIG: read message VHOST_USER_GET_FEATURES 2019-11-07T07:31:46.265Z|00002|daemon_unix(monitor)|ERR|1 crashes: pid 12315 died, killed (Segmentation fault), core dumped, restarting and ovs goes for a restart. Suddenly ovs is not able to read the vhost-user ports when it is coming up. Here's what 'ovs-vsctl show' returns. Bridge "br0" Port "vhost-user4" Interface "vhost-user4" type: dpdkvhostuser error: "could not open network device vhost-user4 (Unknown error -1)" Port "br0" Interface "br0" type: internal Port "vhost-user1" Interface "vhost-user1" type: dpdkvhostuser error: "could not open network device vhost-user1 (Unknown error -1)" Port "vhost-user3" Interface "vhost-user3" type: dpdkvhostuser error: "could not open network device vhost-user3 (Unknown error -1)" Port "vhost-user2" Interface "vhost-user2" type: dpdkvhostuser error: "could not open network device vhost-user2 (Unknown error -1)" ovs_version: "2.11.1" vhost-user ports are back to normal after manually restarting the ovs, but i still cannot run the testpmd from inside the container and i face the same issue all over again. Is this happening because i'm on a pseudo host(I think otherwise)? or did i miss some steps along the way? Thanks, -Deepak Gowda On Wed, 6 Nov 2019 at 16:47, Deepak Gowda wrote: > Hi, > > I'm trying to run test-pmd with this virtual devices created by the > ovs-dpdk from inside a docker container. > I see EAL probing failing every time, i did try restarting the ovs, no > luck. > I see these vhost-user ports created from the log, i do see these from the > 'ovs-vsctl show'. > Can't seem to figure out whats going wrong here, > > EAL: Detected 4 lcore(s) > EAL: Detected 1 NUMA nodes > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > EAL: Probing VFIO support... > vhost_user_setup(): connect error, Connection refused > virtio_user_dev_init(): backend set up fails > virtio_user_pmd_probe(): virtio_user_dev_init fails > vdev_probe(): failed to initialize net_virtio_user3 device > vhost_user_setup(): connect error, Connection refused > virtio_user_dev_init(): backend set up fails > virtio_user_pmd_probe(): virtio_user_dev_init fails > vdev_probe(): failed to initialize net_virtio_user4 device > EAL: Bus (vdev) probe failed. > testpmd: No probed ethernet devices > > > DPDK ver: 18.11.3 > OVS ver: 2.11.1 > Host OS: debian (although this is not a actual host(bare metal), this is a > vm really) > > Any advise is appreciated. > Thanks! > -Deepak Gowda > > >