]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: vxlan: Return bool instead of opaque ptr in port_lookup()
authorSaeed Mahameed <saeedm@mellanox.com>
Sat, 16 May 2020 00:11:29 +0000 (17:11 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 25 Jun 2020 19:41:46 +0000 (12:41 -0700)
commitbc767043e9f61698b600e9f3fa5da543b32ab2f8
treea21ff67117597a524a2e7f8bee1a04d9a3e15efb
parent3b4a6b6626bbfb05337fb2c73e9f5dc9c50ebd8e
net/mlx5e: vxlan: Return bool instead of opaque ptr in port_lookup()

struct mlx5_vxlan_port is not exposed to the outside callers, it is
redundant to return a pointer to it from mlx5_vxlan_port_lookup(), to be
only used as a boolean, so just return a boolean.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/vxlan.c
drivers/net/ethernet/mellanox/mlx5/core/lib/vxlan.h