]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: fix incorrect LOCKDROPPEDICMPS counter
authorEric Dumazet <edumazet@google.com>
Sat, 19 Jan 2013 16:10:37 +0000 (16:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Jan 2013 22:22:05 +0000 (17:22 -0500)
commitf5505db4629b69787aadf72432c87a2bdd35087f
treebebdff5c710c40928616f637ebc6ad45344a44e7
parent0cd505c6c2fc48b1df80c4013c5a71aba3539e6e
tcp: fix incorrect LOCKDROPPEDICMPS counter

commit 26ef99d7a3 (tcp: dont drop MTU reduction indications)
added an error leading to incorrect accounting of
LINUX_MIB_LOCKDROPPEDICMPS

If socket is owned by the user, we want to increment
this SNMP counter, unless the message is a
(ICMP_DEST_UNREACH,ICMP_FRAG_NEEDED) one.

Reported-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c