net/ixgbe: return success when SFP is not present
authorWei Dai <wei.dai@intel.com>
Tue, 24 Jan 2017 08:14:20 +0000 (16:14 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 30 Jan 2017 21:18:26 +0000 (22:18 +0100)
commit70efa56740ec394e46ca8f44da545724434a7f15
treef0ba0ccc75d1d278b88c24696679aeaa84174829
parent25ffc78946d2101ded5220d6496610e9b3babb48
net/ixgbe: return success when SFP is not present

Ignore the error=IXGBE_ERR_SFP_NOT_PRESENT when SFP is not present.
If it is not ignored, testpmd will fail during the NIC initialization
process.
Ixgbe kernel driver ignores this error and works well. So DPDK
does same thing.

Signed-off-by: Wei Dai <wei.dai@intel.com>
Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Tested-by: Yuan Peng <yuan.peng@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c