ipv6: separate seq_ops for global & per/device ipv6 statistics
authorDenis V. Lunev <den@openvz.org>
Tue, 7 Oct 2008 21:47:12 +0000 (14:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Oct 2008 21:47:12 +0000 (14:47 -0700)
commit7b43ccecc77480353a5657d993d671cae9e94efd
treebe4e5b0b700c024f53a8503ec8cf23f5e5fa1401
parent35f0a5df6cbc315da031c40541e135a059bfde7d
ipv6: separate seq_ops for global & per/device ipv6 statistics

idev has been stored on seq->private. NULL has been stored for global
statistics.

The situation is changed with net namespace. We need to store pointer to
struct net and the only place is seq->private. So, we'll have for
/proc/net/dev_snmp6/* and for /proc/net/snmp6 pointers of two different
types stored in the same field.

This effectively requires to separate seq_ops of these files.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/proc.c