From owner-freebsd-net@freebsd.org Tue Apr 16 18:06:49 2019 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6787D1579503 for ; Tue, 16 Apr 2019 18:06:49 +0000 (UTC) (envelope-from ncrogers@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D81FE70CE7 for ; Tue, 16 Apr 2019 18:06:48 +0000 (UTC) (envelope-from ncrogers@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 984561579502; Tue, 16 Apr 2019 18:06:48 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 741F41579501 for ; Tue, 16 Apr 2019 18:06:48 +0000 (UTC) (envelope-from ncrogers@gmail.com) Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 53BBC70CE6 for ; Tue, 16 Apr 2019 18:06:47 +0000 (UTC) (envelope-from ncrogers@gmail.com) Received: by mail-yb1-xb2e.google.com with SMTP id m5so6289530ybk.13 for ; Tue, 16 Apr 2019 11:06:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ujc5be2S43su22R+czwRoSqzG1oWfNGOwQrVcQS4VAs=; b=dLebBrjhmTkQE0B0Q3QcOCLXihRBE7KxEez0scDUUT62D7SyjMoz5Dsumx33cw5ioe +xLuO2KH94sjtxzt8PxMXNtLk8zaeT4p4O/z4Y4BXtaYw3HhHG0vrh3XVznm6H6ikXBu CcgoaqHsPOLoN2cK9rSvBHLCEn31p5pwNTKVPoh1rhCd/Ti5ueP6+DJa+gTdIXwY3m4J AfuC8LsaS2FNAj3oh6lzeeZYsUORbaRqGFe1Zqnod1QQkHdASwIJZzHB6km/22XOeQH1 M5J0wFemROS4QdS0XxISOpBSr+9qGjCdV3ojTHmxoawrZgOlbzULVhsFX/9f7G8QTCg7 VDDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ujc5be2S43su22R+czwRoSqzG1oWfNGOwQrVcQS4VAs=; b=k+w3iywRuHqauYV6EipKHtXA6+dcPkAb2arcRc1Yg3jWH7nd4D6LpKFo3JySwayZXD KiiGHltHqcUodegzzKSR+RFHEbQoYaEp+uwyg2HxSmuDTefbHbbIqBs3HERFzwOaVVS6 gO6lPSmnqPDXvmuPi1Ph3J1+HOqk8tFHwbVsbR9soW3Vdu7pQEUEa3nVA0VB/4atxeUi NMpLHO6OAcxF0V4UZTyITQ7ABWRWjIeJryQjSlh/BG5aNK6OOvPBKvd89TcpqDXwZ42U /TukKwnHXstD5+rVi6zVNgom3q0S25D/yUsfkwxD3US7AQK+YJPoJ8nchlDdV33YirNM bRFA== X-Gm-Message-State: APjAAAXcHhIc+IAW4GOV2OAAqRd+eLhfAXhVm0zDhPcsWioNpvWySf1g L5TJpDW+ebkXhd1tOS4R/AKd2kxpsTd3wPtD4kLyXaFu+vc= X-Google-Smtp-Source: APXvYqwQNrY1v70LHQy6D1ZHisjPzBzl9jQGSUGq7hEt2WTWF6NwIY0KzcFp50lbuAsk9eL1sdQouzD9vGBq+hVGZFU= X-Received: by 2002:a5b:80f:: with SMTP id x15mr21199092ybp.140.1555438006173; Tue, 16 Apr 2019 11:06:46 -0700 (PDT) MIME-Version: 1.0 From: Nick Rogers Date: Tue, 16 Apr 2019 14:06:35 -0400 Message-ID: Subject: igb(4) media status incorrect when disconnected To: "freebsd-net@freebsd.org" X-Rspamd-Queue-Id: 53BBC70CE6 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=dLebBrjh; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of ncrogers@gmail.com designates 2607:f8b0:4864:20::b2e as permitted sender) smtp.mailfrom=ncrogers@gmail.com X-Spamd-Result: default: False [-6.97 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[net@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[e.2.b.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(-2.99)[ip: (-9.69), ipnet: 2607:f8b0::/32(-3.01), asn: 15169(-2.21), country: US(-0.06)]; NEURAL_HAM_SHORT(-0.97)[-0.966,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Apr 2019 18:06:49 -0000 Hello, In 12.0-RELEASE, STABLE, and 13-CURRENT, gb(4) interfaces report an incorrect media status after they are disconnected (ethernet cable unplugged). Ifconfig reports active + autoselect/1000baseT when it should report inactive. I filed a bug for this a few weeks ago and have not had any luck... https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236724 I am wondering if anyone in this list has any ideas or can help me begin to pinpoint where things are breaking down. My current thought is either the driver does not receive the interrupt when its unplugged, or something else is wrong, but I am unsure how to verify this. An ifconfig down + up always resolves it (corrects the status). Thank you.