net/mlx5: adjust maximum LRO message size
authorMatan Azrad <matan@mellanox.com>
Mon, 22 Jul 2019 14:52:24 +0000 (14:52 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:36 +0000 (14:31 +0200)
commitee39fe82ea1867421d5e151167def4cf914e7e0a
tree3b8279c5b3667f0539ba782a2191e11b53f15030
parenta496e093177781fcf449b5af36952e922cf0f2b5
net/mlx5: adjust maximum LRO message size

LRO message is contained in the MPRQ strides.
While the LRO message size cannot be bigger than 65280 according to the
PRM, the strides which contain it may be bigger than the maximum buffer
size allowed in dpdk mbuf - 0xFFFF.

Adjust the maximum LRO message size to avoid buffer length overflow.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_rxq.c