mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-10 00:26:34 +00:00
[TCP]: Move seq_ops from tcp_iter_state to tcp_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
1abf4fb20d
commit
9427c4b36b
3 changed files with 12 additions and 9 deletions
|
@ -2125,8 +2125,10 @@ static struct tcp_seq_afinfo tcp6_seq_afinfo = {
|
|||
.owner = THIS_MODULE,
|
||||
.name = "tcp6",
|
||||
.family = AF_INET6,
|
||||
.seq_show = tcp6_seq_show,
|
||||
.seq_fops = &tcp6_seq_fops,
|
||||
.seq_ops = {
|
||||
.show = tcp6_seq_show,
|
||||
},
|
||||
};
|
||||
|
||||
int tcp6_proc_init(struct net *net)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue