[Bug 261866] ixgbe(4): Resets media type -> autoselect after setting any other type on Intel 82599ES

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 14 Feb 2022 17:30:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261866

--- Comment #2 from Brian Poole <brian90013@gmail.com> ---
(In reply to Kubilay Kocak from comment #1)

Thank you for your help. I was able to place the card in a system running
FreeBSD-13.0-RELEASE-p6. I do see the same behavior.

I try to force 10Gbase-LR but it reverts to auto:
# ifconfig ix1 media 10Gbase-LR;sleep 5; ifconfig ix1
ix1: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=4800020<JUMBO_MTU,NOMAP>
        ether 00:23:56:1e:91:ab
        media: Ethernet autoselect (10Gbase-LR <full-duplex,rxpause,txpause>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

I try to force 1000baseLX and it still displays auto:
# ifconfig ix1 media 1000baseLX;sleep 5; ifconfig ix1
ix1: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=4800020<JUMBO_MTU,NOMAP>
        ether 00:23:56:1e:91:ab
        media: Ethernet autoselect (1000baseLX <full-duplex,rxpause,txpause>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

Looking at the problem on this machine, I'm thinking the issue is really
displaying the current setting. When I switch between 10G and 1G, the link is
negotiating the requested speed. Looking at sysctl dev.ix.1.advertise_speed, it
is changing from 6 for (10G | 1G) to 2 (1G).

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