net/mlx5: add define of LRO segment chunk size
authorDekel Peled <dekelp@mellanox.com>
Wed, 18 Dec 2019 07:51:39 +0000 (09:51 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:45:23 +0000 (19:45 +0100)
commit3d491dd6f2cdf3a75f46ceddf75c5593d43b9c60
treeca27a1c4adc4622a1362b9cf9e5d7addf0c08601
parent6dbb080969dac337d0ef505751cced418a8b7fbc
net/mlx5: add define of LRO segment chunk size

Maximal size of coalesced LRO segment is set in TIR attributes as
number of chunks of size 256 bytes each.
Current implementation uses the hardcoded value 256 in several places.

This patch adds a definition for this value, and uses this definition
in all relevant places.
A debug message is added to clearly notify the actual configured size.

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_rxq.c