• Ido Schimmel's avatar
    mlxsw: spectrum_router: Add nexthop group type field · a06191aa
    Ido Schimmel authored
    Currently, the type (i.e., IPv4/IPv6) of the nexthop group is derived
    from the neighbour table associated with the group.
    
    This is problematic when nexthop objects are taken into account, as a
    nexthop group object can contain both IPv4 and IPv6 nexthops.
    
    Instead, add a new field that indicates the type of the group and
    initialize it during the group's creation. Currently, the types are IPv4
    ('struct fib_info') and IPv6 ('struct fib6_info'). In the future another
    type will be added for nexthop objects ('struct nexthop').
    Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
    Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    a06191aa
spectrum_router.c 231 KB