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:
parent
cf3145c966
commit
ae07416208
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue