Change in libosmocore[master]: gprs_ns2_sns: rework tracking of NS-VC unblocked/alive state

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 https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Fri Feb 5 17:21:20 UTC 2021


pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/22742 )

Change subject: gprs_ns2_sns: rework tracking of NS-VC unblocked/alive state
......................................................................


Patch Set 3:

(4 comments)

https://gerrit.osmocom.org/c/libosmocore/+/22742/3/src/gb/gprs_ns2_sns.c 
File src/gb/gprs_ns2_sns.c:

https://gerrit.osmocom.org/c/libosmocore/+/22742/3/src/gb/gprs_ns2_sns.c@233 
PS3, Line 233: /*! called when a nsvc is beeing freed or the nsvc is become dead */
is become -> became


https://gerrit.osmocom.org/c/libosmocore/+/22742/3/src/gb/gprs_ns2_sns.c@234 
PS3, Line 234: void ns2_sns_replace_nsvc(struct gprs_ns2_vc *nsvc)
the naming is not descriptive. What about "notify_dead()" instead? since you are adding notify_alive...

btw, why isn't this handled internally I worry?


https://gerrit.osmocom.org/c/libosmocore/+/22742/3/src/gb/gprs_ns2_sns.c@893 
PS3, Line 893: 	secs = nsi->timeout[NS_TOUT_TNS_ALIVE] * nsi->timeout[NS_TOUT_TNS_ALIVE_RETRIES] ;
whitespace " ;"


https://gerrit.osmocom.org/c/libosmocore/+/22742/3/src/gb/gprs_ns2_sns.c@894 
PS3, Line 894: 	secs *= nsi->timeout[NS_TOUT_TNS_TEST];
It looks a bit strange multiplying in 2 steps.



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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ie72da9adeefe0c2850d49a9208b2d0a4556f9101
Gerrit-Change-Number: 22742
Gerrit-PatchSet: 3
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-CC: pespin <pespin at sysmocom.de>
Gerrit-Comment-Date: Fri, 05 Feb 2021 17:21:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210205/a1c57521/attachment.htm>


More information about the gerrit-log mailing list