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
i40e: fix out of bound read
[dpdk.git]
/
lib
/
librte_pmd_ixgbe
/
ixgbe_82599_bypass.c
diff --git
a/lib/librte_pmd_ixgbe/ixgbe_82599_bypass.c
b/lib/librte_pmd_ixgbe/ixgbe_82599_bypass.c
index
0f0000c
..
12cc01d
100644
(file)
--- a/
lib/librte_pmd_ixgbe/ixgbe_82599_bypass.c
+++ b/
lib/librte_pmd_ixgbe/ixgbe_82599_bypass.c
@@
-63,7
+63,7
@@
ixgbe_set_fiber_fixed_speed(struct ixgbe_hw *hw, ixgbe_link_speed speed)
rs = IXGBE_SFF_SOFT_RS_SELECT_1G;
break;
default:
rs = IXGBE_SFF_SOFT_RS_SELECT_1G;
break;
default:
-
DEBUGOUT("Invalid fixed module speed\n
");
+
PMD_DRV_LOG(ERR, "Invalid fixed module speed
");
return;
}
return;
}
@@
-72,7
+72,7
@@
ixgbe_set_fiber_fixed_speed(struct ixgbe_hw *hw, ixgbe_link_speed speed)
IXGBE_I2C_EEPROM_DEV_ADDR2,
&eeprom_data);
if (status) {
IXGBE_I2C_EEPROM_DEV_ADDR2,
&eeprom_data);
if (status) {
-
DEBUGOUT("Failed to read Rx Rate Select RS0\n
");
+
PMD_DRV_LOG(ERR, "Failed to read Rx Rate Select RS0
");
goto out;
}
goto out;
}
@@
-82,7
+82,7
@@
ixgbe_set_fiber_fixed_speed(struct ixgbe_hw *hw, ixgbe_link_speed speed)
IXGBE_I2C_EEPROM_DEV_ADDR2,
eeprom_data);
if (status) {
IXGBE_I2C_EEPROM_DEV_ADDR2,
eeprom_data);
if (status) {
-
DEBUGOUT("Failed to write Rx Rate Select RS0\n
");
+
PMD_DRV_LOG(ERR, "Failed to write Rx Rate Select RS0
");
goto out;
}
goto out;
}
@@
-91,7
+91,7
@@
ixgbe_set_fiber_fixed_speed(struct ixgbe_hw *hw, ixgbe_link_speed speed)
IXGBE_I2C_EEPROM_DEV_ADDR2,
&eeprom_data);
if (status) {
IXGBE_I2C_EEPROM_DEV_ADDR2,
&eeprom_data);
if (status) {
-
DEBUGOUT("Failed to read Rx Rate Select RS1\n
");
+
PMD_DRV_LOG(ERR, "Failed to read Rx Rate Select RS1
");
goto out;
}
goto out;
}
@@
-101,7
+101,7
@@
ixgbe_set_fiber_fixed_speed(struct ixgbe_hw *hw, ixgbe_link_speed speed)
IXGBE_I2C_EEPROM_DEV_ADDR2,
eeprom_data);
if (status) {
IXGBE_I2C_EEPROM_DEV_ADDR2,
eeprom_data);
if (status) {
-
DEBUGOUT("Failed to write Rx Rate Select RS1\n
");
+
PMD_DRV_LOG(ERR, "Failed to write Rx Rate Select RS1
");
goto out;
}
out:
goto out;
}
out:
@@
-130,7
+130,7
@@
ixgbe_setup_mac_link_multispeed_fixed_fiber(struct ixgbe_hw *hw,
bool link_up = false;
bool negotiation;
bool link_up = false;
bool negotiation;
-
DEBUGFUNC(""
);
+
PMD_INIT_FUNC_TRACE(
);
/* Mask off requested but non-supported speeds */
status = ixgbe_get_link_capabilities(hw, &link_speed, &negotiation);
/* Mask off requested but non-supported speeds */
status = ixgbe_get_link_capabilities(hw, &link_speed, &negotiation);
@@
-261,7
+261,7
@@
ixgbe_bypass_get_media_type(struct ixgbe_hw *hw)
{
enum ixgbe_media_type media_type;
{
enum ixgbe_media_type media_type;
-
DEBUGFUNC(""
);
+
PMD_INIT_FUNC_TRACE(
);
if (hw->device_id == IXGBE_DEV_ID_82599_BYPASS) {
media_type = ixgbe_media_type_fiber;
if (hw->device_id == IXGBE_DEV_ID_82599_BYPASS) {
media_type = ixgbe_media_type_fiber;