Skip to content
Commit d2f7e56d authored by Cambda Zhu's avatar Cambda Zhu Committed by David S. Miller
Browse files

ipv6: Use math to point per net sysctls into the appropriate struct net



The data pointers of ipv6 sysctl are set one by one which is hard to
maintain, especially with kconfig. This patch simplifies it by using
math to point the per net sysctls into the appropriate struct net,
just like what we did for ipv4.

Signed-off-by: default avatarCambda Zhu <cambda@linux.alibaba.com>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 15070919
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment