]> git.baikalelectronics.ru Git - kernel.git/commit
switchdev: implement IPv4 fib ndo wrappers
authorScott Feldman <sfeldma@gmail.com>
Fri, 6 Mar 2015 05:21:17 +0000 (21:21 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Mar 2015 05:24:58 +0000 (00:24 -0500)
commit923b63424ef80f48448ca5abcc45405c588a4d2f
tree4185b4fc112a3b988876ece9e4e542ec87e21663
parent0053b0c302cd270a82f39d300052116d23649b57
switchdev: implement IPv4 fib ndo wrappers

Flesh out ndo wrappers to call into device driver.  To call into device driver,
the wrapper must interate over route's nexthops to ensure all nexthop devs
belong to the same switch device.  Currently, there is no support for route's
nexthops spanning offloaded and non-offloaded devices, or spanning ports of
multiple offload devices.

Since switch device ports may be stacked under virtual interfaces (bonds and/or
bridges), and the route's nexthop may be on the virtual interface, the wrapper
will traverse the nexthop dev down to the base dev.  It's the base dev that's
passed to the switchdev driver's ndo ops.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/switchdev/switchdev.c