From owner-freebsd-current@freebsd.org Sat May 21 09:00:11 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1518CB43FC2 for ; Sat, 21 May 2016 09:00:11 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id E6B7017E8 for ; Sat, 21 May 2016 09:00:10 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id E273EB43FC0; Sat, 21 May 2016 09:00:10 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DFBCBB43FBF; Sat, 21 May 2016 09:00:10 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: from mail-ig0-x22e.google.com (mail-ig0-x22e.google.com [IPv6:2607:f8b0:4001:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 98EC117E6; Sat, 21 May 2016 09:00:10 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: by mail-ig0-x22e.google.com with SMTP id fh2so3167371igd.1; Sat, 21 May 2016 02:00:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to; bh=3ePwu1L2f+IEch6HomF6NjtXtG4PWTied2LIjO18+Bo=; b=OloT9sHx1dmRhgn9FMvUW5K6WnxU7mqvezSudkKHjGP/scIBxhnGIXol5+P0E+8E0+ cPpFbggYAJxNmA8aHSguF1RMZnWZLktnx5Tm7y20H+YjCT8JKhemphj/qnfttk7ELjw3 V3TMexNCRaMepn3q86Zz4PGc4tcYZ10Rh+DC0XMpRwmCHFZnkpr5FwrnhatIJnnJK37w r8iSTYdPCt/OEkBQAXJx30M7YChtAC2Qk4oxBFSn8pHCEq27c2o9qADaoMFdEPT5aS66 k+vmhrPjvNCJGA50TtdXERScgl2TYKgxbA6suyv+AyTdjJhJ5lOjfUhWJSKu5pXj1xev HtxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to; bh=3ePwu1L2f+IEch6HomF6NjtXtG4PWTied2LIjO18+Bo=; b=kcUvdypcP25nkpAARO9ixN3ptpPB8zCW5f0l0Ae0SY2VocUgHi+2qssgNYb/YBMKM+ 670exfSw6J53846TA3adHTLTwTkBqcvbZwYYSxyOrXjMeE9WWJ6ro3J2iIVA5/Q59EK+ ZLHW4Ww6fExu8XH8m7YHL2cFl9KhOKNFTQI1SMoTGQOLzAfoW/Nr4arYEzKuxDBN9HHI D50lbSwBj/GG3roVkuj9IUQ3V5A68XIh6/pdgTxlp52JnWF6nVQ7fv0e/6lF2IqfmRmO CH05lTatcm8lnACXN79Tk5eiKI5+bk2DXB1htb7HFXouoGydhWL+Aua6g8ivoUurIOCN X/WQ== X-Gm-Message-State: ALyK8tIgiU882P6yASh1QACEq2m5/AP4bLNUtGBzelYyxejKLc30ukFyznkvzfgcUwK8nb0Q1pQGQnafR9FHmw== MIME-Version: 1.0 X-Received: by 10.50.21.199 with SMTP id x7mr2039589ige.63.1463821209977; Sat, 21 May 2016 02:00:09 -0700 (PDT) Sender: kmacybsd@gmail.com Received: by 10.107.140.8 with HTTP; Sat, 21 May 2016 02:00:09 -0700 (PDT) In-Reply-To: <20160521062847.GA58736@ymer.vnode.se> References: <20160520115550.GA56197@ymer.vnode.se> <20160520135946.674eb7ac@hermann> <20160520140528.GA56478@ymer.vnode.se> <20160521062847.GA58736@ymer.vnode.se> Date: Sat, 21 May 2016 02:00:09 -0700 X-Google-Sender-Auth: ZZwA8KOrYEx5oV6nb0p3MzkBzLU Message-ID: Subject: Re: em(4) broken in HEAD? From: "K. Macy" To: "K. Macy" , Johan Hendriks , "O. Hartmann" , "current@freebsd.org" , "freebsd-net@freebsd.org" Content-Type: multipart/mixed; boundary=089e0103ddf03d0ae50533566f8a X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 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: Sat, 21 May 2016 09:00:11 -0000 --089e0103ddf03d0ae50533566f8a Content-Type: text/plain; charset=UTF-8 Much to my chagrin, this too is my fault. Please apply the attached patch if it hasn't yet been committed to -CURRENT. On Fri, May 20, 2016 at 11:28 PM, Joel Dahl wrote: > On Fri, May 20, 2016 at 07:32:30PM -0700, K. Macy wrote: >> I'm seeing watchdog resets on em(4) in my VMWare as of the last day or two. >> >> > >> > >> > I don't use ipfw, aliases or anything other than stock networking. I >> > was unable to copy a large image off the VM without getting an >> > unending stream of watchdog resets which could only be fixed by a >> > reboot. Fortunately a subsequent IFC fixed it as of ~15 hours ago. >> > >> >> I take that back. It's still happening. > > OK - good to know. I'm going to be travelling for a few days so I won't have > time to do a binary search to find the commit that broke it. > > -- > Joel --089e0103ddf03d0ae50533566f8a Content-Type: text/x-patch; charset=US-ASCII; name="tq_wakeup.patch" Content-Disposition: attachment; filename="tq_wakeup.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_iogxcmxt0 ZGlmZiAtLWdpdCBhL3N5cy9rZXJuL3N1YnJfdGFza3F1ZXVlLmMgYi9zeXMva2Vybi9zdWJyX3Rh c2txdWV1ZS5jCmluZGV4IDJlZjVhM2MuLjAwY2I0NmYgMTAwNjQ0Ci0tLSBhL3N5cy9rZXJuL3N1 YnJfdGFza3F1ZXVlLmMKKysrI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