diff options
Diffstat (limited to 'net/core/flow.c')
-rw-r--r-- | net/core/flow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/flow.c b/net/core/flow.c index 161900674009..8c7c91a32f18 100644 --- a/net/core/flow.c +++ b/net/core/flow.c | |||
@@ -222,7 +222,7 @@ flow_cache_lookup(struct net *net, struct flowi *key, u16 family, u8 dir, | |||
222 | unsigned int hash; | 222 | unsigned int hash; |
223 | 223 | ||
224 | local_bh_disable(); | 224 | local_bh_disable(); |
225 | fcp = per_cpu_ptr(fc->percpu, smp_processor_id()); | 225 | fcp = this_cpu_ptr(fc->percpu); |
226 | 226 | ||
227 | fle = NULL; | 227 | fle = NULL; |
228 | flo = NULL; | 228 | flo = NULL; |
@@ -302,7 +302,7 @@ static void flow_cache_flush_tasklet(unsigned long data) | |||
302 | LIST_HEAD(gc_list); | 302 | LIST_HEAD(gc_list); |
303 | int i, deleted = 0; | 303 | int i, deleted = 0; |
304 | 304 | ||
305 | fcp = per_cpu_ptr(fc->percpu, smp_processor_id()); | 305 | fcp = this_cpu_ptr(fc->percpu); |
306 | for (i = 0; i < flow_cache_hash_size(fc); i++) { | 306 | for (i = 0; i < flow_cache_hash_size(fc); i++) { |
307 | hlist_for_each_entry_safe(fle, entry, tmp, | 307 | hlist_for_each_entry_safe(fle, entry, tmp, |
308 | &fcp->hash_table[i], u.hlist) { | 308 | &fcp->hash_table[i], u.hlist) { |