git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04e395f
)
net/ixgbe/base: complete HW init when SFP not present
author
Wenzhuo Lu
<wenzhuo.lu@intel.com>
Wed, 1 Mar 2017 06:04:48 +0000
(14:04 +0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Tue, 4 Apr 2017 13:52:51 +0000
(15:52 +0200)
If SFP module is not present, reset_hw doesn't return success.
SW should complete the initialization, or with specific module
it resulted in no link when the module was later inserted.
Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/ixgbe/base/ixgbe_common.c
patch
|
blob
|
history
diff --git
a/drivers/net/ixgbe/base/ixgbe_common.c
b/drivers/net/ixgbe/base/ixgbe_common.c
index
9645667
..
df6fbf9
100644
(file)
--- a/
drivers/net/ixgbe/base/ixgbe_common.c
+++ b/
drivers/net/ixgbe/base/ixgbe_common.c
@@
-495,7
+495,7
@@
s32 ixgbe_init_hw_generic(struct ixgbe_hw *hw)
/* Reset the hardware */
status = hw->mac.ops.reset_hw(hw);
- if (status == IXGBE_SUCCESS) {
+ if (status == IXGBE_SUCCESS
|| status == IXGBE_ERR_SFP_NOT_PRESENT
) {
/* Start the HW */
status = hw->mac.ops.start_hw(hw);
}