i40e: Update i40e_init_dcb to return correct error
authorChinh T Cao <chinh.t.cao@intel.com>
Wed, 6 Feb 2019 23:08:20 +0000 (15:08 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 16 Apr 2019 22:10:47 +0000 (15:10 -0700)
commit54dea0e7efd1b60123748fa48000afc79370f4a8
treef022d2be55576f7330308cda05f695e0b1ab7d56
parent26221331733137eafd205bf5046846a10539b89c
i40e: Update i40e_init_dcb to return correct error

Modify the i40e_init_dcb to return the correct error when LLDP or DCBX
is not in operational state.

Signed-off-by: Chinh T Cao <chinh.t.cao@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_dcb.c
drivers/net/ethernet/intel/i40e/i40e_dcb.h
drivers/net/ethernet/intel/i40e/i40e_main.c