From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by dpdk.org (Postfix) with ESMTP id 9C7DC7E78 for ; Wed, 15 Oct 2014 11:34:06 +0200 (CEST) Received: by mail-wi0-f171.google.com with SMTP id em10so12401578wid.4 for ; Wed, 15 Oct 2014 02:41:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version:content-type :content-transfer-encoding; bh=edHEinQTKcowzewloB9h2hoMGXLMi+vCrc/jXLkE8QY=; b=aFhC6wp3L0Kh3OXWMHmbR2UlYUFZBwMZdEAX4+TIbPHmdiHp6DPEVBEzTLn4aU9K1B A69ArxY79tLf73bcxdrR71BqWUCaFgbC85R1NTDB4+scJXRbeTi4qs7Xj7Xj+WWCjJmc jVcK9OxUV12HYva8MgxYez8e5rEvVC4x494APLB/sBpfkw+5wMu+plCm47gRWEWIOUnP XD1vAPn8exbNAhCS6/6mEpOI4qpMsgVmMcosvjAq9GFE8IzsJl0cRpeI4NP+IrKiX+oc SWR9d2KAMPSvDRo3mabuICeGbXiCZmfXnomWXrQ+fsQ6Hb0EJvO7hB1GINwbIrNPa7U1 2TRg== X-Gm-Message-State: ALoCoQkbcxJLmy7iu0/hejZO5whIC5x1FDjoID+VLs6ozUnTYwddpUOwaL9yg9PxgS36ERGgPQHf X-Received: by 10.180.205.171 with SMTP id lh11mr11065467wic.66.1413366114830; Wed, 15 Oct 2014 02:41:54 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id he2sm18729978wib.4.2014.10.15.02.41.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Oct 2014 02:41:54 -0700 (PDT) From: Thomas Monjalon To: "Zhang, Helin" Date: Wed, 15 Oct 2014 11:41:39 +0200 Message-ID: <1865184.LnymqLhuvV@xps13> Organization: 6WIND User-Agent: KMail/4.14.1 (Linux/3.16.4-1-ARCH; KDE/4.14.1; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: dev@dpdk.org Subject: Re: [dpdk-dev] i40e: Steps and required configurations of how to achieve the best performance! 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, 15 Oct 2014 09:34:06 -0000 Hi Helin, 2014-09-19 03:43, Zhang, Helin: > My idea on it could be, > 1. Write a script to use =E2=80=98setpci=E2=80=99 to configure = pci configuration. > End user can decide which PCI device needs to be changed. > 2. Add code to change that PCI configuration in i40e PMD only, = as > it seems nobody else need it till now. The second solution seems better because more integrated and automatic.= But I would like to have some EAL functions to access to PCI configurat= ion. These functions would have Linux and BSD implementations. Then the PMD could change the configuration if it's allowed by a run-ti= me option and would notify the change with a warning/log. Thanks for keeping us notified of your progress. --=20 Thomas