]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Define one flow for TXQ selection when TCs are configured
authorEran Ben Elisha <eranbe@mellanox.com>
Sun, 8 Dec 2019 12:29:45 +0000 (14:29 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 26 Feb 2020 01:05:39 +0000 (17:05 -0800)
commit03000655a31abe4cdf13dce4ab5b70561b867cb9
treef64656efb70cf1818f56459a7e99a1bdd4b6e9a8
parent87e152834bd2e33aa5357e9572aeb802d4fa0a5b
net/mlx5e: Define one flow for TXQ selection when TCs are configured

We shall always extract channel index out of the txq, regardless
of the relation between txq_ix and num channels. The extraction is
always valid, as if txq is smaller than number of channels,
txq_ix == priv->txq2sq[txq_ix]->ch_ix.

By doing so, we can remove an if clause from the select queue method,
and have one flow for all packets.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c