Change in osmo-pcu[master]: Add stats: pcu.bts.N.pdch.occupied.gprs/egprs

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at

pespin gerrit-no-reply at
Thu Sep 16 19:10:25 UTC 2021

pespin has posted comments on this change. ( )

Change subject: Add stats: pcu.bts.N.pdch.occupied.gprs/egprs

Patch Set 2: Code-Review-1

File src/pdch.h: 
PS2, Line 81: 	void num_tbfs_update(gprs_rlcmac_tbf *tbf, enum tbf_type type, bool is_attach);
type should be known from tbf, no need to pass it? 
File src/pdch.cpp: 
PS2, Line 1065: 	enum tbf_type type = tbf->is_egprs_enabled() ? TBF_TYPE_EGPRS : TBF_TYPE_GPRS;
why aren't you calling tbf->is_egprs_enabled() inside num_tbfs_update()!? 
File src/tbf.h: 
PS2, Line 90: 	TBF_TYPE_GPRS,
No need for this! 
File src/tbf.cpp: 
PS2, Line 773: 	for (int ts = 0; ts < 8; ts++) {
what about using ARRAY_SIZE(pdch) here instead of 8? 
PS2, Line 779: 		if (direction == GPRS_RLCMAC_DL_TBF && pdch[ts]->dl_tbf_by_tfi(m_tfi) != this)
why are the last 2 if conditions needed? if pdch[ts] it means it's attached right? no need to do this second check you do here.

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

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I0c0a1121b4ae5f031782e7e63a0c28eb0b6c8b42
Gerrit-Change-Number: 25400
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith at>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin at>
Gerrit-Comment-Date: Thu, 16 Sep 2021 19:10:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gerrit-log mailing list