Change in osmo-bts[master]: osmo-bts-trx: implement TRXDv2 protocol support

fixeria gerrit-no-reply at
Fri Apr 30 14:16:48 UTC 2021

fixeria has posted comments on this change. ( )

Change subject: osmo-bts-trx: implement TRXDv2 protocol support

Patch Set 7:

File include/osmo-bts/scheduler.h: 
PS7, Line 256: 	uint8_t _pdu_num;	/*!< Number of this PDU within the datagram */
> you mean the PDU position?
This field basically holds the number of parsed PDUs, so when it's 0 we expect TDMA frame number to be present, otherwise it's absent. 
File src/osmo-bts-trx/trx_if.c: 
PS7, Line 726: #define TRX_UL_V2HDR_LEN	1 + 1 + 1 + 1 + 2 + 2
> missing ()
PS7, Line 852: 	bi->rssi = -(int8_t)buf[3];
> are you sure this works correctly? […]
To be fair, I just copy-pasted this line from the existing code. 
PS7, Line 987: loop:
> do {
I prefer to use 'goto' here to avoid wrapping large code blocks into { }, and see no problem with using it. 
PS7, Line 1114: 	LOGPPHI(l1h->phy_inst, DTRX, LOGL_DEBUG,
> not sure if we want to have this log here, looks really verbose.
I am just moving the existing log line, not introducing a new one. Sometimes it's useful to see what [we think] we send, so let's keep it.

To view, visit
To unsubscribe, or for help writing mail filters, visit

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I3532a6693bb335043ec390049138308991083e66
Gerrit-Change-Number: 23833
Gerrit-PatchSet: 7
Gerrit-Owner: fixeria <vyanitskiy at>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at>
Gerrit-Reviewer: pespin <pespin at>
Gerrit-Comment-Date: Fri, 30 Apr 2021 14:16:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin at>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gerrit-log mailing list