i40e: fix crash on DCB query
authorJingjing Wu <jingjing.wu@intel.com>
Mon, 28 Mar 2016 07:37:28 +0000 (15:37 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 31 Mar 2016 12:46:02 +0000 (14:46 +0200)
commit34fcd34982377801accd6e64ccbd8952bfce40b8
tree592cdca565c7f1656b0be89af0b9c378b6877f5f
parent8f75bdd42faa4cb3bdcc444b7cbc372249cad1d9
i40e: fix crash on DCB query

Calling rte_eth_dev_get_dcb_info to get dcb info from i40e
driver if VMDQ is disabled, results in a segmentation fault.
This patch fixes it by treating VMDQ and No-VMDQ respectively
when querying dcb information.

Fixes: 5135f3ca49a7 ("i40e: enable DCB in VMDQ VSIs")

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