static int ovs_vport_output(OVS_VPORT_OUTPUT_PARAMS)
{
- struct ovs_frag_data *data = get_pcpu_ptr(ovs_frag_data_storage);
+ struct ovs_frag_data *data = this_cpu_ptr(&ovs_frag_data_storage);
struct vport *vport = data->vport;
if (skb_cow_head(skb, data->l2_len) < 0) {
unsigned int hlen = skb_network_offset(skb);
struct ovs_frag_data *data;
- data = get_pcpu_ptr(ovs_frag_data_storage);
+ data = this_cpu_ptr(&ovs_frag_data_storage);
data->dst = (unsigned long) skb_dst(skb);
data->vport = vport;
data->cb = *OVS_GSO_CB(skb);
#define this_cpu_dec(ptr) percpu_sub(ptr, 1)
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34)
-#define get_pcpu_ptr(name) ((void *)this_cpu_ptr(&__pcpu_unique_##name))
-#else
-#define get_pcpu_ptr(name) (this_cpu_ptr(&name))
-#endif
-
#ifndef alloc_percpu_gfp
#define NEED_ALLOC_PERCPU_GFP