Bug 221439 - ix ethernet doesn't link to switch if vlans are enabled.
Summary: ix ethernet doesn't link to switch if vlans are enabled.
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.1-RELEASE
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-net (Nobody)
Keywords: IntelNetworking
Depends on:
Reported: 2017-08-12 11:51 UTC by Wojciech Puchar
Modified: 2017-08-19 11:11 UTC (History)
3 users (show)

See Also:

pciconf -lv (21.39 KB, text/plain)
2017-08-16 17:02 UTC, Wojciech Puchar
no flags Details
loader.conf (729 bytes, text/plain)
2017-08-16 17:02 UTC, Wojciech Puchar
no flags Details
rc.conf - read comment (2.77 KB, text/plain)
2017-08-16 17:04 UTC, Wojciech Puchar
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wojciech Puchar 2017-08-12 11:51:26 UTC
Intel 10Gbe interface (ix driver)  cannot link at 1Gb/s to a switch IF any vlan on that interface is enabled. With no vlan enabled it connects fine.

Temporary workaround is to delay creating vlans until link is up.

FreeBSD puchar.net 11.1-PRERELEASE FreeBSD 11.1-PRERELEASE #5: Sat Aug 12 10:51:41 CEST 2017     root@puchar.net:/usr/src/sys/amd64/compile/puchar  amd64

ix0: <Intel(R) PRO/10GbE PCI-Express Network Driver, Version - 3.2.12-k> port 0xe020-0xe03f mem 0xfbc00000-0xfbdfffff,0xfbe04000-0xfbe07fff irq 42 at device 0.0 on pci4
ix0: Using MSI-X interrupts with 9 vectors
ix0: Ethernet address: 0c:c4:7a:6e:7e:9e
ix0: PCI Express Bus: Speed 5.0GT/s Width x8
Comment 1 Jeff Pieper 2017-08-16 15:27:27 UTC
We need more info:

1. Output of pciconf -lv
2. Contents of /etc/rc.conf
3. Contents of /boot/loader.conf
4. Switch model being used
5. Media type being used
Comment 2 Wojciech Puchar 2017-08-16 17:02:06 UTC
Created attachment 185491 [details]
pciconf -lv
Comment 3 Wojciech Puchar 2017-08-16 17:02:29 UTC
Created attachment 185492 [details]
Comment 4 Wojciech Puchar 2017-08-16 17:04:01 UTC
Created attachment 185493 [details]
rc.conf - read comment

with vlan it includes vlan0 in cloned interfaces, addm vlan0 in bridge0 and 
ifconfig_vlan0="vlan 1157 vlandev ix0 up"
Comment 5 Wojciech Puchar 2017-08-16 17:04:43 UTC
as for switch type i wait for response - not my switch, i'm not physically close to the machine.
Comment 6 Wojciech Puchar 2017-08-19 09:32:22 UTC
switch is Extreme x450a-48T, latest firmware. port is set up to force gigabit.
Comment 7 Steven Hartland freebsd_committer 2017-08-19 11:11:34 UTC
Forced speed often causes issues just set it to auto