[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <bc1406b6-3082-4073-9523-b1bf35cb1908@nvidia.com>
Date: Tue, 27 May 2025 02:11:55 +0300
From: Yevgeny Kliteynik <kliteyn@...dia.com>
To: Paolo Abeni <pabeni@...hat.com>, 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>,
Gal Pressman <gal@...dia.com>
Subject: Re: [PATCH net-next 2/4] net/mlx5: HWS, make sure the uplink is the
last destination
On 26-May-25 09:39, Paolo Abeni wrote:
> 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()
Indeed, thanks.
-- YK
> /P
>
Powered by blists - more mailing lists