lynxis has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/44083?usp=email ) Change subject: tcap_as_loadshare: rename rate counter for successful load sharing ...................................................................... tcap_as_loadshare: rename rate counter for successful load sharing To prepare for a counter when load sharing fails for a TCAP Begin message. Related: SYS#8283 Change-Id: I6a0dc75e945a7a9688386e9bcd842bf7e9bc1d1e --- M src/ss7_as.c M src/ss7_as.h M src/tcap_as_loadshare.c 3 files changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/83/44083/1 diff --git a/src/ss7_as.c b/src/ss7_as.c index 3a9352e..8b71359 100644 --- a/src/ss7_as.c +++ b/src/ss7_as.c @@ -141,7 +141,7 @@ #ifdef WITH_TCAP_LOADSHARING [SS7_AS_CTR_TCAP_DECODE_SUCCESS] = { "tcap:decode:success", "Number of successful decoded TCAP messages (loadshare-tcap)" }, [SS7_AS_CTR_TCAP_DECODE_FAILURE] = { "tcap:decode:failure", "Number of TCAP messages which could not decoded (loadshare-tcap)" }, - [SS7_AS_CTR_TCAP_ASP_SELECTED] = { "tcap:asp:selected", "ASP selection successful for a TCAP-message (loadshare-tcap)" }, + [SS7_AS_CTR_TCAP_LOAD_SHARE_SUCCESS] = {"tcap:loadshare:success","Successful ASP selection for a TCAP Begin message (loadshare-tcap)" }, [SS7_AS_CTR_TCAP_ASP_FALLBACK] = { "tcap:asp:fallback", "A non-starting TCAP message had to be routed by round-robin over all ASP. (loadshare-tcap)" }, [SS7_AS_CTR_TCAP_ASP_FAILED] = { "tcap:asp:failed", "ASP selection failed for a TCAP-message (loadshare-tcap)" }, [SS7_AS_CTR_TCAP_SESS_MISS] = { "tcap:session:miss", "A non-starting TCAP message (Continue, End, Abort) was missing a session entry. (loadshare-tcap)" }, diff --git a/src/ss7_as.h b/src/ss7_as.h index d9301a0..4e6b671 100644 --- a/src/ss7_as.h +++ b/src/ss7_as.h @@ -68,7 +68,7 @@ #ifdef WITH_TCAP_LOADSHARING SS7_AS_CTR_TCAP_DECODE_SUCCESS, SS7_AS_CTR_TCAP_DECODE_FAILURE, - SS7_AS_CTR_TCAP_ASP_SELECTED, + SS7_AS_CTR_TCAP_LOAD_SHARE_SUCCESS, SS7_AS_CTR_TCAP_ASP_FALLBACK, SS7_AS_CTR_TCAP_ASP_FAILED, SS7_AS_CTR_TCAP_SESS_MISS, diff --git a/src/tcap_as_loadshare.c b/src/tcap_as_loadshare.c index ca4cd6d..15512a6 100644 --- a/src/tcap_as_loadshare.c +++ b/src/tcap_as_loadshare.c @@ -661,7 +661,7 @@ * is allowed (e.g., round robin)." */ asp = select_asp_tcap_enabled_rr(as); if (asp) { - rate_ctr_inc2(as->ctrg, SS7_AS_CTR_TCAP_ASP_SELECTED); + rate_ctr_inc2(as->ctrg, SS7_AS_CTR_TCAP_LOAD_SHARE_SUCCESS); } else { /* Couldn't find a suitable canditate */ LOGPAS(as, DLTCAP, LOGL_DEBUG, "Couldn't find a suitable canditate for TCAP Begin otid %u\n", parsed.otid); -- To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/44083?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: libosmo-sigtran Gerrit-Branch: master Gerrit-Change-Id: I6a0dc75e945a7a9688386e9bcd842bf7e9bc1d1e Gerrit-Change-Number: 44083 Gerrit-PatchSet: 1 Gerrit-Owner: lynxis <lynxis@fe80.eu>