From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f46.google.com (mail-vk0-f46.google.com [209.85.213.46]) by dpdk.org (Postfix) with ESMTP id 97F7EC2FE for ; Thu, 9 Jun 2016 00:59:51 +0200 (CEST) Received: by mail-vk0-f46.google.com with SMTP id e4so32273085vkb.1 for ; Wed, 08 Jun 2016 15:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=DFyF80QWIMI+JA/avpT9nRp59fdCbF/y3wz6e2h2jLQ=; b=HUcSvDmF7oQrmZOpUhDRZguROSwXwrH27ewoAHqcnWA9328mVodvk8C/Z4Bzht/e98 owLjer0xyrbrEkl4M8/QkGPx004iOG6iCwHEamTCaxOEmV4PTJaQN7mRXEGdr+c/dlvI /qE+cwhRPIwIAt79GD82uZsqCVmFftunUFRS+SKJSmThmrehNd4ZmCQZlDIWPuxkD9WS xgI+3Q49ZfEZ0T9RU4WW5oWT/P4ZmcsHSNV/v87c5uUE5Xmk5OktzGgFU42UGsllUUFW m5IxwVRkfCE9a9LUnKf4bay6MFNCdjIcKEJPRg4spko8LpGXMTzJdIzcnZkhhbFyrRnx DAqw== 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=DFyF80QWIMI+JA/avpT9nRp59fdCbF/y3wz6e2h2jLQ=; b=a3D4F+GkatRZkCShvER3GePbfhOYXGE4v5ypB4V3aEwfGqes4iGL0sYtc2H5fyUI8J AtKuEnU7DQfC9AQ+UlYuhNQNO8MciykNXsU6xdM8RTPm0M96YkhcZYkChWvmBVurNeab CHM4vrBw/i4hJuo3DuIqy8uOB6viLIFTpyKPXNJGscjahg4T88tNsqPfUbVqltJlPwxc 6ny32EuFfJ9k6BjQOtMXohEaXLa+yaedY4FM9QzA9FahIO0ps9KtRnIC8E4Na/hiNzfL 2W8h6my+AXDLZZhSIjvu6RHsge10UYUxYqPuQ2m+hRsSDHK1VMy/LqabaTgdjqfajMRi wjIw== X-Gm-Message-State: ALyK8tK9xRHS6TllnFmM7jsRmJvSSibFXD3VnoyiIoQtG+hprqMhxPEFVY2x5F7S4vSBAxOHivXipMkEbYGPsQ== X-Received: by 10.176.2.112 with SMTP id 103mr3507773uas.41.1465426790958; Wed, 08 Jun 2016 15:59:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.37.183 with HTTP; Wed, 8 Jun 2016 15:59:50 -0700 (PDT) In-Reply-To: References: From: Cliff Burdick Date: Wed, 8 Jun 2016 15:59:50 -0700 Message-ID: To: Andriy Berestovskyy Cc: Jason Kwon , users Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] KNI multi-queue example? 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: Wed, 08 Jun 2016 22:59:51 -0000 Andriy, which pktmbuf_pool do you use when initializing KNI? There's a separate pool for each queue on a port. On Mon, Apr 4, 2016 at 9:11 AM, Andriy Berestovskyy wrote: > Hi Jason, > > On Fri, Mar 25, 2016 at 1:00 AM, Jason Kwon wrote: > > Is there a KNI example for devices and > > drivers which support multiple queues per port? > > I guess there is no such an example, please see below. > > > Would such an implementation involve instantiating multiple KNI devices, > > each to be associated with a single RX/TX queue pair? Or would it be > > possible to associate multiple RX/TX queues of a single port to a single > > KNI device? > > Since KNI has just 1 RX/TX pair, for the NIC->KNI path you need to > modify kni_ingress() to iterate all the NIC RX queues and send all of > those packets to the KNI. > > For the KNI->NIC path you need to modify kni_egress() to distribute > the packets received from the KNI to multiple NIC TX queues (say, > based on a hash). > > Having said the above, most likely it will not get you any performance > gain, since I guess the bottleneck is KNI, not the NIC queues. > > Regards, > Andriy Berestovskyy >