mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 19:00:53 +07: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 <jakub.kicinski@netronome.com> Reviewed-by: John Hurley <john.hurley@netronome.com> Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
be2fbc155f
commit
6e3d02b670
@ -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 New Issue
Block a user