mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 23:11:27 +00:00
[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:
parent
997feb5e7a
commit
dda61925f8
5 changed files with 18 additions and 11 deletions
|
@ -77,8 +77,10 @@ static struct udp_seq_afinfo udplite4_seq_afinfo = {
|
|||
.name = "udplite",
|
||||
.family = AF_INET,
|
||||
.hashtable = udplite_hash,
|
||||
.seq_show = udp4_seq_show,
|
||||
.seq_fops = &udplite4_seq_fops,
|
||||
.seq_ops = {
|
||||
.show = udp4_seq_show,
|
||||
},
|
||||
};
|
||||
|
||||
static int udplite4_proc_init_net(struct net *net)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue