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
This commit is contained in:
Pau Espin 2022-11-22 12:49:10 +01:00
parent cf3145c966
commit ae07416208
1 changed files with 4 additions and 0 deletions

View File

@ -573,6 +573,10 @@ int paging_request_stop(struct bsc_msc_data **msc_p, enum bsc_paging_reason *rea
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;