net/mlx4: fix Tx packet drop application report
authorMatan Azrad <matan@mellanox.com>
Wed, 6 Dec 2017 17:57:49 +0000 (17:57 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commite3ecea72a85626a0708625b7ad9a290ebdecfe24
treec3ee8c4b7f91951fb04806e1e1400eac855a0b63
parent0a40a1363a4df8043f9a7e93289eda2ea52815a7
net/mlx4: fix Tx packet drop application report

When invalid lkey is sent to HW, HW sends an error notification in
completion function.

The previous code wouldn't crash but doesn't add any application report
in case of completion error, so application cannot know that packet
actually was dropped in case of invalid lkey.

Return back the lkey validation to Tx path.

Fixes: 2eee458746bc ("net/mlx4: remove error flows from Tx fast path")
Cc: stable@dpdk.org
Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4_rxtx.c