net: fix saving TX flow hash in sock for outgoing connections
[firefly-linux-kernel-4.4.55.git] / net / ipv4 / route.c
index 793c0bb8c4fd9d0f8db91bc715e842ca2edc3620..2d4ae469b471a4fff941e0dd13d014dfd222f6a8 100644 (file)
@@ -1311,7 +1311,7 @@ static bool rt_cache_route(struct fib_nh *nh, struct rtable *rt)
        if (rt_is_input_route(rt)) {
                p = (struct rtable **)&nh->nh_rth_input;
        } else {
-               p = (struct rtable **)__this_cpu_ptr(nh->nh_pcpu_rth_output);
+               p = (struct rtable **)raw_cpu_ptr(nh->nh_pcpu_rth_output);
        }
        orig = *p;
 
@@ -1939,7 +1939,7 @@ static struct rtable *__mkroute_output(const struct fib_result *res,
                                do_cache = false;
                                goto add;
                        }
-                       prth = __this_cpu_ptr(nh->nh_pcpu_rth_output);
+                       prth = raw_cpu_ptr(nh->nh_pcpu_rth_output);
                }
                rth = rcu_dereference(*prth);
                if (rt_cache_valid(rth)) {