Project

General

Profile

Actions

Feature #5766

open

use Linux kernel KCM for IPA header?

Added by laforge 22 days ago. Updated 22 days ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
11/13/2022
Due date:
% Done:

0%

Spec Reference:

Description

Since Linux kernel v4.10 in 2016 there is a feature called KCM, which allows to multiplex/demultiplex a TCP stream socket into datagram/seqpacket sockets inside the kernel. It's written exactly for such a use case. A BPF program then determines the message boundaries within the TCP stream. See https://mjmwired.net/kernel/Documentation/networking/kcm.rst

Using this mechanism we could avoid a lot of "three byte reads" on our IPA sockets and have this handled inside the kernel, with the kernel only passing full IPA messages to userspace.

Unfortunately it seems that at least Debian doesn't yet enable CONFIG_AF_KCM even after 6 years of having this feature in the kernel. It's not even experimental but yet nobody bothers enabling it. We'd have to get that changed and/or check the status in other distributions


Related issues

Related to libosmocore - Feature #5751: io_uring support in libosmocoreIn Progressdaniel11/09/2022

Actions
Actions #1

Updated by laforge 22 days ago

Actions #2

Updated by laforge 22 days ago

  • Related to Feature #5751: io_uring support in libosmocore added
Actions #3

Updated by laforge 22 days ago

requested it to be activated in debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023958

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)