Attention is currently required from: fixeria.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmocom-bb/+/28669 )
Change subject: trxcon: rework L1CTL socket API to support multiple clients
......................................................................
Patch Set 4:
(3 comments)
File src/host/trxcon/include/osmocom/bb/trxcon/l1ctl_link.h:
https://gerrit.osmocom.org/c/osmocom-bb/+/28669/comment/8fc6275a_1fac43c7
PS4, Line 29: l1ctl_conn_data_func *conn_read_cb; /* mandatory */
Did you think about adding an .ops struct?
https://gerrit.osmocom.org/c/osmocom-bb/+/28669/comment/0d5c5e48_9b3d4d36
PS4, Line 35: struct llist_head list;
document where is this item added to. struct l1ctl_server "clients" I guess?
File src/host/trxcon/src/l1ctl_link.c:
https://gerrit.osmocom.org/c/osmocom-bb/+/28669/comment/f7ea8b7d_116c40fb
PS4, Line 110: static int l1ctl_client_conn_accept(struct osmo_fd *sfd, unsigned int flags)
this new function name is misleading imho.
I'd leave it as link or server, since you are operating on the fd of a server.
l1ctl_server_conn_accept.
--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/28669
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I1cfc49f36ead6e2ba0a6110b0fb65c55412ef5e3
Gerrit-Change-Number: 28669
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 20 Jul 2022 12:32:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: fixeria.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmocom-bb/+/28667 )
Change subject: trxcon: introduce and use struct 'trxcon_inst'
......................................................................
Patch Set 3: Code-Review+1
(3 comments)
File src/host/trxcon/include/osmocom/bb/trxcon/trx_if.h:
https://gerrit.osmocom.org/c/osmocom-bb/+/28667/comment/1d470a02_a2c3f19f
PS3, Line 44: void *priv;
where is priv set through API below? I can't see it.
https://gerrit.osmocom.org/c/osmocom-bb/+/28667/comment/44180d4a_c33dbc8a
PS3, Line 55: struct trx_instance *trx_if_open(struct trxcon_inst *trxcon,
This is a bit strange. All functions here are called trx_if_* but receive a trxcon_inst as object. You may want to clean up this.
File src/host/trxcon/src/trxcon.c:
https://gerrit.osmocom.org/c/osmocom-bb/+/28667/comment/64fb9ca2_4bd225b2
PS3, Line 351: trxcon->l1l->priv = trxcon;
if some parts are to be turned up into a library you probably want to add setters and getters for these fields.
--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/28667
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I23319951c56577085e1092669b5534f9d6bda48d
Gerrit-Change-Number: 28667
Gerrit-PatchSet: 3
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 20 Jul 2022 12:23:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment