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)
commit4229e0ea2c9936b3093990353b211bcd7802a2d5
treef64656efb70cf1818f56459a7e99a1bdd4b6e9a8
parentf13e4415d2715145017cbdc35f33634acf935a6f
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