Summary: | ixgbe(4): Resets media type -> autoselect after setting any other type on Intel 82599ES | ||
---|---|---|---|
Product: | Base System | Reporter: | Brian Poole <brian90013> |
Component: | kern | Assignee: | freebsd-net (Nobody) <net> |
Status: | Open --- | ||
Severity: | Affects Many People | CC: | kbowling, krzysztof.galazka, net, rstone |
Priority: | --- | Keywords: | needs-qa |
Version: | 12.3-RELEASE | Flags: | koobs:
maintainer-feedback?
(rstone) koobs: maintainer-feedback? (kbowling) koobs: mfc-stable13? koobs: mfc-stable12? |
Hardware: | amd64 | ||
OS: | Any |
Description
Brian Poole
2022-02-10 15:48:29 UTC
@Reporter Are you able to test 13-R and/or 14-CURRENT snapshots to confirm reproducibility in those versions? ^Triage: - Request feedback from committer of base r312544 and Kevin (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). Hi, Setting media type on 82599ES (and other HW supported by ixgbe) is implemented by limiting list of advertised speeds to single value and restarting auto-negotiation. This is the way HW works - see Datasheet chapter 3.7.4.2 MAC Link Setup and Auto-Negotiation for details. I'm not sure if showing 'Ethernet autoselect' should be considered as a bug in this case. |