net/mlx5: fix updating total length of multi-packet send
authorYongseok Koh <yskoh@mellanox.com>
Thu, 2 Feb 2017 18:43:32 +0000 (10:43 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 10 Feb 2017 11:25:49 +0000 (12:25 +0100)
commit76bf1574e3a8ebbce845fe8c6691665dfc657ddf
treea4fb3feb521e32718683edc3847be8d7e71724a8
parentae955b2bcffb27a7cbccb4c585068d9ed36a5d6a
net/mlx5: fix updating total length of multi-packet send

The total length field in descriptor of inlined multi-packet send must be
updated before closing a session. There's possibility of updating it
afterward. This bug might cause one packet out of MLX5_MPW_DSEG_MAX gets
silently dropped by HW and impact performance, especially lossless test.

Fixes: 230189d9ff22 ("net/mlx5: support multi-packet send")
Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_rxtx.c