]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: Devcom, extend mlx5_devcom_send_event to work with more than two devices
authorShay Drory <shayd@nvidia.com>
Mon, 6 Feb 2023 11:50:13 +0000 (13:50 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 2 Jun 2023 19:10:49 +0000 (12:10 -0700)
commite2a82bf8a428165a803c037228bdaa67cbe4764c
tree39254c145b31627615131b507f823f605094df72
parent90ca127c62e9963e8efd032409f4f4e70308de37
net/mlx5: Devcom, extend mlx5_devcom_send_event to work with more than two devices

mlx5_devcom_send_event is used to send event from one eswitch to the
other. In other words, only one event is sent, which means, no error
mechanism is needed.
However, In case devcom have more than two eswitches, a proper error
mechanism is needed. Hence, in case of error, devcom will perform the
error unwind, since devcom knows how many events were successful.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c
drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.h