]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4d4d71c336838c034e68b2bdfc7142f803d7d402
tree080e9bcd76e8fa055145a6dcfc592bbdb9a30df8
parented5609e6be3d0e5ea490b4f7a6da9c15ad1db4c4
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