The driver belabors the point about unsupported SFPs, printing multiple times on link up. Limit it to once.
Details
- Reviewers
grehan krzysztof.galazka_intel.com markj - Group Reviewers
Intel Networking Restricted Owners Package (Owns No Changed Paths) - Commits
- rGf5255126772e: ixgbe: Warn once for unsupported SFPs
rGa93409fc3cd7: ixgbe: Warn once for unsupported SFPs
Before:
ix0: link state changed to DOWN
After:
ix0: <Intel(R) X520 82599ES (SFI/SFP+)> port 0x8000-0x801f mem 0xd2100000-0xd217ffff,0xd2180000-0xd2183fff irq 27 at device 0.0 numa-domain 0 on pci2
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Any updates? This looks like an ok-enough hack to me. I think my concern when I last looked at this was that this code could change in the future, but I don't think it will; still, it could be safer to avoid changing it directly here.
sys/dev/ixgbe/ixgbe_phy.c | ||
---|---|---|
1541 | EWARN() seems to only be used for these two unsupported SFP link up messages -- you could add something to the hw struct (or add something to the ixgbe driver struct and look at it via hw->back) and have the EWARN macro check that. That way, you wouldn't run into a code conflict if this code gets updated later in the future (though I doubt it will). |