]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Generalize __mlxsw_sp_ipip_entry_update_tunnel()
authorPetr Machata <petrm@mellanox.com>
Fri, 3 Nov 2017 09:03:38 +0000 (10:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Nov 2017 00:15:17 +0000 (09:15 +0900)
commitf6474d7ec4b86ea4043df640146a2c5656601426
tree296172824411375cd19150adfcf81a5b3d5642fc
parent3baea90e211a6e6f17b152da052ee4d34690556c
mlxsw: spectrum_router: Generalize __mlxsw_sp_ipip_entry_update_tunnel()

The work that needs to be done to update HW configuration in response to
changes is similar to what __mlxsw_sp_ipip_entry_update_tunnel() already
does, but with a number of twists: each change requires a different
subset of things to happen. Extend the function to support all these
uses, and allow finely-grained configuration of what should happen at
each call through a suite of function arguments.

Publish the updated function to allow use from the spectrum_ipip module.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-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
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h