summaryrefslogtreecommitdiff
path: root/net/ipv4/ip_output.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-10-01 16:12:35 (GMT)
committerScott Wood <scottwood@freescale.com>2013-04-04 22:09:37 (GMT)
commitaf181493b162ac1f0d547cfb12a2ba57f4808dcd (patch)
treec6e91e61f86b3dc0eb6d4583e84d2ca5542e109d /net/ipv4/ip_output.c
parent9f4b7a42a47b88e7b85c2df219b9f03b589df227 (diff)
downloadlinux-fsl-qoriq-af181493b162ac1f0d547cfb12a2ba57f4808dcd.tar.xz
net: Use get_cpu_light() in ip_send_unicast_reply()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'net/ipv4/ip_output.c')
-rw-r--r--net/ipv4/ip_output.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index 3e98ed2..253692b 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -1508,7 +1508,8 @@ void ip_send_unicast_reply(struct net *net, struct sk_buff *skb, __be32 daddr,
if (IS_ERR(rt))
return;
- inet = &get_cpu_var(unicast_sock);
+ get_cpu_light();
+ inet = &__get_cpu_var(unicast_sock);
inet->tos = arg->tos;
sk = &inet->sk;
@@ -1532,7 +1533,7 @@ void ip_send_unicast_reply(struct net *net, struct sk_buff *skb, __be32 daddr,
ip_push_pending_frames(sk, &fl4);
}
- put_cpu_var(unicast_sock);
+ put_cpu_light();
ip_rt_put(rt);
}