https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288960

            Bug ID: 288960
           Summary: [ix] - link speed not properly logged for 100M
           Product: Base System
           Version: 13.5-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: [email protected]
          Reporter: [email protected]

The following code:
ixgbe_if_update_admin_status(if_ctx_t ctx)
{
        struct ixgbe_softc *sc = iflib_get_softc(ctx);
        device_t dev = iflib_get_dev(ctx);

        if (sc->link_up) {
                if (sc->link_active == false) {
                        if (bootverbose)
                                device_printf(dev, "Link is up %d Gbps %s \n",
                                    ((sc->link_speed == 128) ? 10 : 1),
                                    "Full Duplex");

does not consider speeds other than 1G and 10G.  If the link is 100M, the log
will be misleading.

https://github.com/freebsd/freebsd-src/blob/main/sys/dev/ixgbe/if_ix.c#L3875

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to