Loading include/net/neighbour.h +1 −6 Original line number Diff line number Diff line Loading @@ -90,12 +90,7 @@ struct neigh_statistics unsigned long unres_discards; /* number of unresolved drops */ }; #define NEIGH_CACHE_STAT_INC(tbl, field) \ do { \ preempt_disable(); \ (per_cpu_ptr((tbl)->stats, smp_processor_id())->field)++; \ preempt_enable(); \ } while (0) #define NEIGH_CACHE_STAT_INC(tbl, field) this_cpu_inc((tbl)->stats->field) struct neighbour { Loading include/net/netfilter/nf_conntrack.h +2 −2 Original line number Diff line number Diff line Loading @@ -295,11 +295,11 @@ extern unsigned int nf_conntrack_htable_size; extern unsigned int nf_conntrack_max; #define NF_CT_STAT_INC(net, count) \ (per_cpu_ptr((net)->ct.stat, raw_smp_processor_id())->count++) __this_cpu_inc((net)->ct.stat->count) #define NF_CT_STAT_INC_ATOMIC(net, count) \ do { \ local_bh_disable(); \ per_cpu_ptr((net)->ct.stat, raw_smp_processor_id())->count++; \ __this_cpu_inc((net)->ct.stat->count); \ local_bh_enable(); \ } while (0) Loading Loading
include/net/neighbour.h +1 −6 Original line number Diff line number Diff line Loading @@ -90,12 +90,7 @@ struct neigh_statistics unsigned long unres_discards; /* number of unresolved drops */ }; #define NEIGH_CACHE_STAT_INC(tbl, field) \ do { \ preempt_disable(); \ (per_cpu_ptr((tbl)->stats, smp_processor_id())->field)++; \ preempt_enable(); \ } while (0) #define NEIGH_CACHE_STAT_INC(tbl, field) this_cpu_inc((tbl)->stats->field) struct neighbour { Loading
include/net/netfilter/nf_conntrack.h +2 −2 Original line number Diff line number Diff line Loading @@ -295,11 +295,11 @@ extern unsigned int nf_conntrack_htable_size; extern unsigned int nf_conntrack_max; #define NF_CT_STAT_INC(net, count) \ (per_cpu_ptr((net)->ct.stat, raw_smp_processor_id())->count++) __this_cpu_inc((net)->ct.stat->count) #define NF_CT_STAT_INC_ATOMIC(net, count) \ do { \ local_bh_disable(); \ per_cpu_ptr((net)->ct.stat, raw_smp_processor_id())->count++; \ __this_cpu_inc((net)->ct.stat->count); \ local_bh_enable(); \ } while (0) Loading