]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: make datapath resilient to packet loss when sequence numbers enabled
authorJames Chapman <jchapman@katalix.com>
Tue, 2 Jul 2013 19:29:00 +0000 (20:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2013 23:33:25 +0000 (16:33 -0700)
commitb75ebdd873b08600469a9de1f2bbbb9aa77c0864
tree3f5187519c078bfa265654239854ab0a41597719
parentcc32d9ee3ddc4a6e21c4b2acd213005401855044
l2tp: make datapath resilient to packet loss when sequence numbers enabled

If L2TP data sequence numbers are enabled and reordering is not
enabled, data reception stops if a packet is lost since the kernel
waits for a sequence number that is never resent. (When reordering is
enabled, data reception restarts when the reorder timeout expires.) If
no reorder timeout is set, we should count the number of in-sequence
packets after the out-of-sequence (OOS) condition is detected, and reset
sequence number state after a number of such packets are received.

For now, the number of in-sequence packets while in OOS state which
cause the sequence number state to be reset is hard-coded to 5. This
could be configurable later.

Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c
net/l2tp/l2tp_core.h