git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/i40e: support ESP in customized code
[dpdk.git]
/
drivers
/
net
/
ice
/
base
/
ice_dcb.c
diff --git
a/drivers/net/ice/base/ice_dcb.c
b/drivers/net/ice/base/ice_dcb.c
index
a6fbedd
..
7048dbd
100644
(file)
--- a/
drivers/net/ice/base/ice_dcb.c
+++ b/
drivers/net/ice/base/ice_dcb.c
@@
-966,9
+966,9
@@
enum ice_status ice_init_dcb(struct ice_hw *hw, bool enable_mib_change)
pi->dcbx_status == ICE_DCBX_STATUS_NOT_STARTED) {
/* Get current DCBX configuration */
ret = ice_get_dcb_cfg(pi);
pi->dcbx_status == ICE_DCBX_STATUS_NOT_STARTED) {
/* Get current DCBX configuration */
ret = ice_get_dcb_cfg(pi);
- pi->is_sw_lldp = (hw->adminq.sq_last_status == ICE_AQ_RC_EPERM);
if (ret)
return ret;
if (ret)
return ret;
+ pi->is_sw_lldp = false;
} else if (pi->dcbx_status == ICE_DCBX_STATUS_DIS) {
return ICE_ERR_NOT_READY;
}
} else if (pi->dcbx_status == ICE_DCBX_STATUS_DIS) {
return ICE_ERR_NOT_READY;
}
@@
-976,8
+976,8
@@
enum ice_status ice_init_dcb(struct ice_hw *hw, bool enable_mib_change)
/* Configure the LLDP MIB change event */
if (enable_mib_change) {
ret = ice_aq_cfg_lldp_mib_change(hw, true, NULL);
/* Configure the LLDP MIB change event */
if (enable_mib_change) {
ret = ice_aq_cfg_lldp_mib_change(hw, true, NULL);
- if (
!
ret)
- pi->is_sw_lldp =
fals
e;
+ if (ret)
+ pi->is_sw_lldp =
tru
e;
}
return ret;
}
return ret;