From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f177.google.com (mail-ig0-f177.google.com [209.85.213.177]) by dpdk.org (Postfix) with ESMTP id 38BA42BA0 for ; Mon, 4 Apr 2016 18:12:42 +0200 (CEST) Received: by mail-ig0-f177.google.com with SMTP id g8so36169463igr.0 for ; Mon, 04 Apr 2016 09:12:42 -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=EyvxWix2XrX3wp6xOP/lfbt3lFkbuw7lb2/UkXuYjtM=; b=S1HF9tjm8oZ9GjCLElWhihFDkFJpmwwGq61LQevbxuTc8r3HQ1sJ/A9LTKX5LCaKzK mGMPZ8s6L+/EPprah0cRBy/IwQ3SeH3Ah1vGQF3oxvJMiTWhxOVrs2b/C5k1lYevd6qM g3taNZQpihb4Tijz39l6Us3U7+Kw1N610PK9iMkhpknDeDG2mVcm4DiYJszVjPJqmYOV H3mXmPlFKUopjfShhdBJh+CSTQ2RLXDtFPKrNYIVmFQUQOgNs1Bdfx8wxCd2pseGx161 NtyJoRUF/6unuLmpxjjs+BwcF1Yedmv/1m4C4XJ8exNA6iokqKvktujZa9XV1lai1xlS iuiQ== 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=EyvxWix2XrX3wp6xOP/lfbt3lFkbuw7lb2/UkXuYjtM=; b=Ss94WwEoN/4+dGnnyeZh/+d1aTNGEY16MImxb8T9V+F+JA+r0X43MDAxV9EyccUyBV BWs8AHMui07zyZVptGk8+VRD/aFewsNG/xkGO7eio8c/k495rTzcpX7EYSl398VytE/l uBI5GZgpYAZtGkHTiyPAgEqOawLAxxFabOilubu5gM8ROaRbpeEGWheboAEfE1Jl28V0 v/D60rsvlfCjyymeFMr9iv0jeRZhJRviNh1xkch1+PaAkWkEH3ZHyo1FBakD5lH7gL2E NbqDy6b5taXqYJH3lL22rrVK882vLBghFZn2ICuLSipvKZkMiiV7htUr47ukQqzXe3Rr QCvQ== X-Gm-Message-State: AD7BkJIkXjsBXoipH8292hA+HOdNIkQb1IWZY/LqLY1xGHHmOqNkBMgdMnmInzeRyc1NHd0YotDLkCCWYo4iQA== X-Received: by 10.50.65.8 with SMTP id t8mr12494088igs.60.1459786336008; Mon, 04 Apr 2016 09:12:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.33.144 with HTTP; Mon, 4 Apr 2016 09:11:56 -0700 (PDT) In-Reply-To: References: From: Andriy Berestovskyy Date: Mon, 4 Apr 2016 18:11:56 +0200 Message-ID: To: Jason Kwon Cc: 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: Mon, 04 Apr 2016 16:12:42 -0000 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