net/i40e: fix DCB configuration
authorJingjing Wu <jingjing.wu@intel.com>
Fri, 4 Nov 2016 05:42:33 +0000 (13:42 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 7 Nov 2016 16:38:29 +0000 (17:38 +0100)
commitc6431c891d9e9691e3205fe5c5350071cbaeb852
treea2ee0afb11b384d6fe1c3708bde12b74374440fc
parent86ef65ee58caace3a54ae94bb5b387070b28d539
net/i40e: fix DCB configuration

Removing stopping LLDP in firmware is a workaround for a
known errata which can cause Rx hang. But the changing will
cause DCB configuration fails. That is because when LLDP is
enabled, the return value of i40e_init_dcb is success. But
following check just considered the case when LLDP agent
is disabled.
This patch fixes this issue.

Fixes: fcbd40d4327b ("net/i40e: fix Rx hang when disable LLDP")

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