net/i40e: fix VSI removing when releasing
authorJingjing Wu <jingjing.wu@intel.com>
Mon, 25 Jul 2016 05:36:09 +0000 (13:36 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 25 Jul 2016 15:55:12 +0000 (17:55 +0200)
commit47750a2bba600447543bad6deefaad9259eed275
tree1c9c3f83fb147f91996914b24ec4740bacc5d015
parentb7aabd7a87cee66ec3c8e010ee45e0ca70d0d914
net/i40e: fix VSI removing when releasing

VSI structure needs to be removed from TAILQ list when releasing.
But for the child VSI it will be removed again after the structure
is freed. It will cause core dump when the DPDK i40e using as PF
host driver.

This patch fixes it to only remove child VSI from TAILQ before
send adminq command to remove it from hardware.

Fixes: 4861cde46116 ("i40e: new poll mode driver")
Fixes: 440499cf5376 ("net/i40e: support floating VEB")

Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
drivers/net/i40e/i40e_ethdev.c