]> 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)
commit3c80c01cb63b6ced350b513ed655caab823d2761
treebebdff5c710c40928616f637ebc6ad45344a44e7
parentb332fc66053e2027ed22b257a5260018b243464b
tcp: fix incorrect LOCKDROPPEDICMPS counter

commit fb46d10d8e (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