diff options
| author | Denis V. Lunev <[email protected]> | 2008-04-14 05:12:13 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2008-04-14 05:12:13 +0000 |
| commit | 9427c4b36b8fe652df1d7c89eae678948e1f4b32 (patch) | |
| tree | d2e018d9b09656e04e80ae3d3e88993e76753fbb /net/ipv6/tcp_ipv6.c | |
| parent | [TCP]: No need to check afinfo != NULL in tcp_proc_(un)register. (diff) | |
| download | kernel-9427c4b36b8fe652df1d7c89eae678948e1f4b32.tar.gz kernel-9427c4b36b8fe652df1d7c89eae678948e1f4b32.zip | |
[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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
| -rw-r--r-- | net/ipv6/tcp_ipv6.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 80eab71e77ff..8bf59ee51cdb 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -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) |
