pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/30264 )
Change subject: paging: Avoid repeated paging req lookup on BTS receiving paging resp ......................................................................
paging: Avoid repeated paging req lookup on BTS receiving paging resp
This saves the BSC from iterating twice the whole paging list of the BTS which received the paging response.
Related: SYS#6200 Change-Id: I5f9215f31428ce0249cd9ece6d2d4e93155f429f --- M src/osmo-bsc/paging.c 1 file changed, 4 insertions(+), 0 deletions(-)
Approvals: Jenkins Builder: Verified fixeria: Looks good to me, but someone else must approve laforge: Looks good to me, approved
diff --git a/src/osmo-bsc/paging.c b/src/osmo-bsc/paging.c index a0e3067..d4a97e4 100644 --- a/src/osmo-bsc/paging.c +++ b/src/osmo-bsc/paging.c @@ -573,6 +573,10 @@ llist_for_each_entry(bts_i, &bsc_gsmnet->bts_list, list) { struct bsc_msc_data *paged_from_msc2; enum bsc_paging_reason reason2; + + if (bts_i == bts) + continue; /* Already handled above, avoid repeated lookup */ + count += paging_request_stop_bts(&paged_from_msc2, &reason2, bts_i, bsub); if (paged_from_msc2) { reasons |= reason2;