Change in osmo-pcu[master]: Move NULL and ASSIGN tbf_state transition to tbf_fsm

pespin gerrit-no-reply at lists.osmocom.org
Tue Jul 27 10:36:33 UTC 2021


pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/25011 )

Change subject: Move NULL and ASSIGN tbf_state transition to tbf_fsm
......................................................................


Patch Set 4:

(2 comments)

https://gerrit.osmocom.org/c/osmo-pcu/+/25011/4/src/pdch.cpp 
File src/pdch.cpp:

https://gerrit.osmocom.org/c/osmo-pcu/+/25011/4/src/pdch.cpp@371 
PS4, Line 371: 		if (new_tbf->state_fsm.state_flags & (1 << GPRS_RLCMAC_FLAG_CCCH)) {
> I'm wondering, what's the rationale behind replacing check_n_clear here, but still using it in other […]
Because this state_flags variable is a mess and used for tons of different things. In this patchset (this and follow commits) I'm so far moving a subset of its uses to the FSM: basically flags GPRS_RLCMAC_FLAG_CCCH and GPRS_RLCMAC_FLAG_PACCH.

So other flags are left intact.


https://gerrit.osmocom.org/c/osmo-pcu/+/25011/4/src/tbf_fsm.h 
File src/tbf_fsm.h:

https://gerrit.osmocom.org/c/osmo-pcu/+/25011/4/src/tbf_fsm.h@48 
PS4, Line 48: 	uint32_t state_flags;
> Have you considered calling it "flags", so it's "state_fsm.flags" instead of "state_fsm. […]
Yes, but I'm already moving too much stuff and I consider state_flags is a bit more informative than flags.
This variable will anyway be changing in the future when I get rid of other flags from here.



-- 
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/25011
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I3c62e9e83965cb28065338733f182863e54d7474
Gerrit-Change-Number: 25011
Gerrit-PatchSet: 4
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-Comment-Date: Tue, 27 Jul 2021 10:36:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: osmith <osmith at sysmocom.de>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210727/a11685f5/attachment.htm>


More information about the gerrit-log mailing list