|
@@ -222,7 +222,7 @@ flow_cache_lookup(struct net *net, struct flowi *key, u16 family, u8 dir,
|
|
|
unsigned int hash;
|
|
|
|
|
|
local_bh_disable();
|
|
|
- fcp = per_cpu_ptr(fc->percpu, smp_processor_id());
|
|
|
+ fcp = this_cpu_ptr(fc->percpu);
|
|
|
|
|
|
fle = NULL;
|
|
|
flo = NULL;
|
|
@@ -302,7 +302,7 @@ static void flow_cache_flush_tasklet(unsigned long data)
|
|
|
LIST_HEAD(gc_list);
|
|
|
int i, deleted = 0;
|
|
|
|
|
|
- fcp = per_cpu_ptr(fc->percpu, smp_processor_id());
|
|
|
+ fcp = this_cpu_ptr(fc->percpu);
|
|
|
for (i = 0; i < flow_cache_hash_size(fc); i++) {
|
|
|
hlist_for_each_entry_safe(fle, entry, tmp,
|
|
|
&fcp->hash_table[i], u.hlist) {
|