net/mlx5: fix VLAN configuration after port stop
authorShahaf Shuler <shahafs@mellanox.com>
Wed, 13 Dec 2017 14:03:10 +0000 (16:03 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit3a76da0ac85ff90280ec612dd444a553a4782f7b
treebfeeea3311e8bae1febfda74f69602180d112b4c
parent642088ddff841783f27b4a73f50c917ea2cfa953
net/mlx5: fix VLAN configuration after port stop

Ethdev layer has an API to configure vlan setting on the flight, i.e.
when the port state is start.

Calling such API when the port is stopped may cause segmentation fault
as the related Verbs contexts has not been created yet.

Fixes: 09cb5b581762 ("net/mlx5: separate DPDK from verbs Rx queue objects")
Cc: stable@dpdk.org
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_vlan.c