commit | 7984613e8ad8493c3ab69a41f35eccc3ccc4e528 | [log] [tgz] |
---|---|---|
author | Eric W. Biederman <ebiederm@xmission.com> | Tue Sep 15 21:39:09 2015 -0500 |
committer | Eric W. Biederman <ebiederm@xmission.com> | Fri Oct 09 02:49:20 2015 -0500 |
tree | eb94065fba447614a69c095f9aa3c9d781ebf53d | |
parent | df718423250c000ca4323a767cedc2f3219b685c [diff] |
ipv4: Only compute net once in ip_call_ra_chain ip_call_ra_chain is called early in the forwarding chain from ip_forward and ip_mr_input, which makes skb->dev the correct expression to get the input network device and dev_net(skb->dev) a correct expression for the network namespace the packet is being processed in. Compute the network namespace and store it in a variable to make the code clearer. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>