]> asedeno.scripts.mit.edu Git - linux.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)
commit7e58a6c6627c8083a21351ef6bbc60ad0eaae1de
tree91c321183435f389445fcc0e5d564d0939877039
parent63d638012e78ed2eb7bf484c30d2cc3263c3b5a1
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