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)
commit9ab0233728cab92575eee90a86cda639ef34ba57
treee88f5c7b0fd842f225e622663b27696b5a07e7ae
parentfd1b225963189f2f16d44649496a8246c5cfdbc2
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