net: l3mdev: Allow send on enslaved interface
authorDavid Ahern <dsa@cumulusnetworks.com>
Sat, 7 May 2016 23:49:00 +0000 (16:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 May 2016 02:33:52 +0000 (22:33 -0400)
commit1ff23beebdd315fe4d16070c08c065e89d7debb3
treef82066e771ed276e9b9eb5f93b5b0f28ca1061a2
parent4a65896f94fa82370041823837cd75aac1186b54
net: l3mdev: Allow send on enslaved interface

Allow udp and raw sockets to send by oif that is an enslaved interface
versus the l3mdev/VRF device. For example, this allows BFD to use ifindex
from IP_PKTINFO on a receive to send a response without the need to
convert to the VRF index. It also allows ping and ping6 to work when
specifying an enslaved interface (e.g., ping -I swp1 <ip>) which is
a natural use case.

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