From owner-freebsd-net@freebsd.org Fri Sep 14 02:48:39 2018 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 93E5D10A1AD5 for ; Fri, 14 Sep 2018 02:48:39 +0000 (UTC) (envelope-from gmail@in2home.org) Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E22CF70DC8 for ; Fri, 14 Sep 2018 02:48:38 +0000 (UTC) (envelope-from gmail@in2home.org) Received: by mail-lj1-x229.google.com with SMTP id v9-v6so6278490ljk.4 for ; Thu, 13 Sep 2018 19:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gamesofa-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=fBUWwPyBfUk2kNbY8zGSXpfasIqAjewrLjytMvaclQw=; b=p6SMozgFtk2j4K3N/4HmpKB2fnqMh2CLfZNvEzHzJaEvb0X+hDhS6EGyt7OmHGIzK+ H6hMrRmEtpV+tJ7wjfD/PcIB3IVeygdm4FXkK5wTgqo1ZDKH5gMVGlRM6GOYF1ngwv0y tQTFBjxu7FzHF4xx817aw7kc0a0Rx8pCYQqoDZN8tuHio4PPldI0nDTuk7jbfh55gAlz wHwoCJktk5q0UHuVMIgiFTujsr0UUNGtF+88C5pWDa4mH0XCO4Tu1tiHjcjAlZQ4maF0 d2t/XV4WB91coAroC7smSSijz/TUDihbqJwg0hDDWeGXzd30ykwNQ1NVyajYoOPq5CJV gRwA== 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=fBUWwPyBfUk2kNbY8zGSXpfasIqAjewrLjytMvaclQw=; b=KAoDZFOK4jgh5ifPD3acL6fGWs8Jh01z+R0qcJwN/46lR2FhgSb1nboTrZ2MTPNAoS iQBZRi+qSFdDKOaR2YntL5TVs9kJXfdZa5BtJx2L7Lp4+d/pJPrMuYj1VY0SHIgAtRh9 xhcidOdBXxjSmL8Phy60ZzzTAfXHxXy39WgRB6IUozcCfvGbxnhkDuqM0b5sCWQ7Vt19 25pF5avnrsqpg0PqoKsR3Blw7pLCpy2WZMvCJc1zwk3kIO/H03sB4ad7FI0KfEpRzp4v nCxDuW4gMAa9N8ds0YLPhvn5nRJO6xGbuHFafbYsDdkuFZU5rLMlMS3Gqd2NJ9bYfvRq Ph1A== X-Gm-Message-State: APzg51AYDV38gIII4HBcrZ9EAj+bqcEeVJaaiHM9g8pu1e72PWukaBxP Ne01nBqsIkih0ox9oZJU7GqWsMZeysGfJeV7cGCjBQl8 X-Google-Smtp-Source: ANB0VdZemJksPi/XvsuT55VqK+Lq8ixRmaAG06SOwKFzzDV+s2Uat4iXb5JUQC0CrwNp7kahGxFeyUGsz+6k04Ef4ps= X-Received: by 2002:a2e:85d5:: with SMTP id h21-v6mr6224470ljj.103.1536893316437; Thu, 13 Sep 2018 19:48:36 -0700 (PDT) MIME-Version: 1.0 From: in2 Date: Fri, 14 Sep 2018 10:48:24 +0800 Message-ID: Subject: aws ena flipping workaround on 11.2-R To: freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2018 02:48:39 -0000 Hi, I'm running 11.2-RELEASE on aws c5/m5/r5 and seeing ena resetting every 30 minutes this causes around 0.5% packet loss overall. Sep 14 09:19:57 ip-10-251-24-249 kernel: ena0: device is going DOWN Sep 14 09:19:57 ip-10-251-24-249 kernel: ena0: device is going UP Sep 14 09:19:57 ip-10-251-24-249 kernel: ena0: queue 0 - cpu 0 Sep 14 09:19:57 ip-10-251-24-249 kernel: ena0: queue 1 - cpu 1 Sep 14 09:49:57 ip-10-251-24-249 kernel: ena0: device is going DOWN Sep 14 09:49:58 ip-10-251-24-249 kernel: ena0: device is going UP Sep 14 09:49:58 ip-10-251-24-249 kernel: ena0: queue 0 - cpu 0 Sep 14 09:49:58 ip-10-251-24-249 kernel: ena0: queue 1 - cpu 1 Sep 14 10:19:57 ip-10-251-24-249 kernel: ena0: device is going DOWN Sep 14 10:19:58 ip-10-251-24-249 kernel: ena0: device is going UP Sep 14 10:19:58 ip-10-251-24-249 kernel: ena0: queue 0 - cpu 0 Sep 14 10:19:58 ip-10-251-24-249 kernel: ena0: queue 1 - cpu 1 this bug has been fixed on head r333454 but is not merged back to 11.2-R yet. since this issue happens when renewing dhcp but we do not need dhcp anymore after instance booted, may I suggest a simple workaround: kill dhclient, for example echo '(/bin/sleep 60; /usr/bin/killall dhclient)&' >> /etc/rc.local