]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita5b9ecfc76dfa6ac1ee5ac213d4fa3cf3714d05a
treef82066e771ed276e9b9eb5f93b5b0f28ca1061a2
parentbadb0b4dc9593bc1a957b36237e1184f54e824ef
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