From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) by dpdk.org (Postfix) with ESMTP id 7679A30E for ; Wed, 29 May 2013 17:07:40 +0200 (CEST) Received: by mail-pd0-f169.google.com with SMTP id y11so9047120pdj.14 for ; Wed, 29 May 2013 08:07:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=13Mt52EbNfMxSW9uZ8ssYdfpLUABk24bsyTg6I3KSMM=; b=Z/dQkJkSUFxc70uT2uaSBYfkxHD3mUyS1QuLIsaoeTUHoDjjodbdCph/ZqZt8NvnqW 0jafqi1850hz6KRI1sRhYWRbQRUE7mdipLd3BccvTrUeMMsTFlyW3FfkUH0cLp0bFpBG hIgqU4oU7tCo3KuD7pbyPEFxbIUe2gYt/iIDhVCy/A/KnNQSf1/JGRO5iXVCVWL83I2+ 7liojZxpl+VuRotdDPfCem+aYl93HB6tQ7zXJeowLtSlsoYKIuvgX2gnekHJkPYDlJXp SX3jgd8ouu26taHhTSBKOh2a2PpwnflMN7R5ESmz43/IPXkyPj/PaxGONrNeIwRblkQy nS9g== X-Received: by 10.68.171.226 with SMTP id ax2mr3260844pbc.201.1369840066181; Wed, 29 May 2013 08:07:46 -0700 (PDT) Received: from nehalam.linuxnetplumber.net (static-50-53-71-109.bvtn.or.frontiernet.net. [50.53.71.109]) by mx.google.com with ESMTPSA id 10sm37698941pbm.0.2013.05.29.08.07.45 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 29 May 2013 08:07:45 -0700 (PDT) Date: Wed, 29 May 2013 08:07:42 -0700 From: Stephen Hemminger To: Antti Kantee Message-ID: <20130529080742.7d683259@nehalam.linuxnetplumber.net> In-Reply-To: <51A60F4B.4090908@iki.fi> References: <51A60F4B.4090908@iki.fi> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnbLpm5Stxaf+NbhH0gfRTh9GPy8QWTE708w5cnlj7AepbKSJ75bXaiewyQ8kOjG3THUf3j Cc: dev@dpdk.org Subject: Re: [dpdk-dev] plumbing say test-pmd for non-Intel NICs(drivers) 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: Wed, 29 May 2013 15:07:40 -0000 On Wed, 29 May 2013 16:23:07 +0200 Antti Kantee wrote: > On 29.05.2013 10:27, somnath kotur wrote: > > Hi, > > Pls pardon me if this has been asked/addressed in another thread. Just > > wanted to know what i need to do if i wanted to plumb my non-Intel 10G NIC > > into the DPDK , For instance just into the test-pmd framework would also be > > fine ? > > Any pointers /tips welcome? > > Hi, > > In short, you'd have to write/port a driver for the NIC. I very > recently did this for the purpose of testing DPDK in a virtual machine > (*). That said, I got off easy since almost all of the driver code > already existed, and I only had to make minor edits and redo the parts > involved with DMA descriptors. > > If you have an understanding of how NIC drivers work, it will take a > varying amount of effort depending on the amount of driver you can > copypaste from other sources. However, there's no way around having to > know how drivers work. > > - antti > > *) https://github.com/anttikantee/dpdk-wm I have some patches to get rid of some of the Intel driver assumptions. I will rebase and post them. They aren't a big deal just some of the hardcoded flag values are a nuisance.