From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CF7D6A034F; Mon, 30 Aug 2021 15:50:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5525F40E01; Mon, 30 Aug 2021 15:50:11 +0200 (CEST) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) by mails.dpdk.org (Postfix) with ESMTP id 85010406A3 for ; Mon, 30 Aug 2021 15:50:10 +0200 (CEST) Received: by mail-lf1-f52.google.com with SMTP id c8so18804894lfi.3 for ; Mon, 30 Aug 2021 06:50:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=nzGTcJthUUfVa6KXuxkcwiHl9ionu5HGtT863ylgDk4=; b=TFxJlt1HLolL8ELnd/yK/S7Jz3cu2jRDedKlqXbtc5VKPAT6d7CbcWFYLaTLK4Mvv+ QX/kYueEsVcM3L28ulENDehNEhd53amDAdQnE5ujMeQ+DPL/SQwi2AmEzP0TDAxd+iWs 3iDmZU6gdcbiIH8JaOkPw8VeLYF59Tf8hpAkPpfbxiBEjb0FiOhS+6RMw5jV5jcbXJ6c AKtQYQQSPD1uU5QBvghEmKvHFAnAaiX2TSDP4nT2qNpSt7JRJHI1nTrbshgWSf+g+NOi 5KJ0g7SSPanFYWmh1RN7fGVhK6RdXt40LhnpUAiHWy2DM1NVPXc8lNJB0bMjOu53LuUt WNCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=nzGTcJthUUfVa6KXuxkcwiHl9ionu5HGtT863ylgDk4=; b=pr9nItow5KpQLW0167ZnXOsfHIAO9dpokg0J0l7cmSbh1DB+Md3SluNSufFh5h5cGm lEpGbIpUFbhFBnoNKG10Xxzir+rvUc71tFNJ59Rgvk8oE/TtDryjNE8uDg5gmZXtjoe0 yReNl3wc/wPtH2Yug1L96kVxcM4dEs5XTbv+iJthqCl0jrBmR4KYr+dXR4SqTQ2n/VXE 8BW/o1q7IBxSDqnNRpHDKvgKThbt4ajxpR9hQQvsPSV3Ijy41D9ZGgAPjHfM9usus4I9 WrCj3g9GwN8STxqmyyfRHSQ4sEAlcPtAFU4tJNHDA44tsYy7lwPbUmdiUcbbWpnwqbuG O2hg== X-Gm-Message-State: AOAM530SkR4l97/2MBw8GAgfzGd0ornbQ0X5fMNy58vkQr2UwvSGRQXw 9T+7ljwlKmo1CM5g70BJUIJKnTWE/BpyjuGQxWlwfuoGNJHfgA== X-Google-Smtp-Source: ABdhPJxQTUyuQiMoau+pXYxUd5qCXVTXje7+YQjFs2Dc7g+GHUIJ64Et5zpN1FlFHzzxSjFPgyeKiGIZurYUw1U0bD0= X-Received: by 2002:ac2:414b:: with SMTP id c11mr17516195lfi.0.1630331409440; Mon, 30 Aug 2021 06:50:09 -0700 (PDT) MIME-Version: 1.0 From: William Tu Date: Mon, 30 Aug 2021 06:49:33 -0700 Message-ID: To: dpdk-dev Cc: Maxime Coquelin Content-Type: text/plain; charset="UTF-8" Subject: [dpdk-dev] Question about virtio-net device on google cloud engine X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" Hi, I'm testing DPDK on virtio device using a Linux VM (ubuntu 21.04) from google cloud. But I couldn't get it to work. I wonder 1. Is "no modern virtio pci device found." expected? 2. Should I use vfio-pci, instead uio_pci_generic? 3. maybe on the public cloud, promiscuous mode is not allowed? so "virtio_dev_promiscuous_enable(): host does not support rx control" Below are my steps, thanks in advance: $ clone the latest dpdk, commit bfd3c352eb9 $modprobe uio_pci_generic $ ./usertools/dpdk-devbind.py -u 00:05.0 $ ./usertools/dpdk-devbind.py -b uio_pci_generic 00:05.0 $ ./usertools/dpdk-devbind.py -s Network devices using DPDK-compatible driver ============================================ 0000:00:05.0 'Virtio network device 1000' drv=uio_pci_generic unused=vfio-pci ... $ dpdk-hugepages.py --setup 1G $ meson build; ninja -C build $ ./build/app/dpdk-testpmd EAL: Detected 4 lcore(s) EAL: Detected 1 NUMA nodes EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'PA' EAL: No available 1048576 kB hugepages reported EAL: VFIO support initialized EAL: PCI device 0000:00:05.0 on NUMA socket -1 EAL: probe driver: 1af4:1000 net_virtio EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:05.0 (socket 0) EAL: PCI memory mapped at 0x1100800000 virtio_read_caps(): [80] skipping non VNDR cap id: 11 virtio_read_caps(): no modern virtio pci device found. vtpci_init(): trying with legacy virtio pci. EAL: pci_uio_ioport_map(): PIO BAR 0000c000 detected EAL: PCI Port IO found start=0xc000 virtio_ethdev_negotiate_features(): guest_features before negotiate = 8000005f10ef8028 virtio_ethdev_negotiate_features(): host_features before negotiate = 204399a7 virtio_ethdev_negotiate_features(): features after negotiate = 438020 virtio_init_device(): PORT MAC: 42:01:0A:01:01:05 virtio_init_device(): link speed = -1, duplex = 1 virtio_init_device(): config->max_virtqueue_pairs=1 virtio_init_device(): config->status=1 virtio_init_device(): PORT MAC: 42:01:0A:01:01:05 virtio_init_queue(): setting up queue: 0 on NUMA node 0 virtio_init_queue(): vq_size: 4096 virtio_init_queue(): vring_size: 110596, rounded_vring_size: 114688 virtio_init_queue(): vq->vq_ring_mem: 0x1b3b84000 virtio_init_queue(): vq->vq_ring_virt_mem: 0x100384000 virtio_init_vring(): >> virtio_init_queue(): setting up queue: 1 on NUMA node 0 virtio_init_queue(): vq_size: 4096 virtio_init_queue(): vring_size: 110596, rounded_vring_size: 114688 virtio_init_queue(): vq->vq_ring_mem: 0x1b3b4f000 virtio_init_queue(): vq->vq_ring_virt_mem: 0x10034f000 virtio_init_vring(): >> virtio_init_queue(): setting up queue: 2 on NUMA node 0 virtio_init_queue(): vq_size: 64 virtio_init_queue(): vring_size: 4612, rounded_vring_size: 8192 virtio_init_queue(): vq->vq_ring_mem: 0x1b3abc000 virtio_init_queue(): vq->vq_ring_virt_mem: 0x1002bc000 virtio_init_vring(): >> eth_virtio_pci_init(): port 0 vendorID=0x1af4 deviceID=0x1000 ... virtio_dev_configure(): configure virtio_dev_tx_queue_setup(): >> virtio_dev_rx_queue_setup(): >> virtio_dev_rx_queue_setup_finish(): >> virtio_dev_rx_queue_setup_finish(): Allocated 512 bufs virtio_dev_tx_queue_setup_finish(): >> virtio_dev_start(): nb_queues=1 virtio_dev_start(): Notified backend at initialization set_rxtx_funcs(): virtio: using standard Tx path on port 0 set_rxtx_funcs(): virtio: using mergeable buffer Rx path on port 0 virtio_dev_link_update(): Get link status from hw virtio_dev_link_update(): Port 0 is up virtio_dev_promiscuous_disable(): host does not support rx control virtio_dev_allmulticast_disable(): host does not support rx control Configuring Port 0 (socket 0) Port 0: 42:01:0A:01:01:05 Checking link statuses... virtio_dev_promiscuous_enable(): host does not support rx control Error during enabling promiscuous mode for port 0: Operation not supported - ignore --- lspci -vv 00:05.0 Ethernet controller [0200]: Red Hat, Inc. Virtio network device [1af4:1000] Subsystem: Red Hat, Inc. Virtio network device [1af4:0001] Physical Slot: 5 Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR-