]> 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)
commita218ff0534adfa3a3b91920f9519340a6c509b43
treea7762dd63bc1b810679ec3d3c8e2a6fd486f5fe8
parent318225fbbb0af74655a632a91482091ba94320f9
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