[PATCH net-next 1/3] net: vrf: Minor refactoring for local address patches

2016-06-06 Thread David Ahern
Move the stripping of the ethernet header from is_ip_tx_frame into the ipv4 and ipv6 outbound functions and collapse vrf_send_v4_prep into vrf_process_v4_outbound. Signed-off-by: David Ahern --- drivers/net/vrf.c | 45 ++--- 1 file changed, 18 insertions(+

[PATCH net-next 1/3] net: vrf: Minor refactoring for local address patches

2016-06-02 Thread David Ahern
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 Aher