i40e/base: workaround for firmware version
authorHelin Zhang <helin.zhang@intel.com>
Tue, 9 Sep 2014 07:21:36 +0000 (15:21 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 7 Oct 2014 16:02:11 +0000 (18:02 +0200)
commit93debffce873e483af2904d5e7669c7eded55e2f
tree3167084e5b17e5f4e620e969ca35a2c3fbfcfe0a
parentd0a51bf9f95f994ee8af496d8a769ebe1a5760e6
i40e/base: workaround for firmware version

The workaround helps fix the API if the FW is 4.2 or later.
In addition, an unreachable 'break' statement has been removed.

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Reviewed-by: Chen Jing <jing.d.chen@intel.com>
Tested-by: HuilongX Xu <huilongx.xu@intel.com>
lib/librte_pmd_i40e/i40e/i40e_adminq.c
lib/librte_pmd_i40e/i40e/i40e_common.c