]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Create IPv4 specific entry struct
authorIdo Schimmel <idosch@mellanox.com>
Tue, 18 Jul 2017 08:10:26 +0000 (10:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Jul 2017 18:57:33 +0000 (11:57 -0700)
commit4a651633dad00b4a95197773ada73db20fd5635f
treea7762dd63bc1b810679ec3d3c8e2a6fd486f5fe8
parent83ece514395d8d58a4c30e63ccff177aa6f7f042
mlxsw: spectrum_router: Create IPv4 specific entry struct

Some of the parameters stored in the FIB entry structure are specific to
IPv4 and therefore better placed in an IPv4 specific structure.

Create an IPv4 specific structure that encapsulates the common FIB entry
structure and contains IPv4 specific parameters.

In a follow-up patchset an IPv6 specific structure will be introduced.

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