diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-10-09 13:44:53 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-12 19:44:14 -0700 |
commit | 37fcbab61b8ecf75cb5fd81e5809b71c270f9632 (patch) | |
tree | 45f0b17eec491c1f35adff81aa1d1b07c4a7ea48 /drivers/net/macvlan.c | |
parent | 161642e24fee40fba2c5bc2ceacc00d118a22d65 (diff) | |
download | linux-rt-37fcbab61b8ecf75cb5fd81e5809b71c270f9632.tar.gz |
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/macvlan.c')
0 files changed, 0 insertions, 0 deletions