From: Scott Feldman Date: Fri, 6 Mar 2015 05:21:19 +0000 (-0800) Subject: fib: hook IPv4 fib for hardware offload X-Git-Tag: omap-for-v4.2/o2_dc~131^2~329^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e05fd7166c6123334b7a739a697d677747aa462;p=pandora-kernel.git fib: hook IPv4 fib for hardware offload Call into the switchdev driver any time an IPv4 fib entry is added/modified/deleted from the kernel's FIB. The switchdev driver may or may not install the route to the offload device. In the case where the driver tries to install the route and something goes wrong (device's routing table is full, etc), then all of the offloaded routes will be flushed from the device, route forwarding falls back to the kernel, and no more routes are offloading. We can refine this logic later. For now, use the simplist model of offloading routes up to the point of failure, and then on failure, undo everything and mark IPv4 offloading disabled. Signed-off-by: Scott Feldman Signed-off-by: David S. Miller --- Reading git-diff-tree failed