net/mlx5e: Tx, Strict the room needed for SQ edge NOPs
authorTariq Toukan <tariqt@mellanox.com>
Thu, 11 Jul 2019 08:20:22 +0000 (11:20 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 1 Aug 2019 19:33:30 +0000 (12:33 -0700)
commit68865419ba1bf502a5bd279a500deda64000249d
tree6323b79a6d2d18fbde937462f0cba60af248a7b4
parent558101f1b9807b34d8eeefb352d11e642b7e98dd
net/mlx5e: Tx, Strict the room needed for SQ edge NOPs

We use NOPs to populate the WQ fragment edge if the WQE does not fit
in frag, to avoid WQEs crossing a page boundary (or wrap-around the WQ).

The upper bound on the needed number of NOPs is one WQEBB less than
the largest possible WQE, for otherwise the WQE would certainly fit.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h