net/mlx5: preserve promiscuous flag for flow isolation mode
authorYongseok Koh <yskoh@mellanox.com>
Thu, 2 Aug 2018 21:06:31 +0000 (14:06 -0700)
committerShahaf Shuler <shahafs@mellanox.com>
Sun, 5 Aug 2018 06:47:40 +0000 (08:47 +0200)
commit24b068ad71229139f74a1c45bd45dcf9f4611f89
treeaa47a52d5adc9c74755ceb6975b55f9e1bc32bdd
parente3386f9a512332718b3715ba71436235c589589b
net/mlx5: preserve promiscuous flag for flow isolation mode

mlx5_dev_ops_isolate doesn't have APIs for enabling/disabling promiscuous
mode as it can't be enabled in flow isolation mode. If the function
pointers are null, librte APIs such as rte_eth_promiscuous_enable/disable()
fail to set the flag (dev->data->promiscuous). The flag is used when
starting traffic by mlx5_traffic_enable(). When switching out of flow
isolation mode, promiscuous mode will not be set even though it has been
enabled.

Fixes: 0887aa7f27f3 ("net/mlx5: add new operations for isolated mode")
Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5_rxmode.c