From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yh0-f43.google.com (mail-yh0-f43.google.com [209.85.213.43]) by dpdk.org (Postfix) with ESMTP id 43DC57F0D for ; Tue, 11 Nov 2014 01:50:28 +0100 (CET) Received: by mail-yh0-f43.google.com with SMTP id a41so2842214yho.30 for ; Mon, 10 Nov 2014 17:00:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=FQ7EMFV9DnmYhhVHe/cjYFm+6/+x/yuMHJjGH6r49eY=; b=RqxAd6TZFNg8ZY0QgFXljUw7lbcFzMnoka1r2Yt3kDgwESbaXpoWRc5XtY7vEpyBON mWpw/w1A0ttHL/GqtxF1rKmS8uIhBb5EnARqY6s3lI1XafpPaVBRL3kqTlb5B2WdEC6Q MPi7SkeNGLBLSYkqO7WHTUURDFbsneriFAPr9xKOk+1R4+qYG5fWksbPEHX2IBoYoJnL 3kGcAz34pfE5cizvZ6+Fr3hPRNRnZnWwdmibKSCUlKt1gbX7vAE4UroYjkeShg1D/6GS 4voMtGkbnIoMmO5NYzUlXaortd/Y1Cs0S4jo8P0t/WY/xS7IFXpaJkoXxC3nn5iAXi/y IKbA== X-Gm-Message-State: ALoCoQmD1JJ/vHtSSf90lV6+tLyK6Zxdw9nMXCNnlTgHZQf8X2wb1dmtW+arVnkQyRAx2T95TowM MIME-Version: 1.0 X-Received: by 10.220.97.207 with SMTP id m15mr8319526vcn.0.1415667615089; Mon, 10 Nov 2014 17:00:15 -0800 (PST) Received: by 10.31.41.83 with HTTP; Mon, 10 Nov 2014 17:00:15 -0800 (PST) In-Reply-To: References: Date: Mon, 10 Nov 2014 17:00:15 -0800 Message-ID: From: Aziz Hajee To: "Patel, Rashmin N" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] vmware vmxnet3-usermap AND DPDK VMXNET3 PMD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2014 00:50:29 -0000 Rashmin, Since I do need the jumbo, I use the vmxnet3-plugin you described, i.e. (1) sudo insmod ./vmxnet3-usermap.ko enable_shm=2,2 num_rqs=1,1 num_rxds=2048 num_txds=2048 and (2) when running the application, use in the args list: "-d", "librte_pmd_vmxnet3.so" Does the above two piece mean vmxnet3-plugin I do see my vmxnet3 device from the dump, rte_eal_pci_dump(); but the 'nb_ports' in DPDK never gets incremented rte_eth_dev_count() returns zero. so all the other api fails, if (port_id >= nb_ports) { PMD_DEBUG_TRACE("Invalid port_id=%d\n", port_id); return; } 0000:03:00.0 - vendor:15ad device:7b0 00000000d2404000 0000000000001000 00000000d2403000 0000000000001000 00000000d2400000 0000000000002000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00000000d4400000 0000000000010000 0000:0b:00.0 - vendor:15ad device:7b0 00000000d2504000 0000000000001000 00000000d2503000 0000000000001000 00000000d2500000 0000000000002000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00000000d4500000 0000000000010000 DPDK: No Ethernet ports (rte_eth_dev_count() returns zero) PMD: rte_eth_dev_info_get: Invalid port_id=0 PMD: rte_eth_dev_configure: Invalid port_id=0 PMD: rte_eth_dev_info_get: Invalid port_id=0 PMD: rte_eth_dev_configure: Invalid port_id=0 So when using not using DPDK PMD for VMXNET3, what am i missing, for the the DPDK to know the nb_ports, How will the rte_eth_dev_start(portid) in DPDK library know ? rte_pmd_init_all() will not have the init the Intel DPDK PMD , RTE_LIBRTE_VMXNET3_PMD = n in config. #ifdef RTE_LIBRTE_VMXNET3_PMD if ((ret = rte_vmxnet3_pmd_init()) != 0) { RTE_LOG(ERR, PMD, "Cannot init vmxnet3 PMD\n"); return (ret); } If I make RTE_LIBRTE_VMXNET3_PMD = y, then I am using the Intel DPDK PMD and no jumbo. Thanks, aziz On Fri, Nov 7, 2014 at 8:53 AM, Patel, Rashmin N wrote: > Hi Aziz, > > Yes, you're right DPDK VMXNET3-PMD in /lib/librte_pmd_vmxnet3 does not > support mbuf chaining today. But it's a standalone bsd driver just like any > other pmd in that directory, it does not need vmxnet3-usermap.ko module. > > Now there is another vmxnet3 solution in a separate branch as a plugin, > which must have vmxnet3-usermap.ko linux module(1), and a user space > interface piece(2) to tie it to any DPDK application in the main branch. > (1) and (2) makes the solution which is known as vmxnet3-plugin. It's been > there for a long time just like virtio-plugin, I don't know who uses it, > but community can *reply* here if there is still any need of a separate > solution that way. > > I'm in favor of consolidating all those version into one elegant solution > by grabbing best features from all of them and maintain one copy. I'm sure > that developers contributing from VMware would also support that idea > because then it makes easy to maintain and debug and bug fix and most > importantly avoid such confusion in future. > > Thanks, > Rashmin > > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Aziz Hajee > Sent: Thursday, November 06, 2014 5:47 PM > To: dev@dpdk.org > Subject: [dpdk-dev] vmware vmxnet3-usermap AND DPDK VMXNET3 PMD > > I am using the dpdk1.6.0r1 > I could not find a complete clarification, sorry if missed. > VMXNET3 PMD > ============ > I have enabled the VMXNET3 PMD in the dpdk. > # Compile burst-oriented VMXNET3 PMD driver # > > CONFIG_RTE_LIBRTE_VMXNET3_PMD=y > CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_INIT=y > CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_RX=n > CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_TX=n > CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_TX_FREE=n > The Intel DPDK VMXNET3 PMD driver does not support mbuf chaining, and I > have to set NOMULTSEGS for the vmxnet3 interface init to succeed. > tx_conf.txq_flags = ETH_TXQ_FLAGS_NOMULTSEGS Is there a later version of > DPDK that supports multiseg for the dpdk > VMXNET3 PMD. > > vmware vmxnet3-usermap AND DPDK VMXNET3 PMD > ========================================= > Is the vmxnet3-usermap.ko module driver also needed ? (appears that I > need, otherwise the eal initialise fails. > sudo insmod ./vmxnet3-usermap.ko enable_shm=2,2 num_rqs=1,1 num_rxds=2048 > num_txds=2048 > > I do not understand if VMXNET3 PMD is there, what is the purpose of > /vmxnet3-usermap.ko/vmxnet3-usermap.ko ? > > From some responses i saw that the following ifdef RTE_EAL_UNBIND_PORTS is > also need to be removed in lib/librte_pmd_vmxnet3/vmxnet3_ethdev.c ? > { > .name = "rte_vmxnet3_pmd", > .id_table = pci_id_vmxnet3_map, -#ifdef RTE_EAL_UNBIND_PORTS > +// #ifdef RTE_EAL_UNBIND_PORTS > .drv_flags = RTE_PCI_DRV_NEED_IGB_UIO, -#endif > +// #endif > }, > .eth_dev_init = eth_vmxnet3_dev_init, > .dev_private_size = sizeof(struct vmxnet3_adapter), > > thanks, > -aziz >