From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <8002onavi@gmail.com> Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 21BE9AB06 for ; Mon, 9 Jun 2014 14:54:26 +0200 (CEST) Received: by mail-wg0-f47.google.com with SMTP id k14so4751844wgh.6 for ; Mon, 09 Jun 2014 05:54:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=YlRBTE7UrfHdYdY8bCUo3TAuVkIuS26t65Ie5h4l1No=; b=HqwW7e7RMeEx3qn8ii8tKCF0TrK4A//WEA+f7/nUwa4b8cTmaCtvfgCRkXSvbHX14e OdDmaCcVc5t22aJdUEEfRV4kMd6yPZTapteQO7+OX1qkobk9NZnR9krjP9P2LYP8P4p6 zEO65E8ZTkSL7417vGJt3yw5CtEa8YG4uysNz3BoEvW9QpOFjci1BbhJWfAcG5cFlTPo mZtRL8nXG6Azt0zTfxNX5hCYyzWRr6XNDFGBYXpFu+GrnSNX0819JiwR/rkDeO3fRxJr vLNhRpsIbmGSjbe5bmnAMOX9iU/DTH3kN3SAE1PBI2dHJmhCZiGsTYa4+MV7dFzIlBMC Z0Tw== X-Received: by 10.14.104.200 with SMTP id i48mr129567eeg.24.1402318480100; Mon, 09 Jun 2014 05:54:40 -0700 (PDT) Received: from localhost.localdomain (e178189238.adsl.alicedsl.de. [85.178.189.238]) by mx.google.com with ESMTPSA id i2sm44867109eem.11.2014.06.09.05.54.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Jun 2014 05:54:39 -0700 (PDT) Message-ID: <5395AE7E.3080907@gmail.com> Date: Mon, 09 Jun 2014 14:54:22 +0200 From: Ivano Cerrato <8002onavi@gmail.com> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: "dev@dpdk.org" Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: [dpdk-dev] kni creation 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: Mon, 09 Jun 2014 12:54:26 -0000 Hello, the function rte_kni_alloc, which creates a kni interface, requires "const struct rte_kni_conf * conf" as second parameter. This struct contains, among the others, the elements "add" and "id". In the example of kni provided with dpdk, they are set to the pci address and id of a physical port. I tried do comment these assignments in the example code, and everything seems to work without problems. Hence, I don't understand what is the purpose of these two parameters. Someone could explain it to me? Regards, Ivano