net: vrf: Minor refactoring for local address patches
authorDavid Ahern <dsa@cumulusnetworks.com>
Thu, 2 Jun 2016 20:15:10 +0000 (13:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jun 2016 22:19:02 +0000 (15:19 -0700)
commit09fcf916620a7cfc9f2a74f315168e4770249534
tree080e9bcd76e8fa055145a6dcfc592bbdb9a30df8
parentb94eb2ce3b2abc1b6b533975d3e7750b78b35a83
net: vrf: Minor refactoring for local address patches

Move the stripping of the ethernet header from is_ip_tx_frame into the
ipv4 and ipv6 outbound functions. If the packet is destined to a local
address the header is retained since the packet is sent back to netif_rx.

Collapse vrf_send_v4_prep into vrf_process_v4_outbound.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vrf.c