]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
Merge branch 'mlxsw-preparations-for-nexthop-objects-support-part-1-2'
authorJakub Kicinski <kuba@kernel.org>
Sun, 15 Nov 2020 00:55:07 +0000 (16:55 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sun, 15 Nov 2020 00:55:08 +0000 (16:55 -0800)
commitcf70b5cfab9c50669325be130089a185458d0957
treef1c041f6cb7ebaa980222dfefedf8472ac21fa5e
parent49b1cabffbf930f2ee77e2834fdd61be2037ab79
parent245f4e44d2d6f4107274d057f18b14f6efadaff0
Merge branch 'mlxsw-preparations-for-nexthop-objects-support-part-1-2'

Ido Schimmel says:

====================
mlxsw: Preparations for nexthop objects support - part 1/2

This patch set contains small and non-functional changes aimed at making
it easier to support nexthop objects in mlxsw. Follow up patches can be
found here [1].

Patches #1-#4 add a type field to the nexthop group struct instead of
the existing protocol field. This will be used later on to add a nexthop
object type, which can contain both IPv4 and IPv6 nexthops.

Patches #5-#7 move the IPv4 FIB info pointer (i.e., 'struct fib_info')
from the nexthop group struct to the route. The pointer will not be
available when the nexthop group is a nexthop object, but it needs to be
accessible to routes regardless.

Patch #8 is the biggest change, but it is an entirely cosmetic change
and should therefore be easy to review. The motivation and the change
itself are explained in detail in the commit message.

Patches #9-#12 perform small changes so that two functions that are
currently split between IPv4 and IPv6 could be consolidated in patches

Patch #15 removes an outdated comment.

[1] https://github.com/idosch/linux/tree/submit/nexthop_objects
====================

Link: https://lore.kernel.org/r/20201113160559.22148-1-idosch@idosch.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>