Skip to content
  1. Aug 04, 2017
  2. Aug 03, 2017
    • David S. Miller's avatar
      Merge branch 'per-nexthop-offload' · 5a4d148f
      David S. Miller authored
      
      
      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: default avatarDavid S. Miller <davem@davemloft.net>
      5a4d148f
    • Ido Schimmel's avatar
      ipv4: fib: Remove unused functions · 2202e35d
      Ido Schimmel authored
      
      
      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: default avatarIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
      Acked-by: default avatarDavid Ahern <dsahern@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2202e35d
    • Ido Schimmel's avatar
      mlxsw: spectrum_router: Refresh offload indication upon group refresh · 77d964e6
      Ido Schimmel authored
      
      
      Now that we provide offload indication using the nexthop's flags we must
      refresh the offload indication whenever the offload state within the
      group changes.
      
      This didn't matter until now, as offload indication was provided using
      the FIB info flags and multipath routes were marked as offloaded as long
      as one of the nexthops was offloaded.
      
      Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
      Tested-by: default avatarDavid Ahern <dsahern@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      77d964e6