From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <users-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id C39A9A0093
	for <public@inbox.dpdk.org>; Sat, 25 Jun 2022 23:09:08 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 5776040E03;
	Sat, 25 Jun 2022 23:09:08 +0200 (CEST)
Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com
 [209.85.214.173])
 by mails.dpdk.org (Postfix) with ESMTP id 5E0A340A89
 for <users@dpdk.org>; Sat, 25 Jun 2022 23:09:07 +0200 (CEST)
Received: by mail-pl1-f173.google.com with SMTP id m2so5004188plx.3
 for <users@dpdk.org>; Sat, 25 Jun 2022 14:09:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=networkplumber-org.20210112.gappssmtp.com; s=20210112;
 h=date:from:to:cc:subject:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=3k+sfjddaj5e38QuDAxBDl6J0Tpym6MzJIpaDQsGWNE=;
 b=aqjWAx2UoKbKyvVYieB3piljpkc8H/sOROE6+dYPQVwMPPHwiePxZpN9knyjW6sd7J
 OwlYaZgiTnMpBfSxShHi2N6UifIgYBdbikrA0clywvFbw8fu2X4jDn+OR5owGGEc/ggg
 xJOwmGXokz0mdgb25UeIoiP3Z/utdBDEUsoDjKRmEEitQA1RrCjz4kR62qS9DeqUZj8i
 YBv7Y9dSSNV0lryridzuqIJXnrGAveq37G1iku8iJNuzOG9w6/3KKgSyWk1ENlZpqPy8
 xUMkn/9w24gRZRwHMNZGa3KCr3qgpdqjBsOusDTFtYfYxpMIsZsWG5NFrZQpRChZbP3t
 30QQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=3k+sfjddaj5e38QuDAxBDl6J0Tpym6MzJIpaDQsGWNE=;
 b=xwllg+EbobJqDm+TWvN6pxjDPrYFeBRmlA2bWX1XZbBHUKeZMAojy1sS0uOj6D+jRH
 yUsTkyD/DWMvWXCThGwyIn1u3UJ8C07o03IBL9P/GImfHROFrzNCWRm47kV9mH4evKXC
 r4VWvZGbWKwunMEo3mIdnaXXfFKU6byim8N2EjAmwkugy0NPXPzYkroVmzYceNn1SbRR
 04GZH3feetvnvrQdSnZn0Z3iBCZqpTVMdXfOuyErCyWBHn6SuAXOXwk8d3BAcUU0cYcv
 KUicOkQo1KKryBxwdYE1EAvSMo3HwYq/a1PMgARBdvBWpqvTLWwH6bZgHqdsXAYwwfOA
 44XA==
X-Gm-Message-State: AJIora+Ti0ZfWmEg477g6+EyM9MK971aOLDjQc+FfKAqPEIc4++59Njo
 nkPVljvE6pV0OSJNPXtSt6NZdA==
X-Google-Smtp-Source: AGRyM1u63QvCPobHFl2GF+KG811lSY3KD6s57WcDr7P65VLO7bMuAzM/a8sSkhSPO3xuI7P8A/zgBw==
X-Received: by 2002:a17:902:f792:b0:168:e97b:3c05 with SMTP id
 q18-20020a170902f79200b00168e97b3c05mr5955558pln.94.1656191346337; 
 Sat, 25 Jun 2022 14:09:06 -0700 (PDT)
Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199])
 by smtp.gmail.com with ESMTPSA id
 e8-20020a17090a7c4800b001e3937f21absm4042773pjl.19.2022.06.25.14.09.05
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 25 Jun 2022 14:09:05 -0700 (PDT)
Date: Sat, 25 Jun 2022 14:09:01 -0700
From: Stephen Hemminger <stephen@networkplumber.org>
To: "Juan Pablo L." <jpablolorenzetti@hotmail.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: DPDK KNI vs io_uring
Message-ID: <20220625140901.14ac94cb@hermes.local>
In-Reply-To: <AM0PR04MB6692722AD60D0654A6799AD0D9B49@AM0PR04MB6692.eurprd04.prod.outlook.com>
References: <AM0PR04MB6692722AD60D0654A6799AD0D9B49@AM0PR04MB6692.eurprd04.prod.outlook.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-BeenThere: users@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK usage discussions <users.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/users>,
 <mailto:users-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/users/>
List-Post: <mailto:users@dpdk.org>
List-Help: <mailto:users-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/users>,
 <mailto:users-request@dpdk.org?subject=subscribe>
Errors-To: users-bounces@dpdk.org

On Fri, 24 Jun 2022 20:32:19 +0000
Juan Pablo L. <jpablolorenzetti@hotmail.com> wrote:

> Hello folks, I am about to embark on the networking low level parts of my project,
> where I will be implementing a SCTP server for AAA for a 4G/5G telecom so I need to squeeze as much performance as possible .. I am looking at how to setup KNI and friends (unless anyone knows about a mature and robust SCTP stack in user space please let me know) ...

Mature and robust and open source SCTP seems unlikely. The closest you might get working is some of
the projects that ran FreeBSD network stack in userspace; but haven't heard about them in several years.

> 
> I have spent several days reading about io_uring, and I can see that accomplishes exactly the same role as the KNI module (or so I believe) with the advantage that is part of the kernel, etc etc.

No. io_uring is about bulk socket access; KNI is for pushing packets from DPDK into kernel.
Different API's different formats, different effect.

> 
> I have no experience with KNI or io_uring, so I will be starting from scratch with either one of them.
> 
> Has anyone had any experience with io_uring ? is it better, the same, worse than KNI ? any advice ?

io_uring is done by experienced kernel developers and merged into mainline kernel.
KNI is being deprecated and was never reviewed by the kernel community.

io_uring is driven of of socket send/recv.
KNI is based on dedicated kernel thread(s) doing polling.

> On a different note, I have read in the forums and mailing list that KNI is on its way out, that it will be deprecated sometime in the future, is my understanding correct ?
> If it is indeed the case, is anyone using anything as a KNI replacement ?
> 

There is documentation already on how to use virtio_user as better replacement for KNI.

If you want to use SCTP why are you so interested in DPDK.
It would be better to just use OS stack for that.