From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 1EE56A0A02;
	Wed, 13 Jan 2021 18:10:47 +0100 (CET)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id D4EDB140E6B;
	Wed, 13 Jan 2021 18:10:46 +0100 (CET)
Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com
 [209.85.167.44])
 by mails.dpdk.org (Postfix) with ESMTP id 99B5C140E69
 for <dev@dpdk.org>; Wed, 13 Jan 2021 18:10:45 +0100 (CET)
Received: by mail-lf1-f44.google.com with SMTP id m12so3839864lfo.7
 for <dev@dpdk.org>; Wed, 13 Jan 2021 09:10:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=networkplumber-org.20150623.gappssmtp.com; s=20150623;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=wnubgyiojUXQ0D/XA4RX08psoE+yVqpeM3twAAaLHrU=;
 b=KIY/kwcb823aLOxGR14LTiniiJP89o7i5dTfL/tHPpUpZ1RmgSfjK7htW7qta5ecI7
 3r+VUiX3Idrvam6oJ+7zL3YxbgcWPoGKkDdG34kuwj1Y68QSOCoKovB7NDuHXBn76w15
 yGDN6DB9v2pxhJ8wyGy0yWTGmJzfzQtMiv0wApv1GI5T0fhM6x4RuieLwehtFo1rL/Dk
 I2tcUcQahfS6ugIXPF3UUSYsVrLKMZ+H2hQCqgYYk2ZKHNxZ4s2SaoxRtTABJ/zEkUFy
 84Cb9OPQ1ABe3ixp0zgVYgTWAy1qc8ae+EyovpzAkzPQnp1wNP+VBQzzr9FLW44gow9V
 NdXw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=wnubgyiojUXQ0D/XA4RX08psoE+yVqpeM3twAAaLHrU=;
 b=JaPzb9a55Cy3vCyH0K/WnqkiH5iZ8C/sJ2oBQlOoBr3PSQmxbsmLcP3CKgrSMCQgRC
 fCl8nq0bD/VATZq0YjgCTtA6SbgAv4l3V3sI0h2BFEQL0y9U4og+BDTFhIj6KJEijcEA
 fT82YieF7KJ84S2oY6xdatB7ysBmqH/E8us6Ro5qfxjJDsJFtAh7aIJwDSy7C0ehXDe0
 IWVsu5m47wzLL14DvhpbvysoopSXJqj+AJX/kAROvrth9Ii6hoqpQxHLT7RQUKcbnA8j
 Oy6TvDaGoMF3kxiIpfYt/YlH6SWKnfEVzMRm5yr/604KQfKjDgC1GYqThZXV9qQJTwjw
 u6xw==
X-Gm-Message-State: AOAM532SqwwG830/gRxmK6/ggbVSO9tU8LQE0uh24+mkaGEqb/v8KPOA
 pNFgQu6HIsNT/gKEG5HFRGFq4YP291OHtTv6ujfx4A==
X-Google-Smtp-Source: ABdhPJyTMysNQ3v+/Dvciu7Q7WZAF2Dsz19G2OSrUfJXjxmjxYWsQcL19GPMNkFjGz2N57F0NxDS7pyJTjQdl/JZ9Mc=
X-Received: by 2002:a05:6512:287:: with SMTP id
 j7mr1327431lfp.541.1610557845209; 
 Wed, 13 Jan 2021 09:10:45 -0800 (PST)
MIME-Version: 1.0
References: <1699913.2mAdEQRYyP@thomas>
In-Reply-To: <1699913.2mAdEQRYyP@thomas>
From: Stephen Hemminger <stephen@networkplumber.org>
Date: Wed, 13 Jan 2021 09:10:33 -0800
Message-ID: <CAOaVG14bS-Em3eww53EDSGQe-z5JZN-v7YJre5-H13ywCNzNtg@mail.gmail.com>
To: Thomas Monjalon <thomas@monjalon.net>
Cc: dev@dpdk.org, Ferruh Yigit <ferruh.yigit@intel.com>,
 kevin.traynor@redhat.com, 
 bruce.richardson@intel.com, hemant.agrawal@nxp.com, jerinj@marvell.com, 
 olivier.matz@6wind.com, maxime.coquelin@redhat.com
Content-Type: text/plain; charset="UTF-8"
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
Subject: Re: [dpdk-dev] KNI alternatives
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

Last time I tried.
Virtio user was as fast as KNI and consumed less cpu. Was seeing 10mpps
Tap was much slower. Like 1mpps.

Vpp uses virtio user.

Sorry for top post. Only have phone internet

On Wed, Jan 13, 2021, 9:06 AM Thomas Monjalon <thomas@monjalon.net> wrote:

> Hi,
>
> As discussed today in the techboard meeting, KNI has probably
> better alternatives today without using an out-of-tree module.
> Virtio-user is a good candidate to replace KNI.
> What is the performance of TAP?
> Is there a way to leverage af_packet, af_xdp, or even pcap interfaces?
>
> In order to avoid using the KNI out-of-tree module,
> we should make the librte_kni compatible with an other interface.
> The big plan is then to move the KNI module out of the main DPDK repo,
> as we did for igb_uio.
>
> The first step of this plan might be to document pros & cons
> of the KNI alternatives inside the KNI documentation:
>         https://doc.dpdk.org/guides/prog_guide/kernel_nic_interface.html
>
> As a start, this doc should be better referenced:
>
> https://doc.dpdk.org/guides/howto/virtio_user_as_exceptional_path.html
>
> Note: I won't do this update myself, so feel free to step up!
> Thanks
>
>
>