OSDN Git Service

espintcp: count packets dropped in espintcp_rcv
authorSabrina Dubroca <sd@queasysnail.net>
Wed, 29 Jul 2020 16:38:43 +0000 (18:38 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 30 Jul 2020 04:51:36 +0000 (06:51 +0200)
commit71b59bf482b2dd662774f34108c5b904efa9e02b
treecad6ddb9845476777f642be53f8a4ac1a065b17a
parentfadd1a63a7b4df295a01fa50b2f4e447542bee59
espintcp: count packets dropped in espintcp_rcv

Currently, espintcp_rcv drops packets silently, which makes debugging
issues difficult. Count packets as either XfrmInHdrError (when the
packet was too short or contained invalid data) or XfrmInError (for
other issues).

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/espintcp.c