Commit 702c290a authored by Gilad Naaman's avatar Gilad Naaman Committed by Paolo Abeni
Browse files

sctp: Avoid enqueuing addr events redundantly



Avoid modifying or enqueuing new events if it's possible to tell that no
one will consume them.

Since enqueueing requires searching the current queue for opposite
events for the same address, adding addresses en-masse turns this
inetaddr_event into a bottle-neck, as it will get slower and slower
with each address added.

Signed-off-by: default avatarGilad Naaman <gnaaman@drivenets.com>
Acked-by: default avatarXin Long <lucien.xin@gmail.com>
Link: https://patch.msgid.link/20241104083545.114-1-gnaaman@drivenets.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 2a6f99ee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment