From owner-freebsd-current@freebsd.org Sun Aug 5 10:18:26 2018 Return-Path: Delivered-To: freebsd-current@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 BE0CE107198D for ; Sun, 5 Aug 2018 10:18:26 +0000 (UTC) (envelope-from mail@dbalan.in) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 50A1C8A216 for ; Sun, 5 Aug 2018 10:18:25 +0000 (UTC) (envelope-from mail@dbalan.in) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 0EEC230C for ; Sun, 5 Aug 2018 06:18:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 05 Aug 2018 06:18:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dbalan.in; h= content-type:date:from:message-id:mime-version:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=HFKrJR7IRRIjz9nVU Dgn2GLI35u1gVOJSNkv8Mms2gk=; b=35bkZ/7Layj7eURHst420sRwennVeFhaO vivf/sRkwHxk6iezJhHz9obilQ6VkvaxuLOJafU3GoI4Hbrp7TB5xEN0J8pO9YxM jhbXZDens1lxChl3LfvykdX4KSGvDWGw8Vg/wrJAAGjonDAcKf3bKeFiN1R2a9z5 rRAcTApqQwOr+r0RqIMu0CEAUUnM/rjyqQDvu62T8FcCQStjnV4jRSrn8jRKagyu d4H9VQMiaMCER5u0uyH74m5NfRo31fQV/WMTAE2t1fILv1MrnRepPONPHlyor2Md l12vGdQ8ZMllc35zvOlmpgZYrxnLtBVEm8X5KqI6joQuFNkef90nQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=HFKrJR7IRRIjz9nVUDgn2GLI35u1gVOJSNkv8Mms2gk=; b=CzvyEee2 M7gDAjO595Ymp6ZTXiV3zp/uJUGZVz3ZLSy+TV9rw9OZOfiZEi0unDjMX0w/Tqpw 0Um9+uB2VeIWH8u7WVkEIVJNNwBGy+242095i3EH3Kmrjzhz7S39jBdjq8tAbG0f 7uI+v5lucj934KCsWORceQhGOoZaETMfBnASsv4XNvWtTeUxZRvJ0fX3orEKXwws nxyBpxi6H4Bqzq5PIwWqgbaPmcoKQpAGaNpPHttybDgU9w+fekKZGKypeUlUZxoP EKfBTOzF77uYmqPwdS31LZlD+hS34juO7E7G02ByEQqPDNtq6BgF1Kt6DZGqWtdh EzVlpn8+LIVYKA== X-ME-Proxy: X-ME-Sender: Received: from localhost (ip-109-41-194-107.web.vodafone.de [109.41.194.107]) by mail.messagingengine.com (Postfix) with ESMTPA id CBFBDE461E for ; Sun, 5 Aug 2018 06:18:22 -0400 (EDT) Date: Sun, 5 Aug 2018 12:18:24 +0200 From: Dhananjay Balan To: freebsd-current@freebsd.org Subject: Ethernet troubles with X230 Message-ID: <20180805101824.qjale5wkzzxozio3@kazhap> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20180512 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Aug 2018 10:18:27 -0000 Hi, I have a problems with ethernet on my laptop (X230). pciconf(8) identifies the device as Intel 82579LM Gigabit Network Connection (Lewisville). 1. Resuming after a long suspend (~5hr), sometimes the machine can't get a DHCP IP. 2. After suspend, the ethernet device starts reporting no carrier, eventhough the cables are plugged in and if I plug it to a different box, they would work I can reproduce both on 12.0-CURRENT #17 r336576. But not sure when they started. I have seen this behaviour with 2 routeres running three firmwares at the other end. 1. Easybox (linux 2.x?) 2. Edgerouter lite running stock fw (linux 2.x) and 12-CURRENT (~3 months old) For Problem (1) DHCP lease: ifconfig shows: em0: flags=8843 metric 0 mtu 1500 options=81249b ether xx:xx:xx:xx:xx:xx inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 media: Ethernet autoselect (1000baseT ) status: active nd6 options=29 It still can't get an ip if I invoke service netif restart em0: flags=8843 metric 0 mtu 1500 options=81249b ether xx:xx:xx:xx:xx:xx inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 media: Ethernet autoselect (1000baseT ) status: active nd6 options=29 If I try running dhclient manually, [dhananjay:~] 1 % sudo dhclient em0 dhclient already running, pid: 14305. exiting. [dhananjay:~] 1 % sudo kill 14305 [dhananjay:~] % sudo dhclient em0 DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 6 DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 6 DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 10 DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 13 DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 17 DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 9 No DHCPOFFERS received. No working leases in persistent database - sleeping. For (2) For status no carrier em0: flags=8c03 metric 0 mtu 1500 options=81249b ether xx:xx:xx:xx:xx:xx media: Ethernet autoselect status: no carrier nd6 options=29 and dmesg keeps repeating em0: TX(0) desc avail = 1024, pidx = 0 em0: TX(0) desc avail = 1024, pidx = 0 em0: TX(0) desc avail = 1024, pidx = 0 em0: TX(0) desc avail = 1024, pidx = 0 The only solution I have found so far is to just reboot the laptop and then everything starts working. FWIW the router led never blinks (no data transfers during DHCPDISCOVER). I am not sure how to debug this. - Dhananjay Balan