From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f41.google.com (mail-it0-f41.google.com [209.85.214.41]) by dpdk.org (Postfix) with ESMTP id 05EDF2B85 for ; Thu, 9 Jun 2016 13:44:50 +0200 (CEST) Received: by mail-it0-f41.google.com with SMTP id z189so151646854itg.0 for ; Thu, 09 Jun 2016 04:44:49 -0700 (PDT) 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=Yhisd3tLOs+fzFnilgJ3wbTKmzg1RMkSxxeIDz3HVPw=; b=wNrM+iZ3ZMqJH92DYv0dkOqi1UCDCFwr8SdtOKld25azdAYQvDaDeOekSL+3NmUWN1 vYY1TihXdWU1ss2fA6BSd4mPLSsQ/uKUuoBwld8jk3btEMfdoQtAYjgG2T/HgDf5CT3f OX15YAqG82e1NAcDOFUc50xjJj00rNcmRQMvCBca89Dv7InxphBoOK3hKRhl3fhY/uGn lkywxSBgCgQ+uC/gefqwCz9RTWqKHWwyL7HbaMCwE+D/M4NKmvDKN1P7hsnrP6OTaUsR rf3mqGmmqoDJ3RNmNF8RotHMIx0Ku4krdx2M8uqBnAdCuBWwZ8S/uYdMlX6staWPqJUB EKjA== 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=Yhisd3tLOs+fzFnilgJ3wbTKmzg1RMkSxxeIDz3HVPw=; b=LrlXZXeMn+WFVlo/uOGj8oXCnLsd46vCxBh5G56B7Uwa2Ird3uil7UWPuLNjh05zfV ekSpW2g5Vqg1iINYEYssycxY05SxZfZ50WHzdt3Bj+/HTg9EGY21ZRY3pdLOoF5RNdqY DtVz4Q8DVgz39ZP3tgU60fMCIS5J5kZUFAAu8N8xxgLSXdqRM8awjxn0wExLxHok5R8R Og+wNFz5AeGpbmmfTa6XEE4Llal+um3ynD0MWG2JgPH+UKHV8sJWQQN2TPj7Wad0YtN6 JLMwst/5vyC6lExONM4wf8kF/7TLrmql1/s96qPvUqF937zQmzixg7+PNTOFw3fIqP66 IvXA== X-Gm-Message-State: ALyK8tILPiLA/7Ivdh7Y+/8NKHEUjuCH0lhVPL0IZU9ZJcLABuMf5Ck6BNfUHdel5Z8xvGN7/HbTjGSEN4ccYg== X-Received: by 10.36.4.23 with SMTP id 23mr6664060itb.11.1465472689372; Thu, 09 Jun 2016 04:44:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.1.149 with HTTP; Thu, 9 Jun 2016 04:44:30 -0700 (PDT) In-Reply-To: References: From: Andriy Berestovskyy Date: Thu, 9 Jun 2016 13:44:30 +0200 Message-ID: To: Cliff Burdick Cc: Jason Kwon , users Content-Type: text/plain; charset=UTF-8 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: Thu, 09 Jun 2016 11:44:50 -0000 Hi Cliff, KNI example has just one mempool and there is a reason for that: you cannot init KNI with a mempool and then send there an mbuf from another mempool. So I suggest to use the same mempool for all the NIC queues. Andriy On Thu, Jun 9, 2016 at 12:59 AM, Cliff Burdick wrote: > 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 > > -- Andriy Berestovskyy