]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
mlxsw: spectrum_router: Make FIB node retrieval family agnostic
authorIdo Schimmel <idosch@mellanox.com>
Tue, 18 Jul 2017 08:10:21 +0000 (10:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Jul 2017 18:57:33 +0000 (11:57 -0700)
commit731ea1ca429fe7c959522129c526bdda442d7c54
tree8958f5d7ce761c1ce0b3e7de94ea18c17e777a71
parent160e22aa2629875c23092e38eded442002d1ebda
mlxsw: spectrum_router: Make FIB node retrieval family agnostic

A FIB node is an entity which stores routes sharing the same prefix and
length. The data structure itself is already family agnostic, but we
make some of its operations agnostic as well and thus re-use them for
IPv6 offload.

Instead of passing an IPv4-specific structure to fib4_node_get(), pass
general routing parameters and rename the function accordingly.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c