From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f170.google.com (mail-ig0-f170.google.com [209.85.213.170]) by dpdk.org (Postfix) with ESMTP id 57E2C2C6E for ; Mon, 7 Mar 2016 13:41:24 +0100 (CET) Received: by mail-ig0-f170.google.com with SMTP id z8so38164727ige.0 for ; Mon, 07 Mar 2016 04:41:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/UwKC8YM/R7t7ezhUgsAjcGWzVq5tjeKiiGQc6rY9fA=; b=qWPYBj2ihNFNTphcmX7VJ3o9zEVh39FtsW/sDNq2zZRdEJ/aAWs0pbZSMM5CuOBoZ/ IaQ3ueHnNRE5QvE5ErAtcNltpDSgHCnBi4x9JMQxW7K8BZddCj7ZPkHNps6jN54Q/uDh D2U3lgkUmE4x4hLSxXuFyvaud2oVYcK5SdfoDAyrHMg1htPXfItgxKjOkRzlkVqlr0IE PbZ06sTyglfcun2cDstEDN8VFYMwA59C55UH6NmhfGvMiCwE0FiZOWpfor9k4hWl+Spn hUUWry74jc6c2DzdMVXKOOSCyALa+MntXDjl1EIXmeE7BaZEj67e1eX+Gwue16LC6zUg A9pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=/UwKC8YM/R7t7ezhUgsAjcGWzVq5tjeKiiGQc6rY9fA=; b=Vnuw8XF/utXwv7UnjlNg39OW/vzjPH5CPPL6v1HE619KayOvCIFVBLnXcUXHuQVw6p Ufbk9TKPZEmA1IqaslF4MVbN0waR6XdE5Rd4g7/oiTTbDG6DQg7lLsQCzydWfq86UIlc JI2xWjqR52nMg5cflebTCCAR+J1MOA9UomOnvJSlbTkdBnINPcpKshNw5AFBu3eNBJzG JM2CbsU9e+ADqjUlTfe26gXTf+SSUPRigFdrwVJHSvvutb/CFvlROUjUUk+oeYSQHR8i X0SoEg/dmP5KSUpqzOjX0AySYVMZxCC3IUsTxwSF2+CB4Ndp92+YDOY6KUNEg/FJh58Y 8sJA== X-Gm-Message-State: AD7BkJLJjyxoQlyCZh2uegg+WFKN95rj0TqHMNKAJfU7Niuv+MGXm+l1HL79a587sOvF90v874aIk8yWcCOF/w== X-Received: by 10.50.17.71 with SMTP id m7mr11276891igd.29.1457354483921; Mon, 07 Mar 2016 04:41:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.171.11 with HTTP; Mon, 7 Mar 2016 04:41:04 -0800 (PST) In-Reply-To: References: From: Andriy Berestovskyy Date: Mon, 7 Mar 2016 13:41:04 +0100 Message-ID: To: Mostafa Salari Content-Type: text/plain; charset=UTF-8 Cc: users@dpdk.org Subject: Re: [dpdk-users] A problem with KNI in pipeline X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2016 12:41:24 -0000 Hi Mostafa, AFAIK DPDK does not support KNI ports, despite the documentation states it is. In our project we had to implement our own KNI port reader/writer... Andriy On Sun, Mar 6, 2016 at 7:05 PM, Mostafa Salari wrote: > Hello, > I want to create a pipeline to act as KNI port, called *pipeline_kni*, such > that: > > 1. A pipeline_kni instance receives packets from its input ports, then > deliver them to Linux kernel. > 2. pipeline_kni instance receive packets from linux and put them on > pipeline output ports. > > > The problem is that I want to identify actual port id corresponding to a > input port of pipeline! Because I need to pass this information to > rte_eth_dev_info_get(*port_id* , &dev_info) to retrieve NIC information > (such as PCI adrs, ...) > > I'm new to using pipeline! Is there any other standard way to do this? > > Its a point to KNI in the link below in Table 23.1 > : > http://dpdk.org/doc/guides/prog_guide/packet_framework.html > What does it mean? Is there a pipeline input/output port of type KNI? If > so, how can we determine it (for example) in *pktq_in* field in a > configuration file? > > Thanks, > Regards -- Andriy Berestovskyy