Project

General

Profile

Actions

Bug #6213

closed

Use osmo_io in gsmtap_util.c

Added by daniel 8 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
arehbein
Category:
libosmocore
Target version:
-
Start date:
10/05/2023
Due date:
% Done:

100%

Spec Reference:
Tags:

Description

gsmtap logging/L1/L2 can generate quite a number of messages. It mostly sends on the socket and is pretty self-contained so it's a good candidate to port to osmo_io.

Porting is pretty straight forward, just needs adjusting gsmtap_send(), gsmtap_source_init2(), gsmtap_source_free() to use osmo_io instead of osmo_wqueue. One small issue is that right the user can opt in to using wqueues in gsmtap_source_init2() through the ofd_wq_mode parameter. Grepping through the osmo* checkouts I can see that osmo-remsim bankd and osmocom-bb host/gprsdecode seem to use the direct mode (setting ofd_wq_mode to 0). This sends the messages directly and I'm not sure if we actually need to keep supporting this (laforge ?).

Even if we do we can simply make a union of int fd and struct osmo_io_fd and decide based on (ofd_)wq_mode just like before.


Related issues

Related to OsmoBTS - Bug #6260: GSMTAP sending fails with ENOSPCResolvedarehbein11/18/2023

Actions
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)