aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/udp.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-03-28 21:24:26 -0400
committerDavid S. Miller <davem@davemloft.net>2008-03-28 21:24:26 -0400
commitdda61925f84d89e2f2a4597d6298a05a2bc05c20 (patch)
tree8d66baedac68ed6a1c026f0142ab405f5c733597 /net/ipv6/udp.c
parent997feb5e7a24ce155c1d3bea9d0b5c6530bb6197 (diff)
[UDP]: Move seq_ops from udp_iter_state to udp_seq_afinfo.
No need to create seq_operations for each instance of 'netstat'. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r--net/ipv6/udp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index 463ae4d448a3..e35921a46689 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -983,8 +983,10 @@ static struct udp_seq_afinfo udp6_seq_afinfo = {
983 .name = "udp6", 983 .name = "udp6",
984 .family = AF_INET6, 984 .family = AF_INET6,
985 .hashtable = udp_hash, 985 .hashtable = udp_hash,
986 .seq_show = udp6_seq_show,
987 .seq_fops = &udp6_seq_fops, 986 .seq_fops = &udp6_seq_fops,
987 .seq_ops = {
988 .show = udp6_seq_show,
989 },
988}; 990};
989 991
990int udp6_proc_init(struct net *net) 992int udp6_proc_init(struct net *net)