summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5.h
diff options
context:
space:
mode:
authorMatan Azrad <matan@mellanox.com>2019-07-22 14:52:24 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-07-23 14:31:36 +0200
commitee39fe82ea1867421d5e151167def4cf914e7e0a (patch)
tree3b8279c5b3667f0539ba782a2191e11b53f15030 /drivers/net/mlx5/mlx5.h
parenta496e093177781fcf449b5af36952e922cf0f2b5 (diff)
downloaddpdk-ee39fe82ea1867421d5e151167def4cf914e7e0a.zip
dpdk-ee39fe82ea1867421d5e151167def4cf914e7e0a.tar.gz
dpdk-ee39fe82ea1867421d5e151167def4cf914e7e0a.tar.xz
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>
Diffstat (limited to 'drivers/net/mlx5/mlx5.h')
-rw-r--r--drivers/net/mlx5/mlx5.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h
index b98c406..6cb8858 100644
--- a/drivers/net/mlx5/mlx5.h
+++ b/drivers/net/mlx5/mlx5.h
@@ -625,6 +625,7 @@ struct mlx5_priv {
struct ibv_flow_action *verbs_action;
/**< Verbs modify header action object. */
uint8_t ft_type; /**< Flow table type, Rx or Tx. */
+ uint8_t max_lro_msg_size;
/* Tags resources cache. */
uint32_t link_speed_capa; /* Link speed capabilities. */
struct mlx5_xstats_ctrl xstats_ctrl; /* Extended stats control. */