net/mlx5: fix packet length assert in MPRQ
authorAlexander Kozyrev <akozyrev@mellanox.com>
Mon, 27 Apr 2020 18:23:13 +0000 (18:23 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 5 May 2020 13:54:26 +0000 (15:54 +0200)
commit9a6ea33af9fac4c2a00a4bb595875a393a90b12d
tree8de7f0dd11c3879d3d4f7ab002ecd7b6be8e5e5d
parent0c55591588e017f1ef2c1ac845a1fa23ea1e19fb
net/mlx5: fix packet length assert in MPRQ

The assert that checks if there is a enough room for the
whole packet minus headroom data is written incorrectly.
The check should be negated in order to work properly.

Fixes: bd0d5930bf56 ("net/mlx5: enable MPRQ multi-stride operations")

Signed-off-by: Alexander Kozyrev <akozyrev@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_rxtx.c