aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r--net/ipv4/udp.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 11eabf136144..3bbf6fb6e4f5 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -1040,8 +1040,10 @@ int udp_queue_rcv_skb(struct sock * sk, struct sk_buff *skb)
1040 1040
1041 if ((rc = sock_queue_rcv_skb(sk,skb)) < 0) { 1041 if ((rc = sock_queue_rcv_skb(sk,skb)) < 0) {
1042 /* Note that an ENOMEM error is charged twice */ 1042 /* Note that an ENOMEM error is charged twice */
1043 if (rc == -ENOMEM) 1043 if (rc == -ENOMEM) {
1044 UDP_INC_STATS_BH(UDP_MIB_RCVBUFERRORS, is_udplite); 1044 UDP_INC_STATS_BH(UDP_MIB_RCVBUFERRORS, is_udplite);
1045 atomic_inc(&sk->sk_drops);
1046 }
1045 goto drop; 1047 goto drop;
1046 } 1048 }
1047 1049
@@ -1629,12 +1631,13 @@ static void udp4_format_sock(struct sock *sp, struct seq_file *f,
1629 __u16 srcp = ntohs(inet->sport); 1631 __u16 srcp = ntohs(inet->sport);
1630 1632
1631 seq_printf(f, "%4d: %08X:%04X %08X:%04X" 1633 seq_printf(f, "%4d: %08X:%04X %08X:%04X"
1632 " %02X %08X:%08X %02X:%08lX %08X %5d %8d %lu %d %p%n", 1634 " %02X %08X:%08X %02X:%08lX %08X %5d %8d %lu %d %p %d%n",
1633 bucket, src, srcp, dest, destp, sp->sk_state, 1635 bucket, src, srcp, dest, destp, sp->sk_state,
1634 atomic_read(&sp->sk_wmem_alloc), 1636 atomic_read(&sp->sk_wmem_alloc),
1635 atomic_read(&sp->sk_rmem_alloc), 1637 atomic_read(&sp->sk_rmem_alloc),
1636 0, 0L, 0, sock_i_uid(sp), 0, sock_i_ino(sp), 1638 0, 0L, 0, sock_i_uid(sp), 0, sock_i_ino(sp),
1637 atomic_read(&sp->sk_refcnt), sp, len); 1639 atomic_read(&sp->sk_refcnt), sp,
1640 atomic_read(&sp->sk_drops), len);
1638} 1641}
1639 1642
1640int udp4_seq_show(struct seq_file *seq, void *v) 1643int udp4_seq_show(struct seq_file *seq, void *v)
@@ -1643,7 +1646,7 @@ int udp4_seq_show(struct seq_file *seq, void *v)
1643 seq_printf(seq, "%-127s\n", 1646 seq_printf(seq, "%-127s\n",
1644 " sl local_address rem_address st tx_queue " 1647 " sl local_address rem_address st tx_queue "
1645 "rx_queue tr tm->when retrnsmt uid timeout " 1648 "rx_queue tr tm->when retrnsmt uid timeout "
1646 "inode"); 1649 "inode ref pointer drops");
1647 else { 1650 else {
1648 struct udp_iter_state *state = seq->private; 1651 struct udp_iter_state *state = seq->private;
1649 int len; 1652 int len;