diff options
author | Denis V. Lunev <den@openvz.org> | 2008-07-05 22:00:44 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-05 22:00:44 -0400 |
commit | 76e6ebfb40a2455c18234dcb0f9df37533215461 (patch) | |
tree | f3b435e8b27a297f330fc7d497a0ef44022e7239 /net/ipv4/devinet.c | |
parent | f43798c27684ab925adde7d8acc34c78c6e50df8 (diff) |
netns: add namespace parameter to rt_cache_flush
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/devinet.c')
-rw-r--r-- | net/ipv4/devinet.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index 9de2514946ca..2e667e2f90df 100644 --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c | |||
@@ -1348,7 +1348,7 @@ static int devinet_sysctl_forward(ctl_table *ctl, int write, | |||
1348 | dev_disable_lro(idev->dev); | 1348 | dev_disable_lro(idev->dev); |
1349 | } | 1349 | } |
1350 | rtnl_unlock(); | 1350 | rtnl_unlock(); |
1351 | rt_cache_flush(0); | 1351 | rt_cache_flush(net, 0); |
1352 | } | 1352 | } |
1353 | } | 1353 | } |
1354 | 1354 | ||
@@ -1362,9 +1362,10 @@ int ipv4_doint_and_flush(ctl_table *ctl, int write, | |||
1362 | int *valp = ctl->data; | 1362 | int *valp = ctl->data; |
1363 | int val = *valp; | 1363 | int val = *valp; |
1364 | int ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos); | 1364 | int ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos); |
1365 | struct net *net = ctl->extra2; | ||
1365 | 1366 | ||
1366 | if (write && *valp != val) | 1367 | if (write && *valp != val) |
1367 | rt_cache_flush(0); | 1368 | rt_cache_flush(net, 0); |
1368 | 1369 | ||
1369 | return ret; | 1370 | return ret; |
1370 | } | 1371 | } |
@@ -1375,9 +1376,10 @@ int ipv4_doint_and_flush_strategy(ctl_table *table, int __user *name, int nlen, | |||
1375 | { | 1376 | { |
1376 | int ret = devinet_conf_sysctl(table, name, nlen, oldval, oldlenp, | 1377 | int ret = devinet_conf_sysctl(table, name, nlen, oldval, oldlenp, |
1377 | newval, newlen); | 1378 | newval, newlen); |
1379 | struct net *net = table->extra2; | ||
1378 | 1380 | ||
1379 | if (ret == 1) | 1381 | if (ret == 1) |
1380 | rt_cache_flush(0); | 1382 | rt_cache_flush(net, 0); |
1381 | 1383 | ||
1382 | return ret; | 1384 | return ret; |
1383 | } | 1385 | } |