]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Tx, Don't implicitly assume SKB-less wqe has one WQEBB
authorEran Ben Elisha <eranbe@mellanox.com>
Fri, 5 Jul 2019 15:30:18 +0000 (18:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jul 2019 23:29:19 +0000 (16:29 -0700)
commit323d09486672f6e3498b77fc9c7347d64a284fa3
treee88f5c7b0fd842f225e622663b27696b5a07e7ae
parentd03278d82952a1195e9140a60a93f7b047335e01
net/mlx5e: Tx, Don't implicitly assume SKB-less wqe has one WQEBB

When polling a CQE of an SKB-less WQE, don't assume it consumed only
one WQEBB. Use wi->num_wqebbs directly instead.
In the downstream patch, SKB-less WQEs might have more the one WQEBB,
thus this change is needed.

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