]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitb5d6fbdeede861b52d67b9a4ea3fdfcc6e6865cd
tree4185b4fc112a3b988876ece9e4e542ec87e21663
parent104616e74e0b464d449fdd2ee2f547d2fad71610
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