mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net: sk_drops consolidation part 2
- skb_kill_datagram() can increment sk->sk_drops itself, not callers. - UDP on IPV4 & IPV6 dropped frames (because of bad checksum or policy checks) increment sk_drops Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c720c7e838
commit
8edf19c2fe
4 changed files with 6 additions and 2 deletions
|
@ -517,7 +517,6 @@ csum_copy_err:
|
|||
as some normal condition.
|
||||
*/
|
||||
err = (flags&MSG_DONTWAIT) ? -EAGAIN : -EHOSTUNREACH;
|
||||
atomic_inc(&sk->sk_drops);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue