[XS] Change in libosmo-sigtran[master]: tcap_as_loadshare: Clarify name of tcap asp selection function
daniel has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/42687?usp=email ) ( 1 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: tcap_as_loadshare: Clarify name of tcap asp selection function ...................................................................... tcap_as_loadshare: Clarify name of tcap asp selection function Change-Id: I327ad282d2689be2bcf7d3da23026717923c9325 --- M src/tcap_as_loadshare.c 1 file changed, 4 insertions(+), 2 deletions(-) Approvals: fixeria: Looks good to me, approved Jenkins Builder: Verified lynxis lazus: Looks good to me, but someone else must approve pespin: Looks good to me, but someone else must approve diff --git a/src/tcap_as_loadshare.c b/src/tcap_as_loadshare.c index c414c70..1d6ebd9 100644 --- a/src/tcap_as_loadshare.c +++ b/src/tcap_as_loadshare.c @@ -252,7 +252,9 @@ return NULL; } -static struct osmo_ss7_asp *find_asp_no_tcap_range(struct osmo_ss7_as *as) + +/* Select a TCAP-enabled ASP in round-robin fashion */ +static struct osmo_ss7_asp *select_asp_tcap_enabled_rr(struct osmo_ss7_as *as) { struct ss7_as_asp_assoc *assoc; @@ -526,7 +528,7 @@ rate_ctr_inc2(as->ctrg, SS7_AS_CTR_TCAP_ASP_SELECTED); } else { /* if no ASP found for this TCAP, try to find a non-tcap-range ASP as fallback*/ - asp = find_asp_no_tcap_range(as); + asp = select_asp_tcap_enabled_rr(as); if (asp) rate_ctr_inc2(as->ctrg, SS7_AS_CTR_TCAP_ASP_FALLBACK); else { -- To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/42687?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: libosmo-sigtran Gerrit-Branch: master Gerrit-Change-Id: I327ad282d2689be2bcf7d3da23026717923c9325 Gerrit-Change-Number: 42687 Gerrit-PatchSet: 2 Gerrit-Owner: daniel <dwillmann@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: daniel <dwillmann@sysmocom.de> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> Gerrit-Reviewer: lynxis lazus <lynxis@fe80.eu> Gerrit-Reviewer: pespin <pespin@sysmocom.de>
participants (1)
-
daniel