i40e: fix BW info without DCB enabled
authorJingjing Wu <jingjing.wu@intel.com>
Sun, 22 Nov 2015 12:35:20 +0000 (20:35 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 23 Nov 2015 22:51:14 +0000 (23:51 +0100)
commit1487a7c6ef10bceedff50cf4736f082fe6c22b29
treef8f236aed43493a6797daae3b83562c682a75d9e
parent283a1eaf41667d59f639f2bd501eafe764669917
i40e: fix BW info without DCB enabled

If DCB is not enabled, the BW info is not stored for VSI. This
patch fixes this issue by merging functions i40e_vsi_dump_bw_config
and i40e_vsi_get_bw_info together.

Fixes: c8b9a3e3fe1b (i40e: support DCB mode)

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