From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f195.google.com (mail-qk0-f195.google.com [209.85.220.195]) by dpdk.org (Postfix) with ESMTP id BA7FD1B2EA for ; Wed, 1 Nov 2017 22:11:43 +0100 (CET) Received: by mail-qk0-f195.google.com with SMTP id b15so4401402qkg.9 for ; Wed, 01 Nov 2017 14:11:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=IBpjCyIUtASQZiTd618JOjOaF9OVa3mT10RZEXOlZns=; b=kPGxlXKuD4EvdfCxE9ORDKwNUGxMVZLuBJHud7648/eqgUZPk+nOV9Wj2Fj4nOLopA uLGRyc8F4sGIAHVgJdXUi4ODo2apOQCp4xdqAMVM/ALQwhER8md8QlecDf3ajLE2YcOe iRBFUtPUNpsWuQSjVXFu/tMiCmGz+pxwzxCHX1zYd0RTHH7q3iySBFqOuZODsAoIO0FJ NmdMmBA3swR2f7btw+wX/kcKjSnrkgxVGJzWXYfVabaexN9foDgph+Ta60vbVqJl42KI 8KrBL1YkKaEbxe68VqbQm6W+/6Al5uol2OOzEnD8TJIc27/9tbr+WjcnHlscC94BghT+ k5kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=IBpjCyIUtASQZiTd618JOjOaF9OVa3mT10RZEXOlZns=; b=uTiqNE0G7/Q28mI/32b2TMx4hJmp136fJ0OdXZeL1uJNCFd2EpDDlspWNnXL5KsGr+ hGlfVpGtMiEP4Iohmepk5P4b+sb9st/PqtUumGhONpcZyhZ3WIiCuURPqSqwawql8QOT nH1/uN3ySciOiQ+KyJ3crRfqx/f9YGEiT4ZTXGltT19r+bbHl2S+uOAlRaAjbMPaWXyA Y6qTWZg2xC9LvX04xSufWvcUVxopmhyWYyOl+A0ZFeb/cHDjO9rY9Tt3DZgB/FMZqb10 951PfJqQDhBediH0hsfUqeoP+v07xJQYYAiBaTzM0yxsuIglW2V+kjjIclC8uuUtRYLN Im1g== X-Gm-Message-State: AJaThX5q2k/hSG7U422GuIXPLsxv4QOMAiek9gX8ObEAAvVIj72LyKYG r6hu/mqkkAkd6ZezYTZDYirvxX0Q8CdOkpmVwO1wAg== X-Google-Smtp-Source: ABhQp+SvNUAJ1oy0LJ0cNZvaf/rpeseRlzEQs2cyZaY6qjaZt8Ua2vgZHMRYNojq9m/Ne+hTpIY3RgllWhx8OF65BcA= X-Received: by 10.55.215.155 with SMTP id t27mr1521114qkt.231.1509570699722; Wed, 01 Nov 2017 14:11:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.106.71 with HTTP; Wed, 1 Nov 2017 14:11:09 -0700 (PDT) In-Reply-To: <20171031225048.34120581@shemminger-XPS-13-9360> References: <20171031225048.34120581@shemminger-XPS-13-9360> From: James Bensley Date: Wed, 1 Nov 2017 21:11:09 +0000 Message-ID: To: users@dpdk.org, Stephen Hemminger Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-users] DPDK support for 82579 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Nov 2017 21:11:44 -0000 On 31 October 2017 at 21:50, Stephen Hemminger wrote: > First off, I assume the device works for normal Linux networking. > Then check the PCI-id value for the device and see if it is present in drivers/net/e1000 > in DPDK. If not, then it maybe as simple as adding the necessary ID value to the > table. Also, check current git. > > It maybe more complex where some PHY code has to be backported from > BSD into DPDK. Unfortunately, the device support in DPDK lags behind Linux > and BSD. There are many variants and even Intel doesn't have resources to > keep DPDK up to all the current PCI id values. Hi Stephen, That has worked! Yes this is a working NIC built into a laptop. bensley@ubuntu-laptop:/opt/dpdk/dpdk-17.08/drivers/net/e1000$ lspci -nn | grep Eth 00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM Gigabit Network Connection [8086:1502] (rev 04) bensley@ubuntu-laptop:/opt/dpdk/dpdk-17.08/drivers/net/e1000$ grep -r 1502 * base/e1000_hw.h:#define E1000_DEV_ID_PCH2_LV_LM 0x1502 ^ This PCI-id is alread "known" but not mapped to the driver so I just added the two lines to em_ethdev.c below, recompiled DPDK and Pktgen and it works... bensley@ubuntu-laptop:/opt/dpdk/dpdk-17.08/drivers/net/e1000$ grep -r E1000_DEV_ID_PCH2_LV_LM * base/e1000_hw.h:#define E1000_DEV_ID_PCH2_LV_LM 0x1502 base/e1000_api.c: case E1000_DEV_ID_PCH2_LV_LM: em_ethdev.c: { RTE_PCI_DEVICE(E1000_INTEL_VENDOR_ID, E1000_DEV_ID_PCH2_LV_LM) }, em_ethdev.c: case E1000_DEV_ID_PCH2_LV_LM: Thanks very much for your help! Cheers, James.