[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220512100106.15bb15d6@kernel.org>
Date: Thu, 12 May 2022 10:01:06 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Íñigo Huguet <ihuguet@...hat.com>
Cc: ecree.xilinx@...il.com, habetsm.xilinx@...il.com,
amaftei@...arflare.com, davem@...emloft.net, edumazet@...gle.com,
pabeni@...hat.com, netdev@...r.kernel.org,
Tianhao Zhao <tizhao@...hat.com>
Subject: Re: [PATCH net 1/2] sfc: fix wrong tx channel offset with
efx_separate_tx_channels
On Wed, 11 May 2022 14:59:40 +0200 Íñigo Huguet wrote:
> if (efx_separate_tx_channels) {
> - efx->n_tx_channels =
> - min(max(n_channels / 2, 1U),
> - efx->max_tx_channels);
> - efx->tx_channel_offset =
> - n_channels - efx->n_tx_channels;
> - efx->n_rx_channels =
> - max(n_channels -
> - efx->n_tx_channels, 1U);
> + efx->n_tx_channels = min(max(n_channels / 2, 1U), efx->max_tx_channels);
> + efx->tx_channel_offset = n_channels - efx->n_tx_channels;
> + efx->n_rx_channels = max(n_channels - efx->n_tx_channels, 1U);
No whitespace cleanups in fixes, please.
Besides, I still prefer to stay under 80 chars.
Powered by blists - more mailing lists