mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
net/tls: dedup the record cleanup
If retransmit record hint fall into the cleanup window we will free it by just walking the list. No need to duplicate the code. Signed-off-by: Jakub Kicinski <[email protected]> Reviewed-by: John Hurley <[email protected]> Reviewed-by: Dirk van der Merwe <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
be2fbc155f
commit
6e3d02b670
1 changed files with 1 additions and 5 deletions
|
|
@ -159,12 +159,8 @@ static void tls_icsk_clean_acked(struct sock *sk, u32 acked_seq)
|
|||
|
||||
spin_lock_irqsave(&ctx->lock, flags);
|
||||
info = ctx->retransmit_hint;
|
||||
if (info && !before(acked_seq, info->end_seq)) {
|
||||
if (info && !before(acked_seq, info->end_seq))
|
||||
ctx->retransmit_hint = NULL;
|
||||
list_del(&info->list);
|
||||
destroy_record(info);
|
||||
deleted_records++;
|
||||
}
|
||||
|
||||
list_for_each_entry_safe(info, temp, &ctx->records_list, list) {
|
||||
if (before(acked_seq, info->end_seq))
|
||||
|
|
|
|||
Loading…
Reference in a new issue