Nelio Laranjeiro 4e66a6fef3 net/mlx5: fix an uninitialized variable
Since patch "mbuf: structure reorganization" the compiler complains
sometimes (in some conditions):

 .../drivers/net/mlx5/mlx5_rxtx.c: In function ‘mlx5_rx_burst’:
 .../drivers/net/mlx5/mlx5_rxtx.c:2082:17: error: ‘len’ may be used
uninitialized in this function [-Werror=maybe-uninitialized]

len is not initialised as it will be at the first segment of a received
packet, but it remains hard for the compiler to determine it.

Fixes: 9964b965ad69 ("net/mlx5: re-add Rx scatter support")
Cc: stable@dpdk.org

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2017-04-06 13:08:24 +02:00
..
2017-04-04 19:02:19 +02:00
2017-03-27 23:28:43 +02:00
2017-03-27 23:28:43 +02:00
2017-04-05 11:30:29 +02:00
2017-04-04 15:52:50 +02:00
2017-04-04 18:59:45 +02:00
2017-04-01 10:42:44 +02:00
2017-04-04 19:02:07 +02:00