daniel submitted this change.

View Change



1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

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
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(-)

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 change 42687. To unsubscribe, or for help writing mail filters, visit settings.

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>