[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>
This commit is contained in:

committed by
David S. Miller

parent
997feb5e7a
commit
dda61925f8
@@ -102,8 +102,10 @@ static struct udp_seq_afinfo udplite6_seq_afinfo = {
|
||||
.name = "udplite6",
|
||||
.family = AF_INET6,
|
||||
.hashtable = udplite_hash,
|
||||
.seq_show = udp6_seq_show,
|
||||
.seq_fops = &udplite6_seq_fops,
|
||||
.seq_ops = {
|
||||
.show = udp6_seq_show,
|
||||
},
|
||||
};
|
||||
|
||||
static int udplite6_proc_init_net(struct net *net)
|
||||
|
Reference in New Issue
Block a user