]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: fix mlxsw_sp2_nve_vxlan_learning_set() return type
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 5 Oct 2023 14:00:12 +0000 (17:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Oct 2023 21:08:53 +0000 (23:08 +0200)
commit469bef81293fafecaea3178165395bf51ff57259
treecaf229c07f2f5590b0d3dad6ea297f4eafad8727
parent217efe32a45249eb07dcd7197e8403de98345e66
mlxsw: fix mlxsw_sp2_nve_vxlan_learning_set() return type

[ Upstream commit 1e0b72a2a6432c0ef67ee5ce8d9172a7c20bba25 ]

The mlxsw_sp2_nve_vxlan_learning_set() function is supposed to return
zero on success or negative error codes.  So it needs to be type int
instead of bool.

Fixes: 4ee70efab68d ("mlxsw: spectrum_nve: Add support for VXLAN on Spectrum-2")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c