]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv4: Do not drop to make_route if oif is l3mdev
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 12 Oct 2016 20:20:11 +0000 (13:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Oct 2016 16:05:26 +0000 (12:05 -0400)
commit5f789c5f715429ea9d3b6b91e1a857b4c6c3620c
treea8b14bd20547bbcf015e0fccff23f17dbf02d7ec
parent5ccb5a777d9c89b925a9256ac325d43cd002bc20
net: ipv4: Do not drop to make_route if oif is l3mdev

Commit 41c4a006031b was a bit aggressive removing l3mdev calls in
the IPv4 stack. If the fib_lookup fails we do not want to drop to
make_route if the oif is an l3mdev device.

Also reverts e8705c9f22e8 ("net: l3mdev: Remove netif_index_is_l3_master")
which removed netif_index_is_l3_master.

Fixes: 41c4a006031b ("net: l3mdev: remove redundant calls")
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/l3mdev.h
net/ipv4/route.c