1. 04 8月, 2017 38 次提交
  2. 03 8月, 2017 2 次提交
    • D
      Merge branch 'per-nexthop-offload' · 5a4d148f
      David S. Miller 提交于
      Jiri Pirko says:
      
      ====================
      ipv4: fib: Provide per-nexthop offload indication
      
      Ido says:
      
      Offload indication for IPv4 routes is currently set in the FIB info's
      flags. When multipath routes are employed, this can lead to a route being
      marked as offloaded although only one of its nexthops is actually
      offloaded.
      
      Instead, this patchset aims to proivde a higher resolution for the offload
      indication and report it on a per-nexthop basis.
      
      Example output from patched iproute:
      
      $ ip route show 192.168.200.0/24
      192.168.200.0/24
              nexthop via 192.168.100.2 dev enp3s0np7 weight 1 offload
              nexthop via 192.168.101.3 dev enp3s0np8 weight 1
      
      And once the second gateway is resolved:
      
      $ ip route show 192.168.200.0/24
      192.168.200.0/24
              nexthop via 192.168.100.2 dev enp3s0np7 weight 1 offload
              nexthop via 192.168.101.3 dev enp3s0np8 weight 1 offload
      
      First patch teaches the kernel to look for the offload indication in the
      nexthop flags. Patches 2-5 adjust current capable drivers to provide
      offload indication on a per-nexthop basis. Last patch removes no longer
      used functions to set offload indication in the FIB info's flags.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5a4d148f
    • I
      ipv4: fib: Remove unused functions · 2202e35d
      Ido Schimmel 提交于
      Previous patches converted users of these functions to provide offload
      indication using the nexthop's flags instead of the FIB info's.
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NJiri Pirko <jiri@mellanox.com>
      Acked-by: NDavid Ahern <dsahern@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2202e35d