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)
commit4f1c7f1f2e954cca8230fad4b33b192f84307f50
treea7762dd63bc1b810679ec3d3c8e2a6fd486f5fe8
parentbc65a8a4f4d214c30c21cba90607c93ac676f6cf
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