Bug 235918 - ixgbe(4): 'No carrier' on ix0 with more than 1 VLAN (ixgbe_driver_version[] = "4.0.1-k")
Summary: ixgbe(4): 'No carrier' on ix0 with more than 1 VLAN (ixgbe_driver_version[] =...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.1-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-net (Nobody)
URL:
Keywords: IntelNetworking, needs-qa
Depends on:
Blocks:
 
Reported: 2019-02-21 14:45 UTC by Alexandr
Modified: 2021-08-23 17:10 UTC (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr 2019-02-21 14:45:59 UTC
Hello. 
If in rc.conf is configured more than 1 vlan, Freebsd loads with 'no carrier'.

If 1 vlan is configured or without vlan NIC works fine. 

12.0-RELEASE-p3

ix0@pci0:1:0:0:	class=0x020000 card=0x065915d9 chip=0x15578086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82599 10 Gigabit Network Connection'
    class      = network
    subclass   = ethernet


ixgbe_driver_version[] = "4.0.1-k"   


It can be fixed by installation  the driver Version - 3.3.6  from downloadcenter.intel.com.

After that NIC works fine.

Thank you.
Comment 1 Sergey Surikov 2019-12-27 10:08:50 UTC
The same issue. The NIC going to 'no carrier' for the some time after ifconfig vlan created.  If add next vlan in this time NIC stay 'no carrier'.
The workaround is add pause before/after vlan created.


--- /tmp/network.subr	2019-12-27 13:04:36.376505000 +0300
+++ /usr/src/libexec/rc/network.subr	2019-12-26 14:06:25.670522000 +0300
@@ -1520,6 +1520,7 @@
 	fi
 
 	for child in ${child_vlans}; do
+	        sleep 1;
 		if expr $child : '[1-9][0-9]*$' >/dev/null 2>&1; then
 			child="${ifn}.${child}"
 			create_args=`get_if_var $child create_args_IF`
Comment 2 Piotr Pietruszewski 2020-01-14 13:40:58 UTC
(In reply to Alexandr from comment #0)
(In reply to Sergey Surikov from comment #1)

1. Does the issue reproduce on 12.1-RELEASE?
2. Would it be possible to share part of /etc/rc.conf describing ix configuration?
Comment 3 Sergey Surikov 2020-01-14 14:45:34 UTC
(In reply to Piotr Pietruszewski from comment #2)

1) Yes, it`s reproduce 12.1-RELEASE (dev.ix.1.iflib.driver_version: 4.0.1-k)
2) 
ifconfig_ix1="inet 1.2.3.4/28 -lro -tso"
vlans_ix1="966 961 965"
ifconfig_ix1_966="inet 10.20.30.2/24"
ifconfig_ix1_961="inet 83.29.19.46/28"
ifconfig_ix1_965="inet 10.30.11.2/24"
Comment 4 Piotr Pietruszewski 2020-01-15 11:57:46 UTC
(In reply to Sergey Surikov from comment #3)
We have trouble reproducing this bug in our environment.

1. What media type are you using?
2. What type of link partner is used with ix1 interface?
3. Do you force any options in /boot/loader.conf?
Comment 5 Sergey Surikov 2020-01-15 13:05:29 UTC
(In reply to Piotr Pietruszewski from comment #4)

1) media: Ethernet autoselect (10Gbase-SR <full-duplex>)
   plugged: SFP/SFP+/SFP28 10G Base-SR (LC)
   vendor: PROLABS PN: EX-SFP-10GE-SR-C
2) juniper ex4550
3) Nothing for devices/network.
Comment 6 Kubilay Kocak freebsd_committer freebsd_triage 2020-01-25 02:46:34 UTC
(In reply to Alexandr from comment #0)

Does the configuration also work with the net/intel-ix-kmod [1] port ?

[1] https://www.freshports.org/net/intel-ix-kmod/