Thomas Monjalon 554f06d10b net/mlx4: fix possible uninitialized variable
When compiling with gcc -O1, this error appears:
	drivers/net/mlx4/mlx4_ethdev.c: In function ‘mlx4_rxmode_toggle’:
	rte_log.h:321:3: error:
	‘mode’ may be used uninitialized in this function

The function mlx4_rxmode_toggle is never called with a value which
is not in the switch block, but GCC complains about it with -O1.
So the default case is "fixed" by setting string "undefined".

Fixes: eacaac7bae36 ("net/mlx4: restore promisc and allmulti support")
Cc: stable@dpdk.org

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
2018-11-23 01:43:39 +01:00
..
2018-09-28 01:41:01 +02:00
2018-04-11 01:47:47 +02:00
2018-04-11 01:47:47 +02:00
2018-04-11 01:47:47 +02:00
2018-07-10 14:02:57 +02:00
2018-07-10 14:02:57 +02:00
2018-07-10 14:02:57 +02:00
2018-04-11 01:47:47 +02:00
2018-04-11 01:47:47 +02:00