Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102920316
D39785.id121218.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D39785.id121218.diff
View Options
diff --git a/sys/dev/ixgbe/ixgbe_phy.c b/sys/dev/ixgbe/ixgbe_phy.c
--- a/sys/dev/ixgbe/ixgbe_phy.c
+++ b/sys/dev/ixgbe/ixgbe_phy.c
@@ -1302,6 +1302,7 @@
u8 cable_tech = 0;
u8 cable_spec = 0;
u16 enforce_sfp = 0;
+ static bool warned_once = false;
DEBUGFUNC("ixgbe_identify_sfp_module_generic");
@@ -1536,13 +1537,16 @@
status = IXGBE_SUCCESS;
} else {
if (hw->allow_unsupported_sfp == true) {
- EWARN(hw,
- "WARNING: Intel (R) Network Connections are quality tested using Intel (R) Ethernet Optics. "
- "Using untested modules is not supported and may cause unstable operation or damage to the module or the adapter. "
- "Intel Corporation is not responsible for any harm caused by using untested modules.\n");
+ if (!warned_once)
+ EWARN(hw,
+ "WARNING: Intel (R) Network Connections are quality tested using Intel (R) Ethernet Optics. "
+ "Using untested modules is not supported and may cause unstable operation or damage to the module or the adapter. "
+ "Intel Corporation is not responsible for any harm caused by using untested modules.\n");
+ warned_once = true;
status = IXGBE_SUCCESS;
} else {
- DEBUGOUT("SFP+ module not supported\n");
+ DEBUGOUT
+ ("SFP+ module not supported\n");
hw->phy.type =
ixgbe_phy_sfp_unsupported;
status = IXGBE_ERR_SFP_NOT_SUPPORTED;
@@ -1647,6 +1651,7 @@
u8 cable_length = 0;
u8 device_tech = 0;
bool active_cable = false;
+ static bool warned_once = false;
DEBUGFUNC("ixgbe_identify_qsfp_module_generic");
@@ -1792,10 +1797,12 @@
status = IXGBE_SUCCESS;
} else {
if (hw->allow_unsupported_sfp == true) {
- EWARN(hw,
- "WARNING: Intel (R) Network Connections are quality tested using Intel (R) Ethernet Optics. "
- "Using untested modules is not supported and may cause unstable operation or damage to the module or the adapter. "
- "Intel Corporation is not responsible for any harm caused by using untested modules.\n");
+ if (!warned_once)
+ EWARN(hw,
+ "WARNING: Intel (R) Network Connections are quality tested using Intel (R) Ethernet Optics. "
+ "Using untested modules is not supported and may cause unstable operation or damage to the module or the adapter. "
+ "Intel Corporation is not responsible for any harm caused by using untested modules.\n");
+ warned_once = true;
status = IXGBE_SUCCESS;
} else {
DEBUGOUT("QSFP module not supported\n");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 6:20 PM (22 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14721388
Default Alt Text
D39785.id121218.diff (2 KB)
Attached To
Mode
D39785: ixgbe: Warn once for unsupported SFPs
Attached
Detach File
Event Timeline
Log In to Comment