]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_ipip: Extract mlxsw_sp_l3addr_is_zero
authorPetr Machata <petrm@mellanox.com>
Tue, 27 Feb 2018 13:53:35 +0000 (14:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 19:46:25 +0000 (14:46 -0500)
commit919e59302556b5c0565cdd273f67846a2c2cbfb7
tree91c321183435f389445fcc0e5d564d0939877039
parentf917fe82356f2cdfe6940b7a2c02380293d5b094
mlxsw: spectrum_ipip: Extract mlxsw_sp_l3addr_is_zero

Extract the logic for determining whether a given IPv4/IPv6 address is
all-zeroes from mlxsw_sp_ipip_tunnel_complete to a separate function.
Make that function public within the 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_ipip.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.h