]> 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)
commit4a387150f6b579a19f6249923ed95dba5cee0576
tree080e9bcd76e8fa055145a6dcfc592bbdb9a30df8
parent478d1e22df7f8d6e579108f75eda10657500e414
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