]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfrm: iptfs: handle reordering of received packets
authorChristian Hopps <chopps@labn.net>
Thu, 14 Nov 2024 07:07:11 +0000 (02:07 -0500)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 5 Dec 2024 09:02:29 +0000 (10:02 +0100)
commit6be02e3e4f376fea468846c8562655ca5ee18204
tree44c9d3129129b9e70e8afbf4671c14c596ce688c
parent5f2b6a9095743a6bf1f34c43c4fe78fa8bdf5ad7
xfrm: iptfs: handle reordering of received packets

Handle the receipt of the outer tunnel packets out-of-order. Pointers to
the out-of-order packets are saved in a window (array) awaiting needed
prior packets. When the required prior packets are received the now
in-order packets are then passed on to the regular packet receive code.
A timer is used to consider missing earlier packet as lost so the
algorithm will advance.

Signed-off-by: Christian Hopps <chopps@labn.net>
Tested-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_iptfs.c