From: Andriy Berestovskyy <aber@semihalf.com>
To: Cliff Burdick <shaklee3@gmail.com>
Cc: Jason Kwon <m43kwon@gmail.com>, users <users@dpdk.org>
Subject: Re: [dpdk-users] KNI multi-queue example?
Date: Thu, 9 Jun 2016 13:44:30 +0200 [thread overview]
Message-ID: <CAOysbxopEyHp+Odz-DvL9HR2M3CuAUz6Fbup_BYxNPauHgqDbw@mail.gmail.com> (raw)
In-Reply-To: <CA+Gp1nYcJfF3Vdxf0j0nF9N0AbEC_bFaWR+3SAQgXuBSOR5bng@mail.gmail.com>
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 <shaklee3@gmail.com> 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 <aber@semihalf.com>
> wrote:
>>
>> Hi Jason,
>>
>> On Fri, Mar 25, 2016 at 1:00 AM, Jason Kwon <m43kwon@gmail.com> 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
prev parent reply other threads:[~2016-06-09 11:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-25 0:00 Jason Kwon
2016-04-04 16:11 ` Andriy Berestovskyy
2016-06-08 22:59 ` Cliff Burdick
2016-06-09 11:44 ` Andriy Berestovskyy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOysbxopEyHp+Odz-DvL9HR2M3CuAUz6Fbup_BYxNPauHgqDbw@mail.gmail.com \
--to=aber@semihalf.com \
--cc=m43kwon@gmail.com \
--cc=shaklee3@gmail.com \
--cc=users@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).