[IPV4]: Switch users of ipv4_devconf(_all) to use the pernet one
These are scattered over the code, but almost all the "critical" places already have the proper struct net at hand except for snmp proc showing function and routing rtnl handler. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
9355bbd685
commit
586f121152
@@ -2619,7 +2619,7 @@ static int rt_fill_info(struct sk_buff *skb, u32 pid, u32 seq, int event,
|
||||
__be32 dst = rt->rt_dst;
|
||||
|
||||
if (MULTICAST(dst) && !LOCAL_MCAST(dst) &&
|
||||
IPV4_DEVCONF_ALL(MC_FORWARDING)) {
|
||||
IPV4_DEVCONF_ALL(&init_net, MC_FORWARDING)) {
|
||||
int err = ipmr_get_route(skb, r, nowait);
|
||||
if (err <= 0) {
|
||||
if (!nowait) {
|
||||
|
Reference in New Issue
Block a user