• Petr Machata's avatar
    nexthop: Specialize rtm_nh_policy · 643d0878
    Petr Machata authored
    This policy is currently only used for creation of new next hops and new
    next hop groups. Rename it accordingly and remove the two attributes that
    are not valid in that context: NHA_GROUPS and NHA_MASTER.
    
    For consistency with other policies, do not mention policy array size in
    the declarator, and replace NHA_MAX for ARRAY_SIZE as appropriate.
    
    Note that with this commit, NHA_MAX and __NHA_MAX are not used anymore.
    Leave them in purely as a user API.
    Signed-off-by: default avatarPetr Machata <petrm@nvidia.com>
    Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    643d0878
nexthop.c 50.2 KB