[M] Change in libosmocore[master]: Add multiple messages buffers to struct iofd_msghdr
Attention is currently required from: laforge, pespin. jolly has posted comments on this change by jolly. ( https://gerrit.osmocom.org/c/libosmocore/+/40491?usp=email ) Change subject: Add multiple messages buffers to struct iofd_msghdr ...................................................................... Patch Set 7: (8 comments) File src/core/osmo_io.c: https://gerrit.osmocom.org/c/libosmocore/+/40491/comment/ef361154_bc712529?u... : PS3, Line 165: hdr->msg_max = (g_io_backend == OSMO_IO_BACKEND_IO_URING) ? g_io_uring_iov : 1;
this info should be obtained from osmo_io_fd struct. Done
https://gerrit.osmocom.org/c/libosmocore/+/40491/comment/c1736551_2110a685?u... : PS3, Line 406: struct msgb *msg = msghdr->msg[0];
I see now, because this commit is actually not yet adding support for >1 msgb per msghdr, it's only […] Done
File src/core/osmo_io.c: https://gerrit.osmocom.org/c/libosmocore/+/40491/comment/97886b07_25aada17?u... : PS5, Line 727: iofd->io_buffers = (g_io_backend == OSMO_IO_BACKEND_IO_URING) ? g_io_uring_iov : 1;
sounds like we want to have this per-backend logic as part of the per-backend ops, and not here. It is set by an API function now.
File src/core/osmo_io.c: https://gerrit.osmocom.org/c/libosmocore/+/40491/comment/ecc7525f_6e3dcb0d?u... : PS6, Line 747: * If your osmo_io_fd is in OSMO_IO_FD_MODE_READ_WRITE mode, this API function can be used to tell the
Please add proper doxygen documentation of params here. Done
https://gerrit.osmocom.org/c/libosmocore/+/40491/comment/12c1d822_38847e71?u... : PS6, Line 748: * osmo_io code how many buffers should be read or written with a single read or write operation.
"read or write". Extra space. Done
https://gerrit.osmocom.org/c/libosmocore/+/40491/comment/5a0c93ff_615b47a6?u... : PS6, Line 751: int osmo_iofd_set_io_buffers(struct osmo_io_fd *iofd, int buffers)
unsigned int buffers? […] Done
File src/core/osmo_io_internal.h: https://gerrit.osmocom.org/c/libosmocore/+/40491/comment/c79bae45_5b9c7630?u... : PS6, Line 143: int io_len;
this can also be a unsigned int. And even actually a uint8_t. Done
File src/core/osmo_io_uring.c: https://gerrit.osmocom.org/c/libosmocore/+/40491/comment/84b14b5c_5b18e99a?u... : PS3, Line 110: g_io_uring_iov = atoi(env);
afaict this is not some information which is needed really early in the startup of the program, befo […] It is configured in an API function now.
-- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/40491?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I4fb1067de4615cc22cc6caf99b481491e7f2ef92 Gerrit-Change-Number: 40491 Gerrit-PatchSet: 7 Gerrit-Owner: jolly <andreas@eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin@sysmocom.de> Gerrit-CC: laforge <laforge@osmocom.org> Gerrit-Attention: laforge <laforge@osmocom.org> Gerrit-Attention: pespin <pespin@sysmocom.de> Gerrit-Comment-Date: Mon, 28 Jul 2025 10:19:08 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: pespin <pespin@sysmocom.de>
participants (1)
-
jolly