[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <be4c5d3d-f2c9-4a09-96ec-0b25470ef9f7@redhat.com>
Date: Mon, 26 May 2025 08:39:04 +0200
From: Paolo Abeni <pabeni@...hat.com>
To: Tariq Toukan <tariqt@...dia.com>, "David S. Miller"
<davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
Eric Dumazet <edumazet@...gle.com>, Andrew Lunn <andrew+netdev@...n.ch>
Cc: Saeed Mahameed <saeedm@...dia.com>, Leon Romanovsky <leon@...nel.org>,
netdev@...r.kernel.org, linux-rdma@...r.kernel.org,
linux-kernel@...r.kernel.org, Moshe Shemesh <moshe@...dia.com>,
Mark Bloch <mbloch@...dia.com>, Vlad Dogaru <vdogaru@...dia.com>,
Yevgeny Kliteynik <kliteyn@...dia.com>, Gal Pressman <gal@...dia.com>
Subject: Re: [PATCH net-next 2/4] net/mlx5: HWS, make sure the uplink is the
last destination
On 5/25/25 1:15 PM, Tariq Toukan wrote:
> @@ -1429,6 +1426,14 @@ mlx5hws_action_create_dest_array(struct mlx5hws_context *ctx,
> }
> }
>
> + if (last_dest_idx != -1) {
> + struct mlx5hws_cmd_set_fte_dest tmp;
> +
> + tmp = dest_list[last_dest_idx];
> + dest_list[last_dest_idx] = dest_list[num_dest - 1];
> + dest_list[num_dest - 1] = tmp;
Here you can use swap()
/P
Powered by blists - more mailing lists