From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f51.google.com (mail-wg0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id A9C1958EE for ; Fri, 26 Jul 2013 11:01:54 +0200 (CEST) Received: by mail-wg0-f51.google.com with SMTP id e12so628919wgh.18 for ; Fri, 26 Jul 2013 02:02:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=EFWmiP5e0gYXdcCxWjKLYAoQWPAL1ut0nrIUA/Tz52I=; b=Ny1gPj+4d9cbg+Ksmc2QIXyKFsV+AznFEN//pPr2apbbQAQNiXBaSB+IND3nh7wex6 V4KWb5MkY/8sagNwKn/h+l/D0udoA/oREZLMYz2zjJK7mtqECkhGCQqmZrrNq2SZdhDX TqZzEtoRTxKInw36mG+9RQK8rj1DahmydjM12r+yzF4i1yYc5uoc9qhqfRB+9WM2DMQm uXISXbUbIxaaPIIWtsaSJN61PI6UsNuxR5tkoYDuXHyq+U9S33Uj5p6N1RzM0/v0e7ZP 41uMpmA+ZGyVBeOYwqwpGIY7zdQGkqr3uhuaUPjKRO6WRWoB10TPzAG2tc7pUoHMG1wr 5xZQ== X-Received: by 10.180.75.148 with SMTP id c20mr4940566wiw.25.1374829337130; Fri, 26 Jul 2013 02:02:17 -0700 (PDT) Received: from [10.16.0.97] (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id u7sm3205854wiw.9.2013.07.26.02.02.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Jul 2013 02:02:15 -0700 (PDT) Message-ID: <51F23ADE.9070104@6wind.com> Date: Fri, 26 Jul 2013 11:01:18 +0200 From: Damien Millescamps User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: dev@dpdk.org References: <1374784721-18184-1-git-send-email-thomas.monjalon@6wind.com> In-Reply-To: <1374784721-18184-1-git-send-email-thomas.monjalon@6wind.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlhvfcxgT8TwnPFrtGw12W2xWgvJwjZrLcXycDPeomtsWurWqkdBZ7M3BellK0H9+8G314L Subject: Re: [dpdk-dev] [vmxnet3 PATCH] doc: describe kernel dependency and --vmware-tsc-map 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: Fri, 26 Jul 2013 09:01:55 -0000 On 07/25/2013 10:38 PM, Thomas Monjalon wrote: > Be more verbose on kernel dependency about version and parameters. > And add description of DPDK parameter for VMware. > > Signed-off-by: Thomas Monjalon > --- > README.rst | 17 ++++++++++++----- > 1 file changed, 12 insertions(+), 5 deletions(-) > > diff --git a/README.rst b/README.rst > index 55436a4..c718ec7 100644 > --- a/README.rst > +++ b/README.rst > @@ -49,6 +49,9 @@ HOW TO BUILD > > There are two build dependencies: Linux kernel headers and DPDK >= 1.2.3r3. > > +The kernel driver is based on vmxnet3-8.6.10 from VMware ESXi-5.0.0u2. > +So the latest supported Linux version is 3.2. > + > DPDK must be built first in order to have all its header files in the same > directory, that RTE_INCLUDE must point to. > > @@ -93,15 +96,19 @@ Other parameters have a global effect: > - ``num_rxds=int``: number of RX descriptors per queue > - ``num_txds=int``: number of TX descriptors per queue > > +Because the kernel module initializes interfaces, **it's very important that > +DPDK parameters match kernel ones**. It won't work otherwise. > + > For more information, use ``modinfo vmxnet3-usermap.ko``. > > -The values of the kernel module parameters must match the DPDK ones. > +In userland, librte_pmd_vmxnet3.so must be loaded by the DPDK using the ``-d`` > +option. > > -Because the kernel module initializes interfaces, it's very important that > -DPDK parameters match kernel ones. It won't work otherwise. > +Another interesting option is ``--vmware-tsc-map``. > +It allows VMware TSC mapping which provides an access to physical TSC. > +When this option is used, take care of setting this ESXi parameter:: > > -In userland, librte_pmd_vmxnet3.so must be loaded by the DPDK using the "-d" > -option. > + monitor_control.pseudo_perfctr = TRUE > > ``testpmd`` example for two ports, matching the ``insmod`` command above:: > ack