]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ppp: fix 'ppp_mp_reconstruct bad seq' errors
authorBen McKeegan <ben@netservers.co.uk>
Fri, 24 Feb 2012 06:33:56 +0000 (06:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Feb 2012 22:53:21 +0000 (17:53 -0500)
commit8a49ad6e89feb5015e77ce6efeb2678947117e20
tree02638f120a2bad80262adbe8b039462b54874871
parent21ca54e99b085b9ff4c91ca41afe42a439966109
ppp: fix 'ppp_mp_reconstruct bad seq' errors

This patch fixes a (mostly cosmetic) bug introduced by the patch
'ppp: Use SKB queue abstraction interfaces in fragment processing'
found here: http://www.spinics.net/lists/netdev/msg153312.html

The above patch rewrote and moved the code responsible for cleaning
up discarded fragments but the new code does not catch every case
where this is necessary.  This results in some discarded fragments
remaining in the queue, and triggering a 'bad seq' error on the
subsequent call to ppp_mp_reconstruct.  Fragments are discarded
whenever other fragments of the same frame have been lost.
This can generate a lot of unwanted and misleading log messages.

This patch also adds additional detail to the debug logging to
make it clearer which fragments were lost and which other fragments
were discarded as a result of losses. (Run pppd with 'kdebug 1'
option to enable debug logging.)

Signed-off-by: Ben McKeegan <ben@netservers.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/ppp_generic.c