]> git.baikalelectronics.ru Git - 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)
commitf64a5f347b4b838d749547935024c18504d8bb84
tree8958f5d7ce761c1ce0b3e7de94ea18c17e777a71
parentc02438834bdad3d48bcb44c84aa8cc7ea224a0c9
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