From owner-freebsd-net@freebsd.org Sun Sep 25 13:53:42 2016 Return-Path: Delivered-To: freebsd-net@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 D3161BE869C for ; Sun, 25 Sep 2016 13:53:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 C296B1072 for ; Sun, 25 Sep 2016 13:53:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8PDrgj4036658 for ; Sun, 25 Sep 2016 13:53:42 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 212876] re(4): Add support for NCube 8168 network cards Date: Sun, 25 Sep 2016 13:53:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: mfc-stable10? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Sep 2016 13:53:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212876 --- Comment #3 from commit-hook@freebsd.org --- A commit references this bug: Author: kevlo Date: Sun Sep 25 13:52:56 UTC 2016 New revision: 306309 URL: https://svnweb.freebsd.org/changeset/base/306309 Log: MFC r306102: Add support for the TP-Link TG-3468 v2. This is an RTL8168 chip, which we already support so all we have to do is= add the vendor ID. PR: 212876 Submitted by: Tobias Kortkamp Changes: _U stable/11/ stable/11/share/man/man4/re.4 stable/11/sys/dev/re/if_re.c stable/11/sys/dev/rl/if_rlreg.h --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Sun Sep 25 21:00:17 2016 Return-Path: Delivered-To: freebsd-net@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 62094BE8C16 for ; Sun, 25 Sep 2016 21:00:17 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 58EC4B12 for ; Sun, 25 Sep 2016 21:00:17 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8PL01oL001807 for ; Sun, 25 Sep 2016 21:00:17 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201609252100.u8PL01oL001807@kenobi.freebsd.org> From: bugzilla-noreply@FreeBSD.org To: freebsd-net@FreeBSD.org Subject: Problem reports for freebsd-net@FreeBSD.org that need special attention Date: Sun, 25 Sep 2016 21:00:17 +0000 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Sep 2016 21:00:17 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- In Progress | 203422 | mpd/ppoe not working with re(4) with revision 285 In Progress | 206581 | bxe_ioctl_nvram handler is faulty New | 204438 | setsockopt() handling of kern.ipc.maxsockbuf limi New | 205592 | TCP processing in IPSec causes kernel panic New | 206053 | kqueue support code of netmap causes panic Open | 148807 | [panic] "panic: sbdrop" and "panic: sbsndptr: soc Open | 193452 | Dell PowerEdge 210 II -- Kernel panic bce (broadc Open | 194485 | Userland cannot add IPv6 prefix routes Open | 194515 | Fatal Trap 12 Kernel with vimage Open | 199136 | [if_tap] Added down_on_close sysctl variable to t Open | 206544 | sendmsg(2) (sendto(2) too?) can fail with EINVAL; Open | 211031 | [panic] in ng_uncallout when argument is NULL Open | 211962 | bxe driver queue soft hangs and flooding tx_soft_ 13 problems total for which you should take action. From owner-freebsd-net@freebsd.org Sun Sep 25 21:38:21 2016 Return-Path: Delivered-To: freebsd-net@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 AD653BE9C1D for ; Sun, 25 Sep 2016 21:38:21 +0000 (UTC) (envelope-from djs@waterday.ru) 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 972EA63F for ; Sun, 25 Sep 2016 21:38:21 +0000 (UTC) (envelope-from djs@waterday.ru) Received: by mailman.ysv.freebsd.org (Postfix) id 9286BBE9C1A; Sun, 25 Sep 2016 21:38:21 +0000 (UTC) Delivered-To: net@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 91C2ABE9C19 for ; Sun, 25 Sep 2016 21:38:21 +0000 (UTC) (envelope-from djs@waterday.ru) Received: from waterday.ru (waterday.ru [194.67.209.41]) by mx1.freebsd.org (Postfix) with ESMTP id 1C4A263E for ; Sun, 25 Sep 2016 21:38:19 +0000 (UTC) (envelope-from djs@waterday.ru) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=mail; d=waterday.ru; h=Message-ID:From:To:Subject:Date:MIME-Version:Content-Type; i=djs@waterday.ru; bh=KOGNmXJIYtjYsvSeUR4rSkSJ1rs=; b=at7jlrDJaRz32un+ZjX8PPBklGbmIVL+CK+m5/FI8uQWHHfoNhnvrbB+LBfGLOCEGaVOADpdvnBj GTiToYrrMDgz3O07EgCw1Pn1dmzui4rH4sFfyqpJ2MsHf8thShc9k2Fei5g41Mui/ld613AQPyJC xVnklYdadhiArpV4d50= DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; s=mail; d=waterday.ru; b=DE8Tlv69K2wH37iZQwYU3HvSTFozkbF8rhApqRQXPusWBEGZDX1v+TE4lxCWPC4ogaXIyB/zUpFt VdhXvJ05ic+RGEsOXHcNQyP0ciq0magA40NDVuHt9cX8tHxQ8RGreo7lf+imx3KZZYKP9iQH1WvJ Jd3ir47ElBsNixlt12g=; Message-ID: From: "Swarovski" To: Subject: =?windows-1251?B?wfDg8evl8iBTd2Fyb3Zza2kgLSDv7vHr5eTt?= =?windows-1251?B?6Okg7+jx6iDs6Ovg7fHq7ukg7O7k+yE=?= Date: Mon, 26 Sep 2016 00:37:58 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Sep 2016 21:38:21 -0000 =C1=F0=E0=F1=EB=E5=F2 Swarovski - =EF=EE=F1=EB=E5=E4=ED=E8=E9 =EF=E8=F1=EA= =EC=E8=EB=E0=ED=F1=EA=EE=E9 =EC=EE=E4=FB! From owner-freebsd-net@freebsd.org Mon Sep 26 04:47:15 2016 Return-Path: Delivered-To: freebsd-net@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 E273DBE8E35 for ; Mon, 26 Sep 2016 04:47:15 +0000 (UTC) (envelope-from hdjdg@fabricsolutions.ru) 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 C96C31BC for ; Mon, 26 Sep 2016 04:47:15 +0000 (UTC) (envelope-from hdjdg@fabricsolutions.ru) Received: by mailman.ysv.freebsd.org (Postfix) id C5019BE8E34; Mon, 26 Sep 2016 04:47:15 +0000 (UTC) Delivered-To: net@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 C20E2BE8E33 for ; Mon, 26 Sep 2016 04:47:15 +0000 (UTC) (envelope-from hdjdg@fabricsolutions.ru) Received: from fabricsolutions.ru (fabricsolutions.ru [193.124.186.238]) by mx1.freebsd.org (Postfix) with ESMTP id 48B871BA for ; Mon, 26 Sep 2016 04:47:14 +0000 (UTC) (envelope-from hdjdg@fabricsolutions.ru) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=mail; d=fabricsolutions.ru; h=Message-ID:From:To:Subject:Date:MIME-Version:Content-Type; i=hdjdg@fabricsolutions.ru; bh=qu7/tpSkj2lUeeoJn395pM1zkS8=; b=WAa6nYhOSu/F/qMM3foE/iH8H4isUv0m0EKcgkOHuTeTY9oflL4izGVnzf4OLDXf/1wt4iIPWr4G 1mGCUkHUF5b/2q4egqT8pTd/xUDXxNPRBCUOWF/U79UYJFlG9mbPK2Sf7U9dvcvd6tQGJerr/PBq bl7hXcKqDF8VpSkrIck= DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; s=mail; d=fabricsolutions.ru; b=K3NK4bhyMzKTc6G1wlY+FdPyrZK6EK0mWEFItRAzkoLCohC+rQ6FyJjH4+6k2vE4wTgHfwd2oHS+ UR3FW8xI2Pdw/Rilsw4aeCAHF4pV1zW4aKZXPPvugn4kJTyPc9jIoeA1SqjflkvEbdRuCZPm9rnR SrT4ZHcCVZK8A+hF58s=; Message-ID: <02F8B520598DA360BCB9F04D29FE40FD@fabricsolutions.ru> From: =?windows-1251?B?0M7R0sXVzcDEx87Q?= To: Subject: =?windows-1251?B?3erx7+Xw8ujn4CDv8O7l6vLt7ukg5O7q8+zl?= =?windows-1251?B?7fLg9ujoIOPo5PDu8uX17ej35fHq6PUg8e7u?= =?windows-1251?B?8PPm5e3o6Q==?= Date: Mon, 26 Sep 2016 07:43:43 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2016 04:47:16 -0000 =CF=F0=EE=E2=E5=F0=EA=E0 =E3=E8=E4=F0=EE=F2=E5=F5=ED=E8=F7=E5=F1=EA=E8=F5= =F1=EE=EE=F0=F3=E6=E5=ED=E8=E9 From owner-freebsd-net@freebsd.org Mon Sep 26 23:10:57 2016 Return-Path: Delivered-To: freebsd-net@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 362D7BEA761 for ; Mon, 26 Sep 2016 23:10:57 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (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 13E35966 for ; Mon, 26 Sep 2016 23:10:56 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from [192.168.0.6] (97-123-129-224.albq.qwest.net [97.123.129.224]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id D66F71928CE; Mon, 26 Sep 2016 23:10:54 +0000 (UTC) Subject: Re: Will this card (probably) work? To: Lee Brown References: <53c8aa26-6bd5-22ed-8987-f901451e4dfd@freebsd.org> Cc: freebsd-net From: Sean Bruno Message-ID: <1bcdca11-54de-c827-7f61-b06250dd2e67@freebsd.org> Date: Mon, 26 Sep 2016 17:10:51 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="I4BqpfWh6F6S7sXMpvDbwtSHqwRhSRUoC" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2016 23:10:57 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --I4BqpfWh6F6S7sXMpvDbwtSHqwRhSRUoC Content-Type: multipart/mixed; boundary="d5F0dAfjGkmrEGskOU3xVPKjlT61RrEJI" From: Sean Bruno To: Lee Brown Cc: freebsd-net Message-ID: <1bcdca11-54de-c827-7f61-b06250dd2e67@freebsd.org> Subject: Re: Will this card (probably) work? References: <53c8aa26-6bd5-22ed-8987-f901451e4dfd@freebsd.org> In-Reply-To: --d5F0dAfjGkmrEGskOU3xVPKjlT61RrEJI Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable >=20 > OK the vendor got back to me: >=20 > 8086:1522 That appears to be governed by the the igb(4) driver. You should be good to go. fbsd_head/sys/dev/e1000 % grep -r E1000_DEV_ID_I350_FIBER * e1000_api.c: case E1000_DEV_ID_I350_FIBER: e1000_hw.h:#define E1000_DEV_ID_I350_FIBER 0x1522 if_igb.c: {IGB_INTEL_VENDOR_ID, E1000_DEV_ID_I350_FIBER, 0, 0, 0}, sean --d5F0dAfjGkmrEGskOU3xVPKjlT61RrEJI-- --I4BqpfWh6F6S7sXMpvDbwtSHqwRhSRUoC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJX6ar7XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5kjfAH/AtuyLNfmbf3Pzl9uyuPmG9j a1SfuKtZNd+hzaO0Jw5CiWqa7JmhKBpE9CVgJxP4AbPliB7/fIACMLkITLr7SfU7 b0yF7hMsqxQ58ReR6jnX/hCIoZfVZciPHMF4fE8Nr7jlEUKjBXgkEuV/MjfoZGBa QnOSBFJ1unixdNxIjh2eXt83gf/sJK97FvGg+Urnd9WmFkwbIXnTbmpwiFXohz0F 6MzFP+Vb1/9RCkJTmvvDEj9YNBgwYc5oEvqxUUQ9uAaEO5yxE8Xy5lrsuVjFCc1K 3Kcp37VxAxN8o98Izdihx1OMgtJwvXwiehCfZA4R+jtmLhAg2RP+h12cBsucX1A= =jEaQ -----END PGP SIGNATURE----- --I4BqpfWh6F6S7sXMpvDbwtSHqwRhSRUoC-- From owner-freebsd-net@freebsd.org Mon Sep 26 23:44:08 2016 Return-Path: Delivered-To: freebsd-net@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 CA70FBEB1CC for ; Mon, 26 Sep 2016 23:44:08 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from mail-vk0-x230.google.com (mail-vk0-x230.google.com [IPv6:2607:f8b0:400c:c05::230]) (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 811AFEA2; Mon, 26 Sep 2016 23:44:08 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by mail-vk0-x230.google.com with SMTP id 192so78401637vkl.2; Mon, 26 Sep 2016 16:44:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ES9r7XotidE1K2SOrwbUzNiw75+Bkux/Km3vGs91gIM=; b=Th/fa+Ie+8KFBtdPmhbTmduUva/W4T/06ZpcmKR4q5LS5RGoM0tGRusn0IA6ZHMrjY W0LVsAp4/Jrri8yA1HGdss04WhPT1JZpfQA+StzTz6FaLB9gwW4+YAWbDaiYgOhMitJf fkgfCyVks728uEscGDKNsdGcH0YnaNHapoH0I9EJ9476CGIIM/D20qb7rl7Wd6vwmsVw igLj1YsJBXOocKW5R+W25pZZCcn3kbb6AfxC7PAJqLdz8hv429Bwf2NuqMRdzFLyMzL2 BsoetH7hLbbspiTrS/b3zPFGV5Ua7djZJJMzV/Fk+IJ+7+Qr906uO9LLDNrd37dQK3BF BBIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ES9r7XotidE1K2SOrwbUzNiw75+Bkux/Km3vGs91gIM=; b=DerQoxUb52gr041dNsi/dMrTjS1ULYy5L7C7hTs5IKN9inp7dfQiADCB40D693OSZH QO93sB6JUWcZ/OWpQPDyJ9beFdjp3DQy7A5gJvv17ymLwutg1tQ6DI/RqtCkSWrWOeCi RKSBqMKTRmSSr0wA87Q0D6td4T/IRsq/eU5TCjLlShZodvNTPcmfmytWjYKU0LiqXoD9 KLkqidbGV+lXfUe6mV3x5+T2aqFwXa3V92y9TbQDly1Z7q5YlPVEafZirnZnqtAggI69 3AKwAta5yWfDwmr8WT68MPQpL2wSDYHKmk3hHmoQZtwQq/QLh0gX0BAmXJnuazaDumga C9ig== X-Gm-Message-State: AA6/9RlByTkusjLUzkp91JA/4KyqvmNYpau5uLBhLNyns44iALEhWB0b2PCx4rdLmE+MZLuon2PLMkfy19fORg== X-Received: by 10.31.148.211 with SMTP id w202mr9229084vkd.87.1474933447040; Mon, 26 Sep 2016 16:44:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.168.88 with HTTP; Mon, 26 Sep 2016 16:44:06 -0700 (PDT) In-Reply-To: <1bcdca11-54de-c827-7f61-b06250dd2e67@freebsd.org> References: <53c8aa26-6bd5-22ed-8987-f901451e4dfd@freebsd.org> <1bcdca11-54de-c827-7f61-b06250dd2e67@freebsd.org> From: Jack Vogel Date: Mon, 26 Sep 2016 16:44:06 -0700 Message-ID: Subject: Re: Will this card (probably) work? To: Sean Bruno Cc: Lee Brown , freebsd-net Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2016 23:44:08 -0000 Yes, "should be", but just remember now, if this adapter does not look like a genuine Intel made part (and from some comment from either Jeff or Eric it sounded like it wasn't), then IF you have a problem you are going to get no support from them. Of course, in most worlds you'd have no problem, but there's always some possible one in which.... you know :) Just being the voice of caution here... Jack On Mon, Sep 26, 2016 at 4:10 PM, Sean Bruno wrote: > > > > OK the vendor got back to me: > > > > 8086:1522 > > That appears to be governed by the the igb(4) driver. You should be > good to go. > > fbsd_head/sys/dev/e1000 % grep -r E1000_DEV_ID_I350_FIBER * > e1000_api.c: case E1000_DEV_ID_I350_FIBER: > e1000_hw.h:#define E1000_DEV_ID_I350_FIBER 0x1522 > if_igb.c: {IGB_INTEL_VENDOR_ID, E1000_DEV_ID_I350_FIBER, 0, 0, 0}, > > sean > > From owner-freebsd-net@freebsd.org Tue Sep 27 06:58:12 2016 Return-Path: Delivered-To: freebsd-net@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 5A3B8BEBB2C for ; Tue, 27 Sep 2016 06:58:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 49BBE28D for ; Tue, 27 Sep 2016 06:58:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8R6wBEj092529 for ; Tue, 27 Sep 2016 06:58:12 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 213015] openvswitch and vnet jails - panic when bridge is destroyed and recreated Date: Tue, 27 Sep 2016 06:58:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 27 Sep 2016 06:58:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213015 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |freebsd-net@FreeBSD.org CC|freebsd-amd64@FreeBSD.org | --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Tue Sep 27 07:22:14 2016 Return-Path: Delivered-To: freebsd-net@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 0E5BEBEB17C for ; Tue, 27 Sep 2016 07:22:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 EB6BAF2B for ; Tue, 27 Sep 2016 07:22:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8R7MDBQ091954 for ; Tue, 27 Sep 2016 07:22:13 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 213015] openvswitch and vnet jails - panic when bridge is destroyed and recreated Date: Tue, 27 Sep 2016 07:22:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: girgen@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 27 Sep 2016 07:22:14 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213015 Palle Girgensohn changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |girgen@FreeBSD.org --- Comment #1 from Palle Girgensohn --- I've hade exaclty the same problems with epair, switched to netgraph instead which has proven rock solid. I know there is a project to improve this area as well, can't remember frmo= the top of my head who is working on it. Don't think it has hit the source tree= yet though. For epair problems, see for example this thread: https://forums.freebsd.org/threads/31765/ If all you want is networking running in jails, I can document the procedur= e we use, using netgraph (not epoair). This is very solid. Epair+vimage has alsway had this problem when tearing down the jail, sadly. Palle --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Tue Sep 27 16:02:54 2016 Return-Path: Delivered-To: freebsd-net@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 EDED4BEC712 for ; Tue, 27 Sep 2016 16:02:54 +0000 (UTC) (envelope-from leeb@ratnaling.org) Received: from mail-vk0-x232.google.com (mail-vk0-x232.google.com [IPv6:2607:f8b0:400c:c05::232]) (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 ACF50282 for ; Tue, 27 Sep 2016 16:02:54 +0000 (UTC) (envelope-from leeb@ratnaling.org) Received: by mail-vk0-x232.google.com with SMTP id v205so17704837vke.1 for ; Tue, 27 Sep 2016 09:02:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ratnaling-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=NDVsgq20LKKj/H6LfCqtymdg+BoXs/sa3Lwkh3VcHNk=; b=fVT9jBEUju5B7a3gf0jSBRcq7gpMAQKuJ/pEv8s6u37HLw6YkwD+cPQobjbhggFBF8 CyfpY8g4DcQs8XPoiXAw3AunoK6uEZPVyOAEvOLPbYZSGAJPWgUROrHQrBrVNlFg2Aof 7P1GbKY2PIaLmD/pAvVIAW7MO7H+ir8hP8IhI85iw9qGlVfKJ9+7YM0xq33ShTbFYgs7 GyS37pPXvQFgMf6/UAJ1WaQAbmd3+uZDu1tGeVt8nUy6qQn6j4jJ71tpoSpCUW6RdM3o dOYxFWREoruJhtJ/lmg46QioFu9gMC4G3nTbOja1Ws4+FupZ6zEWJaC2dJ8MQQC4QVwN sBIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=NDVsgq20LKKj/H6LfCqtymdg+BoXs/sa3Lwkh3VcHNk=; b=TiMjM0W/3hOx+pOCkI2tkH5zTPvoEoHUj22FWmbtYx2dDi+PRJtfecEg/uL2++4lFJ N9El2wKZIKFvsYfDMWv0V1Q8W61utIWvCCJ5AvWNMF+6b8UcTokqLDCYtLOriAfUzz10 rwwJ95NzUHXL0R0uSL+WcNNqhWWQORunDzJyKnY+fp2YWz0yFmQM2UuIdaGkY3DeUf/n jfm76hWnMQc9GnW0asFv0Wx1ymws1dFY93Dl5vlOp4DMXR8Xdsark/lm9JrH080n5OYN VWFOHYe+276YWtbFV0y63Pbj/XKb1BKdjuoeZMukbGgptg3yFA6ThIPCpDWObx3h1BnE 0How== X-Gm-Message-State: AA6/9Rk+WhxjdYwmqOJXBG3yhhkfXG2kHi6ujpoiOWcEvoSynycP2o/NDqO4gL06Ik+PRmzlmwZvZKHlM5A98Q== X-Received: by 10.31.110.8 with SMTP id j8mr13571876vkc.106.1474992173531; Tue, 27 Sep 2016 09:02:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.65.38 with HTTP; Tue, 27 Sep 2016 09:02:52 -0700 (PDT) In-Reply-To: References: <53c8aa26-6bd5-22ed-8987-f901451e4dfd@freebsd.org> <1bcdca11-54de-c827-7f61-b06250dd2e67@freebsd.org> From: Lee Brown Date: Tue, 27 Sep 2016 09:02:52 -0700 Message-ID: Subject: Re: Will this card (probably) work? To: Jack Vogel Cc: Sean Bruno , freebsd-net Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 27 Sep 2016 16:02:55 -0000 On Mon, Sep 26, 2016 at 4:44 PM, Jack Vogel wrote: > Yes, "should be", but just remember now, if this adapter does not look > like a > genuine Intel made part (and from some comment from either Jeff or Eric it > sounded like it wasn't), then IF you have a problem you are going to get no > support from them. Of course, in most worlds you'd have no problem, but > there's > always some possible one in which.... you know :) > > Just being the voice of caution here... > > Jack > > > On Mon, Sep 26, 2016 at 4:10 PM, Sean Bruno wrote: > >> > >> > OK the vendor got back to me: >> > >> > 8086:1522 >> >> That appears to be governed by the the igb(4) driver. You should be >> good to go. >> >> fbsd_head/sys/dev/e1000 % grep -r E1000_DEV_ID_I350_FIBER * >> e1000_api.c: case E1000_DEV_ID_I350_FIBER: >> e1000_hw.h:#define E1000_DEV_ID_I350_FIBER 0x1522 >> if_igb.c: {IGB_INTEL_VENDOR_ID, E1000_DEV_ID_I350_FIBER, 0, 0, 0}, >> >> sean >> >> > Much appreciated both of you. For $168 I'm willing to risk it. I assume they use Intel's PCID instead of their own because they use the Intel driver (which is encouraging). However Intel make nothing like this card (maybe they used to), so yes, it is a foray into the unknown. If I'm unable to get it working or working well, at least I have alternatives (meda converters at the far end and SFP into an existing fiber switch). And if I do, well we've got one more card to add to the compatibility list. -- lee From owner-freebsd-net@freebsd.org Tue Sep 27 19:24:38 2016 Return-Path: Delivered-To: freebsd-net@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 DC08FBEC325 for ; Tue, 27 Sep 2016 19:24:38 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from mail-vk0-x235.google.com (mail-vk0-x235.google.com [IPv6:2607:f8b0:400c:c05::235]) (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 81A64D22; Tue, 27 Sep 2016 19:24:38 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by mail-vk0-x235.google.com with SMTP id 192so23189289vkl.2; Tue, 27 Sep 2016 12:24:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=PAzZYvO3vmvIPJWc5j8Y5CTA7Ed0CsK7LuzPcWl/Xso=; b=K0tMKCxJcBDr58ZUoZL3hoRvZP94zd/EipHLCw2vMKtab5kJhb5Ia12jAN+WcZBpKZ 8u8uv3vbORE5BkpQsi8YbmC6QbffrsOL/MjSr96ueB0ecTkGG4gnhPHcqDp8xjhDavOx sgMEqZWMmPZAtemCYZtqmi256dD0/3JyTPBMh4QdltID9pMp3Q7XW0rX6f1suZJW1ly2 NXQFSsdxKWMeC1aCyGsWUHKpbi37660LMI+q+dY91qKHu0CttUhXrRlfCHMIfrYdHgpn sppp2rWsWfkqlX9xD5wgLF0yVMI3mOaA8vEhRP5Io/pzpl86tbZjztb0q56U1Ms5wyVN R9Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=PAzZYvO3vmvIPJWc5j8Y5CTA7Ed0CsK7LuzPcWl/Xso=; b=Ej0C7rDFCkjj2Q5K78/D6pn6eMm7zUNpD4Zi/jPsXYRK7xAnmuD/faE/aezMLKwFu5 B9NxJ6p8ubDczXQAzVFP4ZcTH2m6f6uTVH5ppvAqfoIg3CzJqQPLxo+iUmER/pBNGpFA U/adJ4amlY8elIfbLA/kSN5J1uY8Wz2fegr4tVzU6COoCfXGayuGbkr7W2T9XGbs66J/ q2U71Ymm+4Gagp9DBEnEIE51q5W+YmATz0utPZZ8LcG1uETZIFw9dM7RG3Ybu2PQ4FyD Q+fWKDkX7GwurCg0NqjUkuAAWJ8KmnXzoOSA5a1iITQ9zKZcISDbyIKoNe8Lh5Cyb0EA XG3Q== X-Gm-Message-State: AA6/9RmsLvXtquzgahEr2e2U/Ix7qVhMf0okzk0LJZM0k/fuPzvWaopYcdvoIpgR13E3CzFC2GAUUq8//piGnA== X-Received: by 10.31.124.200 with SMTP id x191mr12821177vkc.122.1475004277718; Tue, 27 Sep 2016 12:24:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.168.88 with HTTP; Tue, 27 Sep 2016 12:24:37 -0700 (PDT) In-Reply-To: References: <53c8aa26-6bd5-22ed-8987-f901451e4dfd@freebsd.org> <1bcdca11-54de-c827-7f61-b06250dd2e67@freebsd.org> From: Jack Vogel Date: Tue, 27 Sep 2016 12:24:37 -0700 Message-ID: Subject: Re: Will this card (probably) work? To: Lee Brown Cc: Sean Bruno , freebsd-net Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 27 Sep 2016 19:24:39 -0000 Its not that they, whoever they is :). "use" the Intel PCID, no, it really IS the Intel device, but it's silicon, not an assembled adapter, its that part which is being done by someone else, and btw, the components to support 4 port type adapters have been notoriously problematic in the past, so having it done by someone besides Intel is at least a potential source of concern. I wish you the best, Jack On Tue, Sep 27, 2016 at 9:02 AM, Lee Brown wrote: > > > On Mon, Sep 26, 2016 at 4:44 PM, Jack Vogel wrote: > >> Yes, "should be", but just remember now, if this adapter does not look >> like a >> genuine Intel made part (and from some comment from either Jeff or Eric >> it >> sounded like it wasn't), then IF you have a problem you are going to get >> no >> support from them. Of course, in most worlds you'd have no problem, but >> there's >> always some possible one in which.... you know :) >> >> Just being the voice of caution here... >> >> Jack >> >> >> On Mon, Sep 26, 2016 at 4:10 PM, Sean Bruno wrote: >> >>> > >>> > OK the vendor got back to me: >>> > >>> > 8086:1522 >>> >>> That appears to be governed by the the igb(4) driver. You should be >>> good to go. >>> >>> fbsd_head/sys/dev/e1000 % grep -r E1000_DEV_ID_I350_FIBER * >>> e1000_api.c: case E1000_DEV_ID_I350_FIBER: >>> e1000_hw.h:#define E1000_DEV_ID_I350_FIBER 0x1522 >>> if_igb.c: {IGB_INTEL_VENDOR_ID, E1000_DEV_ID_I350_FIBER, 0, 0, 0}, >>> >>> sean >>> >>> >> Much appreciated both of you. For $168 I'm willing to risk it. > I assume they use Intel's PCID instead of their own because they use the > Intel driver (which is encouraging). However Intel make nothing like this > card (maybe they used to), so yes, it is a foray into the unknown. > If I'm unable to get it working or working well, at least I have > alternatives (meda converters at the far end and SFP into an existing fiber > switch). > And if I do, well we've got one more card to add to the compatibility list. > -- lee > From owner-freebsd-net@freebsd.org Tue Sep 27 19:32:51 2016 Return-Path: Delivered-To: freebsd-net@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 D5F84BEC559 for ; Tue, 27 Sep 2016 19:32:51 +0000 (UTC) (envelope-from leeb@ratnaling.org) Received: from mail-vk0-x22a.google.com (mail-vk0-x22a.google.com [IPv6:2607:f8b0:400c:c05::22a]) (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 943C615C for ; Tue, 27 Sep 2016 19:32:51 +0000 (UTC) (envelope-from leeb@ratnaling.org) Received: by mail-vk0-x22a.google.com with SMTP id z126so23488269vkd.0 for ; Tue, 27 Sep 2016 12:32:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ratnaling-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qHlJh0Dz+/q6X/McQY064D9lnaeqEdG8UomtN6gVFYs=; b=FDX5A85GD03LKeGgPylJUSPC2a5dlg3z/NwdBQNbJmeh6gmDScz/A4/Gu/b2BZDkui QwvXDxsigFuyF0qoGsrAd067A1GFeoLNDpqKR/uoBHmRAA4VycuPKVYyCoIC5Li2viFx kgefJkwg/bIUKl8u7Lu3KBQ1uN3udHN4QE+nqBvNZMHVnkRFzYCnAjHsO8sy8S5/BHzv o6VNnZHqTTJ7NFg7/g7zZS6y9382I/C3zZP534nyQ2SOqESRJYKhLvfrovzb6vIF0YPd 77xw4W4kwBjXsFFa24jr51ebbVD0Bsvn0Cs6Kp2P77jJvJE+cQErcHr968Ik3r+ec4mU +mjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qHlJh0Dz+/q6X/McQY064D9lnaeqEdG8UomtN6gVFYs=; b=duHVW/eaiWTc0RfzV654uoDc6G8USBPLBfc6f742ZW2MjE0v8YQDcX1cW9kq3SEV/U EK6otXa1v6navgE0VGLXqzjOEKhgRBxYssW15LW6IiWTknLci0eqbL5Pz1MrNWzknSaA gP4Gepaw9uIlA6AgF7jwBPlevGY+QWPQSqxo6tVHoMGmTtarScaQW2UnnPNGIIQwHA66 SLKlt3y8UKJ5X4l/RD0W90xZzT23Zr7QfWAHq/HU6i5bVAjPnRVl1GOXnBwoIK/PVcKJ UVS+bpivDBRl6NZJDsERiEUj6YBT5/giu7qkSGGYhUcMIIre/IFMgoYcr6t58LcW+unf zc0A== X-Gm-Message-State: AA6/9RlSy3afyRUMCY3mblSFw0p0gF8PUoOhA+08s2Q9AfC+/7AkWogRXNw9HqBURzAp5q29jGvEMfwnY0VidA== X-Received: by 10.31.136.213 with SMTP id k204mr12325526vkd.67.1475004770509; Tue, 27 Sep 2016 12:32:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.65.38 with HTTP; Tue, 27 Sep 2016 12:32:49 -0700 (PDT) In-Reply-To: References: <53c8aa26-6bd5-22ed-8987-f901451e4dfd@freebsd.org> <1bcdca11-54de-c827-7f61-b06250dd2e67@freebsd.org> From: Lee Brown Date: Tue, 27 Sep 2016 12:32:49 -0700 Message-ID: Subject: Re: Will this card (probably) work? To: Jack Vogel Cc: freebsd-net Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 27 Sep 2016 19:32:51 -0000 On Tue, Sep 27, 2016 at 12:24 PM, Jack Vogel wrote: > Its not that they, whoever they is :). "use" the Intel PCID, no, it really > IS the Intel device, > but it's silicon, not an assembled adapter, its that part which is being > done by someone > else, and btw, the components to support 4 port type adapters have been > notoriously > problematic in the past, so having it done by someone besides Intel is at > least a potential > source of concern. > > Do you know if 2-port adapters are generally more reliable? I could revise my server purchase so I can stuff a couple of cards in there, instead of one. > I wish you the best, > Thanks :) From owner-freebsd-net@freebsd.org Tue Sep 27 19:50:23 2016 Return-Path: Delivered-To: freebsd-net@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 7129ABECB87 for ; Tue, 27 Sep 2016 19:50:23 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from mail-vk0-x233.google.com (mail-vk0-x233.google.com [IPv6:2607:f8b0:400c:c05::233]) (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 25D58CF3 for ; Tue, 27 Sep 2016 19:50:23 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by mail-vk0-x233.google.com with SMTP id 192so23845916vkl.2 for ; Tue, 27 Sep 2016 12:50:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=GmBNdOn8DDonpFwFpJdC3SJcUtWJWC2VKOpLNwtHBLA=; b=t276xzCMYAmyJ3x2iPZBmxuIkhmSTXMxWiecgH6VswvwdrxeG6mYKxjimTdVwQh4gg jDfeS1x7JFf8iHuBxZ28rld4SS6jwgtSUCoZaITm2MMUUOFZ8dGj3hV+ZG5YFhqOEO96 9+qI43QFsu2DMiSl/9/OStqce+elHQGCMKWM9W3cl0j1Wlgm9JISB4BJJwpOKl7kqZKS 8tTaoluMF205cP5CcB7qbjr38i530kuCwl2uQQpGmPjyBvYrAhPodzh6xluNPA0YxXSj y9jkyakt63zOLrBrW6AnlWWVvxiNKQYlSeHP39hpcTcgYOa2qRfmXP3wgDOpfyo4gJjj BeqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=GmBNdOn8DDonpFwFpJdC3SJcUtWJWC2VKOpLNwtHBLA=; b=kx/oEIgLOapCqYy8plwzw5imwWSi/lRyQqjYw2MsyNv2fPbWfVr1p/7JfDIU4MiSAo Len3lJAI6A2cqLJVmE2U9L2SYMRBxZfCLq2AaPZK9DGXxG9S0sHd/ZYmfmiIBa4uB1yx qFePuoBYOmepqGj4zxfN6k/wwRDkTEqujaKE1kSQaVr9m6c/lqfluIiUtqfHf876xQ71 adYlqdifdSBFp8SR78N5rgyPEdso9HaGoqz8vIqhXvCBgL5IZMzhe6+VFpUrD8i7Z5Ax HlvAeIzH+staprudApNCbD6KA55dCor1QIAApCeJZFOPSLY/3kymKNLvBuRqpQRFJWxI uGdg== X-Gm-Message-State: AA6/9RmLv0H7kf7zWwyNM+TdoSeBZXoQVidMKtwKMNCiEVBr0yywhi1Yy81krd3UkhYY5s5/Z1ECNFwjloxmAQ== X-Received: by 10.31.148.211 with SMTP id w202mr11963099vkd.87.1475005822273; Tue, 27 Sep 2016 12:50:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.168.88 with HTTP; Tue, 27 Sep 2016 12:50:21 -0700 (PDT) In-Reply-To: References: <53c8aa26-6bd5-22ed-8987-f901451e4dfd@freebsd.org> <1bcdca11-54de-c827-7f61-b06250dd2e67@freebsd.org> From: Jack Vogel Date: Tue, 27 Sep 2016 12:50:21 -0700 Message-ID: Subject: Re: Will this card (probably) work? To: Lee Brown Cc: freebsd-net Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 27 Sep 2016 19:50:23 -0000 I think I should let Intel speak to this, they do have quad port adapters in their offerings, and as far as I know they are fine. I was speaking of times past when the bridge device would be the source of problems, and just saying if this was a non-Intel design it could be an issue, but since you are being brave don't let me ruin your adventure :) Jack On Tue, Sep 27, 2016 at 12:32 PM, Lee Brown wrote: > > > On Tue, Sep 27, 2016 at 12:24 PM, Jack Vogel wrote: > >> Its not that they, whoever they is :). "use" the Intel PCID, no, it >> really IS the Intel device, >> but it's silicon, not an assembled adapter, its that part which is being >> done by someone >> else, and btw, the components to support 4 port type adapters have been >> notoriously >> problematic in the past, so having it done by someone besides Intel is at >> least a potential >> source of concern. >> >> Do you know if 2-port adapters are generally more reliable? I could > revise my server purchase so I can stuff a couple of cards in there, > instead of one. > > > >> I wish you the best, >> > Thanks :) > From owner-freebsd-net@freebsd.org Tue Sep 27 22:23:33 2016 Return-Path: Delivered-To: freebsd-net@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 57155BEC595 for ; Tue, 27 Sep 2016 22:23:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 46737C26 for ; Tue, 27 Sep 2016 22:23:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8RMNWSK085598 for ; Tue, 27 Sep 2016 22:23:33 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 212283] oversized IP datagrams on raw socket with IP_RAWOUTPUT hang network interface drivers Date: Tue, 27 Sep 2016 22:23:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-RC1 X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: mat@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 27 Sep 2016 22:23:33 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212283 --- Comment #15 from Mathieu Arnold --- This is still a problem on 11.0-RELEASE. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Tue Sep 27 23:11:15 2016 Return-Path: Delivered-To: freebsd-net@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 07301BECD28 for ; Tue, 27 Sep 2016 23:11:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 EAD17EFD for ; Tue, 27 Sep 2016 23:11:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8RNBEH6026556 for ; Tue, 27 Sep 2016 23:11:14 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 213015] openvswitch and vnet jails - panic when bridge is destroyed and recreated Date: Tue, 27 Sep 2016 23:11:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: akoshibe@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 27 Sep 2016 23:11:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213015 --- Comment #2 from akoshibe@gmail.com --- (In reply to Palle Girgensohn from comment #1) I've noticed that I won't trigger a panic if, keeping everything else the s= ame, I omit sending traffic (e.g. the one ping in the test script) or replace openvswitch with if_bridge. Hence, I'm also wondering if it's something abo= ut what openvswitch does with its tap interface. If there is a solid way to do jails with networking and netgraph, that is something that I would like to take a look at, and would appreciate pointers for... --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Tue Sep 27 23:19:09 2016 Return-Path: Delivered-To: freebsd-net@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 D0DC7C00038 for ; Tue, 27 Sep 2016 23:19:09 +0000 (UTC) (envelope-from leeb@ratnaling.org) Received: from mail-vk0-x230.google.com (mail-vk0-x230.google.com [IPv6:2607:f8b0:400c:c05::230]) (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 8A4FB307 for ; Tue, 27 Sep 2016 23:19:09 +0000 (UTC) (envelope-from leeb@ratnaling.org) Received: by mail-vk0-x230.google.com with SMTP id v205so28318438vke.1 for ; Tue, 27 Sep 2016 16:19:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ratnaling-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=UgfssEJxLqqbYdW+KocA13bQymPpC3oEtaVMzYGU4J0=; b=FQeTYDB3YdSasOQ+eCpZBoY6VPI7Sa1tKeuWi9eUtK9UbOwLNgELLkfDilPMSZotAb VOQ21TGo0bp2uziLT15Lb5K7OM1rRm04qTXpjLLReKukr1T4uY22vUOKz1wKh7AhZhC+ EllHjZYQQj9V8wcxVenaij+YrkUnAyNtWY2PBxzly92M7TYZa4JfI9Ktadmy1SYcMC96 0CGkuKEJGHu83zK7EFKIX82tkvraEf5AeqOzkW2vwL6xNoYz49jS30vNazq4KM+VlnTJ ydjOcrTWJBHLZNVap7qoZFmQVHyj4hCTOz15aT+x0hRBTK6TFRul4AQ1PfheCdTBj98f QTWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=UgfssEJxLqqbYdW+KocA13bQymPpC3oEtaVMzYGU4J0=; b=N7pYQ+tsB4V4cwoS8uRS6P2JUizEurMuDacy+e2ASUu0Vi2/t4S9mocz0BcqQrnbm6 YBLue3Pe6VXDOitbJFnUcFA3Qys82TuflJpJ67cGVFv8agrsRaWBmzvfFQe5X3GDzM04 r2T3CDurieoMylWeElD48FK/vo3hCBxuLgQ9H6sbA4oaItyFceM7I414+8TJU/PIVmiH BZvV4lQAZmlO0ipMvauDL9QPttTNjnyCXmatbKh51iDUbk22406jXta13Z5kCOtHzonN JkhOq5X5xclGo6qS7eXCp8gOU7WFylMBiNAls78+stE1AvBr8fdcuY8CJauLi8VPvfPO tgcg== X-Gm-Message-State: AA6/9RmvMEJV2S+o0X7kziftG2NDX2ylEdljkAEKZTRWhqNRBZ4EyL+R0ZDgiCjuFESIiEh764OWBl37d84sfA== X-Received: by 10.31.229.133 with SMTP id c127mr14818676vkh.153.1475018336682; Tue, 27 Sep 2016 16:18:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.65.38 with HTTP; Tue, 27 Sep 2016 16:18:55 -0700 (PDT) In-Reply-To: References: <53c8aa26-6bd5-22ed-8987-f901451e4dfd@freebsd.org> <1bcdca11-54de-c827-7f61-b06250dd2e67@freebsd.org> From: Lee Brown Date: Tue, 27 Sep 2016 16:18:55 -0700 Message-ID: Subject: Re: Will this card (probably) work? To: Jack Vogel Cc: freebsd-net Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 27 Sep 2016 23:19:09 -0000 Maybe I'm looking in the wrong place, but I cannot find anything single-mode from Intel except the X520-LR1 (82599ES chipset) which is only a single port. Everything else is Multi-mode. Even a lot of the SFP stuff only supports MM. At least that's where my research leads me. If you have any insight I'd gladly follow. Believe me, if I could find a supported vendor 4-port or even 2-port SFP or LC that supported SMF I'd be going after it rabidly :) Maybe I should just go with a fiber switch and offload to copper, then at least if there are problems it sites firmly with the vendor and not me! -- lee On Tue, Sep 27, 2016 at 12:50 PM, Jack Vogel wrote: > I think I should let Intel speak to this, they do have quad port adapters > in their offerings, and > as far as I know they are fine. I was speaking of times past when the > bridge device would be > the source of problems, and just saying if this was a non-Intel design it > could be an issue, but > since you are being brave don't let me ruin your adventure :) > > Jack > > > > On Tue, Sep 27, 2016 at 12:32 PM, Lee Brown wrote: > >> >> >> On Tue, Sep 27, 2016 at 12:24 PM, Jack Vogel wrote: >> >>> Its not that they, whoever they is :). "use" the Intel PCID, no, it >>> really IS the Intel device, >>> but it's silicon, not an assembled adapter, its that part which is being >>> done by someone >>> else, and btw, the components to support 4 port type adapters have been >>> notoriously >>> problematic in the past, so having it done by someone besides Intel is >>> at least a potential >>> source of concern. >>> >>> Do you know if 2-port adapters are generally more reliable? I could >> revise my server purchase so I can stuff a couple of cards in there, >> instead of one. >> >> >> >>> I wish you the best, >>> >> Thanks :) >> > > From owner-freebsd-net@freebsd.org Tue Sep 27 23:28:15 2016 Return-Path: Delivered-To: freebsd-net@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 9BFCBC00284 for ; Tue, 27 Sep 2016 23:28:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 7B2449FB for ; Tue, 27 Sep 2016 23:28:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8RNSExa057991 for ; Tue, 27 Sep 2016 23:28:15 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 213015] openvswitch and vnet jails - panic when bridge is destroyed and recreated Date: Tue, 27 Sep 2016 23:28:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bz@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 27 Sep 2016 23:28:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213015 Bjoern A. Zeeb changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bz@FreeBSD.org --- Comment #3 from Bjoern A. Zeeb --- (In reply to Palle Girgensohn from comment #1) That forums thread is quite old; things should have improved for 11. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Tue Sep 27 23:30:09 2016 Return-Path: Delivered-To: freebsd-net@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 C5396C00300 for ; Tue, 27 Sep 2016 23:30:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 B4D22ADF for ; Tue, 27 Sep 2016 23:30:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8RNU9Gw060420 for ; Tue, 27 Sep 2016 23:30:09 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 213015] openvswitch and vnet jails - panic when bridge is destroyed and recreated Date: Tue, 27 Sep 2016 23:30:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bz@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 27 Sep 2016 23:30:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213015 --- Comment #4 from Bjoern A. Zeeb --- (In reply to akoshibe from comment #2) When in your shell script does the panic happen? Do you know? I wonder if it's before the ifconfig commands. In general I wonder if the OVS buffers packets and does a deferred transmit, e.g. like the netisr; in that case on del one would have to cleanup the qu= eue. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Sep 28 00:02:45 2016 Return-Path: Delivered-To: freebsd-net@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 099F7C00BCD for ; Wed, 28 Sep 2016 00:02:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 ED326D7B for ; Wed, 28 Sep 2016 00:02:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8S02iDp007768 for ; Wed, 28 Sep 2016 00:02:44 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 213015] openvswitch and vnet jails - panic when bridge is destroyed and recreated Date: Wed, 28 Sep 2016 00:02:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: akoshibe@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 00:02:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213015 --- Comment #5 from akoshibe@gmail.com --- (In reply to Bjoern A. Zeeb from comment #4) I'm suspecting that the panic occurs when I create the bridge for the second time. I'm going to try to check if that's the case later today. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Sep 28 00:08:26 2016 Return-Path: Delivered-To: freebsd-net@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 2ED60C00D31 for ; Wed, 28 Sep 2016 00:08:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 1E6D9EF7 for ; Wed, 28 Sep 2016 00:08:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8S08P3h023180 for ; Wed, 28 Sep 2016 00:08:25 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 213015] openvswitch and vnet jails - panic when bridge is destroyed and recreated Date: Wed, 28 Sep 2016 00:08:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: girgen@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 00:08:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213015 --- Comment #6 from Palle Girgensohn --- (In reply to Bjoern A. Zeeb from comment #3) Mmm, indeed it is. But I haven't seen that much action about epair lately, = has it really been improved enough? The described problem is identical with wha= t we experienced back then. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Sep 28 02:11:28 2016 Return-Path: Delivered-To: freebsd-net@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 816D7BEC9C8 for ; Wed, 28 Sep 2016 02:11:28 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from mail-vk0-x236.google.com (mail-vk0-x236.google.com [IPv6:2607:f8b0:400c:c05::236]) (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 33949BAE for ; Wed, 28 Sep 2016 02:11:28 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: by mail-vk0-x236.google.com with SMTP id z126so31143633vkd.0 for ; Tue, 27 Sep 2016 19:11:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=MIw9E3w/4tD/TeSLHVN8aNvFCK+3IOpvhIVfZcxqjQM=; b=qM4GYD8VWMFgldMo6ammGQLY+r4cUY7De1jqkBKXd8fyzedd9ZxGdeTUTj9aRIgi/a 4e4PXqMPnkHS7xcsrdQTdfFQgwssgOHcLWFXJbes/9sRa7LSdvWCK+k8nFWjL08z/KID 7yZ0y2Uncs6PX0KcwbiSSMwl4ghvKm2LzZlP6tRvaAomWUETalEOENsZcVJUlog0Ow6V q4lA5ijrV4gtWvEizEysDd3Bp7HVEYzmxC5zDBSWE8RnQFOGQW/jIMokCs7lwWGcBikq HkxQZ1hUo/KnjIjudcP/rjyap2icIUsKkIpQ/xSpe6OCLi5l+W+Bm1IFGzWtogKlMYfp OaPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MIw9E3w/4tD/TeSLHVN8aNvFCK+3IOpvhIVfZcxqjQM=; b=Bh7HUQEXUBlosiDx22xjdHYW/U7uTR/Xu8S4Ysu1+N/vCLqDJag+hZTfxOqgd+mUtW FtHU47iTKV/dYiUK5HFyW6QskyuhAM3Y4ZcCOK/46IFQceZgM8UFVfQHZGguHFCXdzuJ 51b3EnI67SA7XEn4RFx36RCRyUxMuATX3mmRAFt8lVw3bSnibrAENH6iADprouqVTtTQ uPX/eeR5+EIuZroHLhKXktcM3MVtpsrJxKf38eAEEyUjqVIBDNRqAgr8uvZy9i8Bgcpu Ej3Mm0UTjyA5nRUfvT+7aEI90Tv+9MEC+CKk/t0hKFVQaP+sKDT3rQP336h+2HH4+dPj /4rg== X-Gm-Message-State: AA6/9Rm5aIqZFK6QFPaxvNEeyNR7SgqAjZQJHrAYOiwt5J8IaAo9KP0sEkxDV4clbf3SrWwUJKHTGyM0rv4WsA== X-Received: by 10.31.218.195 with SMTP id r186mr15593776vkg.155.1475028686992; Tue, 27 Sep 2016 19:11:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.43.196 with HTTP; Tue, 27 Sep 2016 19:10:46 -0700 (PDT) From: Outback Dingo Date: Tue, 27 Sep 2016 22:10:46 -0400 Message-ID: Subject: FreeBSD 11.0 / netmap-fwd / ngeth0 / vrrp / vif To: freebsd-net Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 02:11:28 -0000 Hi, curious, Ive tried netmapfwd with ngeth0 / vrrp and it doesnt seem to be passing packets through to the VIF. basically its a pair of redundent BGP routers. Does ngeth and VRRP work with netmap-fwd ? or am i going to need to look at using openvswitch ? Thanks From owner-freebsd-net@freebsd.org Wed Sep 28 10:48:25 2016 Return-Path: Delivered-To: freebsd-net@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 81BB1C003F4 for ; Wed, 28 Sep 2016 10:48:25 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smadev.internal.net", Issuer "smadev.internal.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 71A1B1604 for ; Wed, 28 Sep 2016 10:48:23 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id u8SAQGKP008758; Wed, 28 Sep 2016 13:26:16 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) To: freebsd-net@freebsd.org, Ilias Seperis From: Achilleas Mantzios Subject: Strange issue with scp performance Message-ID: <57EB9AC8.3050102@matrix.gatewaynet.com> Date: Wed, 28 Sep 2016 13:26:16 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 10:48:25 -0000 Hello list, We have a weird situation here. We just made a clone of a virtual image running Linux and sent it over to some could provider. The problem is that the scp performance to *many* hosts in our office center has worsened considerably, including one freebsd box. In this freebsd box I run also a jail, and a linux ubuntu image with bhyve. The crazy thing here is that : 1) scp from the original (local office center) linux image to the host FreeBSD, its jailed FreeBSD and its bhyve linux is 2.7 MB/s 2) scp from the cloud linux image to the host FreeBSD is slow (~300KB/s) 3) scp from the cloud linux image to the above FreeBSD's jail is slow(~300KB/s) 4) scp from the cloud linux image to the above FreeBSD's bhyve ubuntu is fast(~1->1.5MB/s) What can cause this behavior? PS Please answer to me directly as I am not subscribed to -net. Thanks a lot for any ideas. -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt From owner-freebsd-net@freebsd.org Wed Sep 28 11:13:20 2016 Return-Path: Delivered-To: freebsd-net@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 6BC9AC00F24 for ; Wed, 28 Sep 2016 11:13:20 +0000 (UTC) (envelope-from gradiometric@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (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 E6FB46DC for ; Wed, 28 Sep 2016 11:13:19 +0000 (UTC) (envelope-from gradiometric@gmail.com) Received: by mail-wm0-x234.google.com with SMTP id l132so65122109wmf.1 for ; Wed, 28 Sep 2016 04:13:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=YCzKGzNtx7N8TJvfLg4725a5MKPeruplVKXFrgWKfy8=; b=E1qQiLjxLlAQLUbLbd0LN/cXfPm6qv3UHGAZKtpKGpiG71seClsw3JGCCXv6NYEiHh watfC1ZZQ6IMQ7KlThR+htzx60+vEcbJKuzT+pD1/wBuF55kvlt3fEk3nZ6HU5CvvjL6 RRBvyyLOU+/pYZ95UPL83g0wAOxstPJQ0tCiFozlCs99Hr9QCEujED9ZdGhqWTZe339Y ckG4XMRH5M02IZa54pDvv1WY8NhG/qtCAnoPVZtDsACab1m+umxkO+C634/o4adWU2W7 bfFDK/cbC0cfj0l0jE/mG//LSQPrJuzobpEphcFSEV/p+qUK8f5DD06l5NDgo3l0K9uW hIxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YCzKGzNtx7N8TJvfLg4725a5MKPeruplVKXFrgWKfy8=; b=Q/a6aRaqVVM1AE7dem1O0MgtZBbFb1E2QXI7YXusDj5vdmwutM/y8yVg2m6lIeqIzB KziX4Jn/PhSi1jNh3vre4BqolSccOVy02F41JLfG14Cc3gczLEpRpBCkPvLyQAEMmNCI CAE+onyzlRIdLRr8VQJxFvo1buQQCMollipqIxrCYDrtkFJ6VpjE5mqDXaYwWexIVzgq 5BBJdSwx8ROt9bK3Nj3O6Q0ejycDCW+DdUyVwYQciPiXi3ox59w3VNAEnGZXKLfFpcaq MO3GNuwU1QnoFffbPf/zeyUO8SAOWHVvM3eX/woOvRsFW27jkNQkIRt0O5YNKRg+EubG /L8Q== X-Gm-Message-State: AA6/9RkilH1sMQoVNgqFZU7rZ5okZ7ce8H00VgpYIBBi4z+zYGK02yrWcYVLNu3Pi8VLmkBPcZx+BQopLHQIww== X-Received: by 10.194.147.99 with SMTP id tj3mr27411106wjb.183.1475061197662; Wed, 28 Sep 2016 04:13:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.203.2 with HTTP; Wed, 28 Sep 2016 04:13:17 -0700 (PDT) From: Andrew Savchenko Date: Wed, 28 Sep 2016 14:13:17 +0300 Message-ID: Subject: "igb" interfaces aren't picking up media on boot To: freebsd-net@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 11:13:20 -0000 Dear All, I've moved my lovely server to the datacenter and now pulling my hair out while trying to understand why both of /dev/igb interfaces aren't picking up Ethernet connection on boot. Tested with both 10.3-REL and 11.0-REL. On the other end it's connected into Dlink DES-1210-52 switch. When system is booted, running `ifconfig | grep status` over iKVM returns: status: no carrier status: no carrier However, after `/etc/rc.d/netif restart && /etc/rc.d/routing restart` it picks up the cable which is connected to one of the ports. Both interfaces are Intel I210AT integrated in the MB. For the moment being, the only solution I see is to create a separate script in /etc/rc.d and restart netif/routing after boot is completed. Could this be a problem specific to onboard interfaces?.. I was using this particular box in other environment without any similar problems on 10.0-REL. Output from `ifconfig` when one of the interfaces is up: igb0: flags=8c02 metric 0 mtu 1500 options=6403bb ether 00:00:00:00:00:00 nd6 options=29 media: Ethernet autoselect status: no carrier igb1: flags=8843 metric 0 mtu 1500 options=6403bb ether 00:00:00:00:00:00 inet 111.111.111.111 netmask 0xffffff00 broadcast 111.111.111.255 inet 111.111.111.112 netmask 0xffffff00 broadcast 111.111.111.255 nd6 options=29 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 groups: lo # uname -a [FreeBSD 11.0-RELEASE #0 r306211: Thu Sep 22 21:43:30 UTC 2016 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64] From owner-freebsd-net@freebsd.org Wed Sep 28 12:00:13 2016 Return-Path: Delivered-To: freebsd-net@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 124B2C005DB for ; Wed, 28 Sep 2016 12:00:13 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from mail-pf0-x22d.google.com (mail-pf0-x22d.google.com [IPv6:2607:f8b0:400e:c00::22d]) (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 DDE241D9E for ; Wed, 28 Sep 2016 12:00:12 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: by mail-pf0-x22d.google.com with SMTP id s13so16927015pfd.2 for ; Wed, 28 Sep 2016 05:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=multiplay-co-uk.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=KcQsDcpCGKmp9/GBpUoL79fiTyKmJuYFvGt5eJdf2Bw=; b=CiS/2WOlfq1RiXhiLYsern5i/rFXtOKH+IIOVY+gVrHRlwsDp3Jzl27QV887Msk6Ap KEeb2sYpe3pVhSuz8n+47fV5cCVWv/mlyh0/uXg8y3H4Lxho8Yeb7XHrWBwpzR88a9UO 2PqdBSqdnegrmusjQwoKgTxIlfAFdYXQ+QjeBkEpK+UIN2Ophde6opPmbc9k5u4fsJJ5 atWEBkjHIMSSaKR/8vNXVj43zQ4wczLSJjkSoXLKAArl6qzyoJyWslCkEky3lAaOGQHq 6afGD74gkJR28vz3TBDspSLccLbUhF0sKEB8ueD9luodMvzCKNleycmFCLg49KnBwZcx uAoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=KcQsDcpCGKmp9/GBpUoL79fiTyKmJuYFvGt5eJdf2Bw=; b=eBvz5S7qKIUCl4YpNeTY/bH3k0skscbEobL2X42AnxgOj2Vzrt2pVbvWRmFh6mThGD aXuTIXBUjTQgTZm++lJG6WCIBUzjOcS5tuQk82ndoYzLmai+rZ7CEuOn5GMgSnrqycEc 2NIRkGkILlqz+cNu2uKaA/Xf45pcQ1lHfc5QaOUwBcX9lEODGv4zWlQcEh2oKO0B82E+ 8PjgF9/PNZK6yipah6GO09R4qHINJTsmHMKsrf1blIfniy0vFUT5ousLPTOWo6oNm3Ts e/GZ6vessBQ+Di9dAaK3TFelGPKKEYb0/CXAgH6OLSkyW0XQtbeJ40y+BOZ8CIITevF7 yqfg== X-Gm-Message-State: AE9vXwNlz5OveuvQGugBZxSKo9Q3Z7UX81hus0Cm6oWc8B6a5kw64uvP0I2nfqoZDSblsXpw X-Received: by 10.98.184.26 with SMTP id p26mr57352446pfe.71.1475064011656; Wed, 28 Sep 2016 05:00:11 -0700 (PDT) Received: from [10.10.1.58] ([185.97.61.26]) by smtp.gmail.com with ESMTPSA id e1sm12218715pap.11.2016.09.28.05.00.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Sep 2016 05:00:10 -0700 (PDT) Subject: Re: "igb" interfaces aren't picking up media on boot To: freebsd-net@freebsd.org References: From: Steven Hartland Message-ID: <653b4473-558b-5ef8-41b7-080ec6c5584d@multiplay.co.uk> Date: Wed, 28 Sep 2016 13:00:11 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 12:00:13 -0000 Try assigning an IP to the interface or manually up it. On 28/09/2016 12:13, Andrew Savchenko wrote: > Dear All, > > I've moved my lovely server to the datacenter and now pulling my hair out > while trying to > understand why both of /dev/igb interfaces aren't picking up Ethernet > connection on boot. > Tested with both 10.3-REL and 11.0-REL. > On the other end it's connected into Dlink DES-1210-52 switch. > > When system is booted, running `ifconfig | grep status` over iKVM returns: > status: no carrier > status: no carrier > > However, after `/etc/rc.d/netif restart && /etc/rc.d/routing restart` it > picks up the cable > which is connected to one of the ports. Both interfaces are Intel I210AT > integrated in the MB. > > For the moment being, the only solution I see is to create a separate > script in /etc/rc.d > and restart netif/routing after boot is completed. > > Could this be a problem specific to onboard interfaces?.. I was using this > particular box > in other environment without any similar problems on 10.0-REL. > > Output from `ifconfig` when one of the interfaces is up: > igb0: flags=8c02 metric 0 mtu 1500 > > options=6403bb > ether 00:00:00:00:00:00 > nd6 options=29 > media: Ethernet autoselect > status: no carrier > igb1: flags=8843 metric 0 mtu 1500 > > options=6403bb > ether 00:00:00:00:00:00 > inet 111.111.111.111 netmask 0xffffff00 broadcast 111.111.111.255 > inet 111.111.111.112 netmask 0xffffff00 broadcast 111.111.111.255 > nd6 options=29 > media: Ethernet autoselect (100baseTX ) > status: active > lo0: flags=8049 metric 0 mtu 16384 > options=600003 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > inet 127.0.0.1 netmask 0xff000000 > nd6 options=21 > groups: lo > > # uname -a > [FreeBSD 11.0-RELEASE #0 r306211: Thu Sep 22 21:43:30 UTC 2016 > root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64] > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@freebsd.org Wed Sep 28 13:53:57 2016 Return-Path: Delivered-To: freebsd-net@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 B6A9FC00E7C for ; Wed, 28 Sep 2016 13:53:57 +0000 (UTC) (envelope-from jeffrey.e.pieper@intel.com) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "fmsmga105.fm.intel.com", Issuer "Intel External Issuing CA 6A" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9B2356DC for ; Wed, 28 Sep 2016 13:53:57 +0000 (UTC) (envelope-from jeffrey.e.pieper@intel.com) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP; 28 Sep 2016 06:53:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,410,1470726000"; d="scan'208";a="14133680" Received: from orsmsx106.amr.corp.intel.com ([10.22.225.133]) by fmsmga005.fm.intel.com with ESMTP; 28 Sep 2016 06:53:45 -0700 Received: from orsmsx151.amr.corp.intel.com (10.22.226.38) by ORSMSX106.amr.corp.intel.com (10.22.225.133) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 28 Sep 2016 06:53:44 -0700 Received: from orsmsx111.amr.corp.intel.com ([169.254.12.59]) by ORSMSX151.amr.corp.intel.com ([10.22.226.38]) with mapi id 14.03.0248.002; Wed, 28 Sep 2016 06:53:44 -0700 From: "Pieper, Jeffrey E" To: "freebsd-net@freebsd.org" , Andrew Savchenko Subject: RE: "igb" interfaces aren't picking up media on boot Thread-Topic: "igb" interfaces aren't picking up media on boot Thread-Index: AQHSGXlcD2m/0M784EWK5eSFZjGT76CPQiCA//+pUOA= Date: Wed, 28 Sep 2016 13:53:43 +0000 Message-ID: <2A35EA60C3C77D438915767F458D65688394B821@ORSMSX111.amr.corp.intel.com> References: <653b4473-558b-5ef8-41b7-080ec6c5584d@multiplay.co.uk> In-Reply-To: <653b4473-558b-5ef8-41b7-080ec6c5584d@multiplay.co.uk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZDdmNzY2ZDktNWRjMS00MDNiLWExYWYtNzNjYjdiZmFmMjYwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IkUwdG5Ta2pJZ1h2TTNyRHNRRmdWZUp6ZXpDTnRUdGdJQWhpVnQ3dGx5aWc9In0= x-ctpclassification: CTP_IC x-originating-ip: [10.22.254.138] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 13:53:57 -0000 ether 00:00:00:00:00:00 Doesn't seem like a valid MAC. Jeff -----Original Message----- From: owner-freebsd-net@freebsd.org [mailto:owner-freebsd-net@freebsd.org] = On Behalf Of Steven Hartland Sent: Wednesday, September 28, 2016 5:00 AM To: freebsd-net@freebsd.org Subject: Re: "igb" interfaces aren't picking up media on boot Try assigning an IP to the interface or manually up it. On 28/09/2016 12:13, Andrew Savchenko wrote: > Dear All, > > I've moved my lovely server to the datacenter and now pulling my hair out > while trying to > understand why both of /dev/igb interfaces aren't picking up Ethernet > connection on boot. > Tested with both 10.3-REL and 11.0-REL. > On the other end it's connected into Dlink DES-1210-52 switch. > > When system is booted, running `ifconfig | grep status` over iKVM returns= : > status: no carrier > status: no carrier > > However, after `/etc/rc.d/netif restart && /etc/rc.d/routing restart` it > picks up the cable > which is connected to one of the ports. Both interfaces are Intel I210AT > integrated in the MB. > > For the moment being, the only solution I see is to create a separate > script in /etc/rc.d > and restart netif/routing after boot is completed. > > Could this be a problem specific to onboard interfaces?.. I was using thi= s > particular box > in other environment without any similar problems on 10.0-REL. > > Output from `ifconfig` when one of the interfaces is up: > igb0: flags=3D8c02 metric 0 mtu 1500 > > options=3D6403bb > ether 00:00:00:00:00:00 > nd6 options=3D29 > media: Ethernet autoselect > status: no carrier > igb1: flags=3D8843 metric 0 mtu 1= 500 > > options=3D6403bb > ether 00:00:00:00:00:00 > inet 111.111.111.111 netmask 0xffffff00 broadcast 111.111.111.= 255 > inet 111.111.111.112 netmask 0xffffff00 broadcast 111.111.111.= 255 > nd6 options=3D29 > media: Ethernet autoselect (100baseTX ) > status: active > lo0: flags=3D8049 metric 0 mtu 16384 > options=3D600003 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > inet 127.0.0.1 netmask 0xff000000 > nd6 options=3D21 > groups: lo > > # uname -a > [FreeBSD 11.0-RELEASE #0 r306211: Thu Sep 22 21:43:30 UTC 2016 > root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64] > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" _______________________________________________ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@freebsd.org Wed Sep 28 13:57:03 2016 Return-Path: Delivered-To: freebsd-net@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 F2EC5C00F5C for ; Wed, 28 Sep 2016 13:57:03 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (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 B2F96920 for ; Wed, 28 Sep 2016 13:57:03 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id E582D1FE023; Wed, 28 Sep 2016 15:56:59 +0200 (CEST) Subject: Re: netstat counts input traffic twice To: Ben RUBSON , FreeBSD Net References: <94953762-4397-476D-AD61-A39914F27938@gmail.com> From: Hans Petter Selasky Message-ID: <6d052c64-2ca2-7839-c297-e764634be648@selasky.org> Date: Wed, 28 Sep 2016 16:01:51 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <94953762-4397-476D-AD61-A39914F27938@gmail.com> Content-Type: multipart/mixed; boundary="------------46696AE8FF0830D5F820E892" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 13:57:04 -0000 This is a multi-part message in MIME format. --------------46696AE8FF0830D5F820E892 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 09/23/16 19:59, Ben RUBSON wrote: > netstat -b -I mlxen1 Hi Ben, Does the attached patch make any difference? --HPS --------------46696AE8FF0830D5F820E892 Content-Type: text/x-patch; name="en_port.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="en_port.c.diff" Index: sys/ofed/drivers/net/mlx4/en_port.c =================================================================== --- sys/ofed/drivers/net/mlx4/en_port.c (revision 306255) +++ sys/ofed/drivers/net/mlx4/en_port.c (working copy) @@ -552,8 +552,6 @@ #if __FreeBSD_version >= 1100000 if (reset == 0) { dev = mdev->pndev[port]; - if_inc_counter(dev, IFCOUNTER_IPACKETS, - priv->pkstats.rx_packets - priv->pkstats_last.rx_packets); if_inc_counter(dev, IFCOUNTER_OPACKETS, priv->pkstats.tx_packets - priv->pkstats_last.tx_packets); if_inc_counter(dev, IFCOUNTER_IBYTES, --------------46696AE8FF0830D5F820E892-- From owner-freebsd-net@freebsd.org Wed Sep 28 15:02:18 2016 Return-Path: Delivered-To: freebsd-net@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 D251AC011F5 for ; Wed, 28 Sep 2016 15:02:18 +0000 (UTC) (envelope-from gradiometric@gmail.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (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 6B505121C for ; Wed, 28 Sep 2016 15:02:18 +0000 (UTC) (envelope-from gradiometric@gmail.com) Received: by mail-wm0-x229.google.com with SMTP id l132so240782962wmf.0 for ; Wed, 28 Sep 2016 08:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=PmED5wDOwdfOPTaZQLOWUBE9aignbj1YZJXdp5wVnEU=; b=HVy/mlA4ZOUfX+YbFQM4jBlHdZh++Ek2p0vCoul6pUgDkoo6ae7gItH6oukSEogndF 7boP6uFH2t79CNwEb2RLfEP3QXxEoxc3TVlLsT813gBinTQzoqwZJBdMxfz8qqTfJFME P4BC+VYhp9UcmMge/zBMEoXyula7a7x/H6lwU64oN6Y22xQdsIPEhlzOalb7mkIMxBxx va+gjnD3rmQdEeT3imT7dpw4R7ZZpefFW9HHHvaODw5x/xQdlaQ7AiZDTiDVCyMNDt0t WAUiI8YXgyVeyLcKjiTQyvWlxKsfBP53MOr8MfIiqyueYkID8fngHChzKMUJQFKMiuTt db/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=PmED5wDOwdfOPTaZQLOWUBE9aignbj1YZJXdp5wVnEU=; b=dF8vw2KqZxfgdmWi35AMIhDDFusu7AZEFtOINPF50ymiwX0VCFINkAb92zCpDTliKQ SGr70R28sJDyICURrxdH+QYt4DvKhZVrf95FisdqlybVhER173fPNxl4maHjBp7HDRaS 2z6z5WmY8l8szanuqdXnF5+qC1fcXJOLk5X2NUF0jhDzAZrBDCnODbxLnHj9nshq4aPR XcmOIPgEJPukx6OZhmQRodgKI6TR2A4kC7fMPNdMw1eqwapsxrwk9PzvCwLD/cJdRiES 27F5uOcVeKl1gKa7aEnCzwtEXDBioFq/ky96zYL+tc1gBT1uksTwSca+BPLQMUKRAn7u 3Y1g== X-Gm-Message-State: AA6/9Rk2Ahf1U+5EZ79gZh4KsvrxTHZ/L+JhAlHsCu075x3a82DDigBEjqsoCYfPYOEyeIVWPAf0DXxrKDTTbA== X-Received: by 10.28.31.76 with SMTP id f73mr8076132wmf.90.1475074936838; Wed, 28 Sep 2016 08:02:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.203.2 with HTTP; Wed, 28 Sep 2016 08:02:16 -0700 (PDT) In-Reply-To: <2A35EA60C3C77D438915767F458D65688394B821@ORSMSX111.amr.corp.intel.com> References: <653b4473-558b-5ef8-41b7-080ec6c5584d@multiplay.co.uk> <2A35EA60C3C77D438915767F458D65688394B821@ORSMSX111.amr.corp.intel.com> From: Andrew Savchenko Date: Wed, 28 Sep 2016 18:02:16 +0300 Message-ID: Subject: Re: "igb" interfaces aren't picking up media on boot To: "Pieper, Jeffrey E" Cc: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 15:02:18 -0000 MAC's and IP's are abviously changed. For the moment being I have "solved" this by a tiny script in /etc/rc.d/ that restarts networking & routing after the system boot: > cat /etc/rc.d/zzznet #!/bin/sh # PROVIDE: zzznet # REQUIRE: NETWORKING netif cron # KEYWORD: nojail . /etc/rc.subr name="zzznet" start_cmd="${name}_start" stop_cmd=":" zzznet_start() { echo "Waiting 30s before restarting network..." sleep 30 echo "Attempting to restart the network..." /etc/rc.d/netif restart && /etc/rc.d/routing restart echo "Should be restarted now, going on..." } load_rc_config $name run_rc_command "$1" On Wed, Sep 28, 2016 at 4:53 PM, Pieper, Jeffrey E < jeffrey.e.pieper@intel.com> wrote: > ether 00:00:00:00:00:00 > > Doesn't seem like a valid MAC. > > Jeff > -----Original Message----- > From: owner-freebsd-net@freebsd.org [mailto:owner-freebsd-net@freebsd.org] > On Behalf Of Steven Hartland > Sent: Wednesday, September 28, 2016 5:00 AM > To: freebsd-net@freebsd.org > Subject: Re: "igb" interfaces aren't picking up media on boot > > Try assigning an IP to the interface or manually up it. > > On 28/09/2016 12:13, Andrew Savchenko wrote: > > Dear All, > > > > I've moved my lovely server to the datacenter and now pulling my hair out > > while trying to > > understand why both of /dev/igb interfaces aren't picking up Ethernet > > connection on boot. > > Tested with both 10.3-REL and 11.0-REL. > > On the other end it's connected into Dlink DES-1210-52 switch. > > > > When system is booted, running `ifconfig | grep status` over iKVM > returns: > > status: no carrier > > status: no carrier > > > > However, after `/etc/rc.d/netif restart && /etc/rc.d/routing restart` it > > picks up the cable > > which is connected to one of the ports. Both interfaces are Intel I210AT > > integrated in the MB. > > > > For the moment being, the only solution I see is to create a separate > > script in /etc/rc.d > > and restart netif/routing after boot is completed. > > > > Could this be a problem specific to onboard interfaces?.. I was using > this > > particular box > > in other environment without any similar problems on 10.0-REL. > > > > Output from `ifconfig` when one of the interfaces is up: > > igb0: flags=8c02 metric 0 mtu 1500 > > > > options=6403bb MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6> > > ether 00:00:00:00:00:00 > > nd6 options=29 > > media: Ethernet autoselect > > status: no carrier > > igb1: flags=8843 metric 0 mtu > 1500 > > > > options=6403bb MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6> > > ether 00:00:00:00:00:00 > > inet 111.111.111.111 netmask 0xffffff00 broadcast > 111.111.111.255 > > inet 111.111.111.112 netmask 0xffffff00 broadcast > 111.111.111.255 > > nd6 options=29 > > media: Ethernet autoselect (100baseTX ) > > status: active > > lo0: flags=8049 metric 0 mtu 16384 > > options=600003 > > inet6 ::1 prefixlen 128 > > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > > inet 127.0.0.1 netmask 0xff000000 > > nd6 options=21 > > groups: lo > > > > # uname -a > > [FreeBSD 11.0-RELEASE #0 r306211: Thu Sep 22 21:43:30 UTC 2016 > > root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64] > > _______________________________________________ > > freebsd-net@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-net > > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > From owner-freebsd-net@freebsd.org Wed Sep 28 15:12:08 2016 Return-Path: Delivered-To: freebsd-net@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 CBA3EC013F8 for ; Wed, 28 Sep 2016 15:12:08 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qk0-x234.google.com (mail-qk0-x234.google.com [IPv6:2607:f8b0:400d:c09::234]) (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 7D35616B6 for ; Wed, 28 Sep 2016 15:12:08 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mail-qk0-x234.google.com with SMTP id z190so49907391qkc.3 for ; Wed, 28 Sep 2016 08:12:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=fWs4s+IuI8exN38U5bWv8LYy8+lP+//dCxyxPeyF890=; b=r77FI6LQ+UhmLcurqPJYPjUvRVuv9KGCLDlRiVioC27h3DfJ00uEjRTg33EQBXPnA8 c4q481qJxNMSzPK5QbRiUPydZUKSHV8w2uyArJCk3w67KkxirqyPsCq4wwSf+Kef0Fiz 365mW0LM8635X14mv3bkMSmLxHmUT3Q1lzzkSfXXw9Z1+YyMJ7CZ2Rsk0qTZMEGckgN7 zTNPbSN4PszWeCio7FpWFDKrg5YI7ndF4rl5PPPSN9vXshm3abEOV9fX8WCQStXTDyFr eBQacGn6s3aOO8e2BQSieLN61RGU+SpvlNab83va249Tb1HfAAdI6b6WlQhRdf2jSJbZ SBbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=fWs4s+IuI8exN38U5bWv8LYy8+lP+//dCxyxPeyF890=; b=Tn3Rlfxx69LRjU6pQZNA6vL/WO1++1iTyWZtTXLF5fgO9wO5njjySzCHboVR5+KjnZ mdhZG/FUboLYwL2dZ6YmqYwbZ7jJqag5NNGWinUsJTuC7uMeUpYvdVNPuOIFa6G+mUEl 7uFtbHcfDkKtlIbLzbVrxzSORU0gemTp0rCn12ZhaHXtEe1VsJpzyxmgU+2Ab8zrXWTo 5Z2+zBBkVL/9AuSbx0Ehs1PEOZHb2SBfMEDNgeygNkTZ6EkcsZgSRf/NCGPoF079DpHo jayPncPDH4dC3zitX4ykfez9ZyoNq5mecg0ovFGDy7gNB9idbbRXnJve1kSLhbedq2HM Kf2Q== X-Gm-Message-State: AA6/9RlhD5QjADx8jVN3/GwH0fphGoDIzon9IS7WpHjVrGnM91BFosxVDJkpT+/z5YkPs6+P1ZotQmtKWgsmZQ== X-Received: by 10.55.126.195 with SMTP id z186mr37334589qkc.76.1475075527496; Wed, 28 Sep 2016 08:12:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.129.239 with HTTP; Wed, 28 Sep 2016 08:12:06 -0700 (PDT) In-Reply-To: References: <653b4473-558b-5ef8-41b7-080ec6c5584d@multiplay.co.uk> <2A35EA60C3C77D438915767F458D65688394B821@ORSMSX111.amr.corp.intel.com> From: Freddie Cash Date: Wed, 28 Sep 2016 08:12:06 -0700 Message-ID: Subject: Re: "igb" interfaces aren't picking up media on boot To: Andrew Savchenko Cc: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 15:12:08 -0000 On Wed, Sep 28, 2016 at 8:02 AM, Andrew Savchenko wrote: > MAC's and IP's are abviously changed. > For the moment being I have "solved" this by a tiny script in /etc/rc.d/ > that restarts networking & routing after the system boot: > =E2=80=8BDo the NICs eventually pick up carrier status if you leave it afte= r boot? Could it just be slow picking up status changes? We had a couple em(4) or igb(4) (forget now) NICs that were like that. Took a good minute after boot before the NIC was finished initialising and detected the link. If that's the case, and you don't mind the wait (and want to make sure networking is working once the boot is complete), you can use the netwait_* options in /etc/rc.conf. That will pause the boot process until either the network link status changes to up, and/or you can ping the default gateway or any other IP on the network. Worked for us. Might work for you.=E2=80=8B --=20 Freddie Cash fjwcash@gmail.com From owner-freebsd-net@freebsd.org Wed Sep 28 15:40:30 2016 Return-Path: Delivered-To: freebsd-net@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 32445C01A59 for ; Wed, 28 Sep 2016 15:40:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 21DC8242 for ; Wed, 28 Sep 2016 15:40:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8SFeTFi037050 for ; Wed, 28 Sep 2016 15:40:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 213015] openvswitch and vnet jails - panic when bridge is destroyed and recreated Date: Wed, 28 Sep 2016 15:40:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: akoshibe@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 15:40:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213015 --- Comment #7 from akoshibe@gmail.com --- (In reply to akoshibe from comment #5) Looking more closely, the panic is during the first time ovs-vsctl is calle= d in the script (after a previous uneventful run). The last lines I see in dmesg prior to a panic are: epair0a: Ethernet address: 02:ff:50:00:03:0a epair0b: Ethernet address: 02:ff:a0:00:05:0b <5>epair0a: link state changed to UP <5>epair0b: link state changed to UP epair1a: Ethernet address: 02:ff:50:00:06:0a epair1b: Ethernet address: 02:ff:a0:00:07:0b <5>epair1a: link state changed to UP <5>epair1b: link state changed to UP <6>epair1a: permanently promiscuous mode enabled <6>epair0a: permanently promiscuous mode enabled tap1: Ethernet address: 00:bd:4e:02:f9:01 <5>tap1: link state changed to UP <6>tap1: changing name to 'vbr0' <6>vbr0: permanently promiscuous mode enabled and current process points to ovs-vswitchd. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Sep 28 15:48:45 2016 Return-Path: Delivered-To: freebsd-net@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 04412C01CBF for ; Wed, 28 Sep 2016 15:48:45 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (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 8790D95E for ; Wed, 28 Sep 2016 15:48:44 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wm0-x22b.google.com with SMTP id w84so242868566wmg.1 for ; Wed, 28 Sep 2016 08:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=hFIarGX49/ysy51A3b2FJa9R1n9s4XisePaymt9jv3A=; b=IB9aRIfwUszfarX46crzBiO2g+sIrcwTd83PBLRiHN77iUtUmWzoXKIxnhBFYzQMAt sZ2DaJ5RZIJEc2v+aT/Y2YD80uho2Daih87VcNmlsVpY9Kx9MA7IIbbEd/syv/Yd9jFc G8pYFvnIwqbQWLzjWtDzlksqFAU8AijONSsLB17XhM8dO4O4vVjMOkZHYcT3thA2y8Kz mvNJPjtGH5PNyxqkLG4GE5Bp6+7418QMFlFXuZ9PqljhTrl3Hm/6U44oX34pvRTqoxG0 ew5jLEzwPq9dd5aCqAG9gssMCgKOa+oV1nJ+SHNF47SFotCmHRzZb5UahzoRpSjD3Vr9 IDVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=hFIarGX49/ysy51A3b2FJa9R1n9s4XisePaymt9jv3A=; b=d7q61W7V2cFzufDTOpTdd/Lu1GIOIEoOPT2Emx7tlfZkx5dik5/PxUqyvvgmVjKSXK SNFKmqtpyXkdWVPAVvmq4z2qIFSw/6qEfPcJqWn2snPHZTkKtkWxRmY/+dDpoqR1zYjI 9LG4yZUvUX+Pd49GsvJ1+jBpn/KRAyh9mp9nsZyjIulA9ClXIXkPbCWEqh7pQO2v+y9y D2DgQsM2oGO4WcNsYA681TFyLpBnB3H7vGjHLkgq+YI/DkYvGkqUnvO9xJLz9UD4Ik6y eSkRuZuu0QiuIBMugj+qs4gs1MrtM0PIz85EvUROsxIYcqk2r/ufQ0Iq6k/UPsCV6a0a DGcQ== X-Gm-Message-State: AE9vXwM4DIgQ8RkpL7Ebjl4WXLwHRTAMmQChkKbdzFVyPPvX2hWkZFE0mYX3vvNY+dq6tQ== X-Received: by 10.194.61.243 with SMTP id t19mr27967501wjr.60.1475077722635; Wed, 28 Sep 2016 08:48:42 -0700 (PDT) Received: from macbook-air-de-benjamin-1.home (LFbn-1-7159-4.w90-116.abo.wanadoo.fr. [90.116.90.4]) by smtp.gmail.com with ESMTPSA id b193sm16303910wmg.18.2016.09.28.08.48.41 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Sep 2016 08:48:41 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: netstat counts input traffic twice From: Ben RUBSON In-Reply-To: <6d052c64-2ca2-7839-c297-e764634be648@selasky.org> Date: Wed, 28 Sep 2016 17:48:40 +0200 Content-Transfer-Encoding: 7bit Message-Id: References: <94953762-4397-476D-AD61-A39914F27938@gmail.com> <6d052c64-2ca2-7839-c297-e764634be648@selasky.org> To: FreeBSD Net X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 15:48:45 -0000 > On 28 Sep 2016, at 16:01, Hans Petter Selasky wrote: > > On 09/23/16 19:59, Ben RUBSON wrote: >> netstat -b -I mlxen1 > > Hi Ben, > > Does the attached patch make any difference? > > --HPS > Hi HPS, Many thanks for your support ! I tested your patch, but unfortunately it does not help. Here is iperf on sending side : [ ID] Interval Transfer Bandwidth [ 3] 0.0- 1.0 sec 233 MBytes 1.95 Gbits/sec [ 3] 1.0- 2.0 sec 660 MBytes 5.54 Gbits/sec [ 3] 2.0- 3.0 sec 686 MBytes 5.76 Gbits/sec [ 3] 3.0- 4.0 sec 686 MBytes 5.75 Gbits/sec [ 3] 4.0- 5.0 sec 686 MBytes 5.75 Gbits/sec [ 3] 5.0- 6.0 sec 688 MBytes 5.77 Gbits/sec [ 3] 6.0- 7.0 sec 688 MBytes 5.77 Gbits/sec [ 3] 7.0- 8.0 sec 687 MBytes 5.76 Gbits/sec [ 3] 8.0- 9.0 sec 686 MBytes 5.75 Gbits/sec [ 3] 9.0-10.0 sec 686 MBytes 5.75 Gbits/sec [ 3] 0.0-10.0 sec 6.23 GBytes 5.36 Gbits/sec And here is netstat on receiving side, with or without patch : # /usr/bin/netstat -w 1 -i mlxen1 input (Total) output packets errs idrops bytes packets errs bytes colls 0 0 0 852 4 0 548 0 0 0 0 252430522 4676 0 327468 0 0 0 0 1245732732 32177 0 2252568 0 0 0 0 1438165382 41366 0 2895728 0 0 0 0 1456239938 40797 0 2855898 0 0 0 0 1446072064 40662 0 2846448 0 0 0 0 1461133634 41127 0 2878916 0 0 0 0 1449935660 40694 0 2848758 0 0 0 0 1460081628 40565 0 2839658 0 0 0 0 1458465644 40634 0 2844418 0 0 0 0 1437992824 40706 0 2849554 0 0 0 0 415029242 16118 0 1128522 0 0 0 0 364 1 0 178 0 And my patched netstat : # netstat -w 1 -i mlxen1 input (Total) output packets errs idrops bytes packets errs bytes colls 3 0 0 156 2 0 304 0 13802 0 0 127953064 7091 0 368956 0 69634 0 0 643667952 36098 0 1877204 0 78299 0 0 724143932 41008 0 2132524 0 77700 0 0 717102432 40430 0 2102468 0 80672 0 0 742520072 41880 0 2177868 0 75676 0 0 697621964 39367 0 2047172 0 78923 0 0 727609020 40921 0 2128000 0 79346 0 0 730241416 40879 0 2125816 0 79342 0 0 730034956 40867 0 2125204 0 80737 0 0 743042220 41592 0 2162892 0 16795 0 0 154340716 8652 0 450096 0 1 0 0 52 1 0 160 0 Ben From owner-freebsd-net@freebsd.org Wed Sep 28 15:55:29 2016 Return-Path: Delivered-To: freebsd-net@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 8BE86C01136 for ; Wed, 28 Sep 2016 15:55:29 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (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 55D1B105B for ; Wed, 28 Sep 2016 15:55:29 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id D3E531FE023; Wed, 28 Sep 2016 17:55:26 +0200 (CEST) Subject: Re: netstat counts input traffic twice To: Ben RUBSON , FreeBSD Net References: <94953762-4397-476D-AD61-A39914F27938@gmail.com> <6d052c64-2ca2-7839-c297-e764634be648@selasky.org> From: Hans Petter Selasky Message-ID: <4f5a88f4-03e7-482f-b963-ab65eeee0136@selasky.org> Date: Wed, 28 Sep 2016 18:00:18 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 15:55:29 -0000 On 09/28/16 17:48, Ben RUBSON wrote: > >> On 28 Sep 2016, at 16:01, Hans Petter Selasky wrote: >> >> On 09/23/16 19:59, Ben RUBSON wrote: >>> netstat -b -I mlxen1 >> >> Hi Ben, >> >> Does the attached patch make any difference? >> >> --HPS >> > > Hi HPS, > > # netstat -w 1 -i mlxen1 > input (Total) output > packets errs idrops bytes packets errs bytes colls > 3 0 0 156 2 0 304 0 > 13802 0 0 127953064 7091 0 368956 0 > 69634 0 0 643667952 36098 0 1877204 0 > 78299 0 0 724143932 41008 0 2132524 0 > 77700 0 0 717102432 40430 0 2102468 0 > 80672 0 0 742520072 41880 0 2177868 0 > 75676 0 0 697621964 39367 0 2047172 0 > 78923 0 0 727609020 40921 0 2128000 0 > 79346 0 0 730241416 40879 0 2125816 0 > 79342 0 0 730034956 40867 0 2125204 0 > 80737 0 0 743042220 41592 0 2162892 0 > 16795 0 0 154340716 8652 0 450096 0 > 1 0 0 52 1 0 160 0 > Hi Ben, Is this a regression issue from 10.x ? Does other network drivers exhibit the same behaviour? With your instructions I should be able to reproduce and fix this issue. --HPS From owner-freebsd-net@freebsd.org Wed Sep 28 16:03:31 2016 Return-Path: Delivered-To: freebsd-net@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 2D338C013DE for ; Wed, 28 Sep 2016 16:03:31 +0000 (UTC) (envelope-from gradiometric@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (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 AFAE01621 for ; Wed, 28 Sep 2016 16:03:30 +0000 (UTC) (envelope-from gradiometric@gmail.com) Received: by mail-wm0-x234.google.com with SMTP id l132so243812124wmf.0 for ; Wed, 28 Sep 2016 09:03:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=LsVvrwgWNleNmmP7Li2rQsP1gcG176FS/Y4Q7s3DQiA=; b=X1N/b5F/Kht0GrFjkt3QG81oMBGYaTEP97+cX2FPt5iZSBGFqz78HP6AlPlDDfwYTr Hvwq/J6msAreZver0WVK3gtz/C9Xr7Nai6QP4uQzJWar/bM+YUaOcqNR5Ar/SYY93iCP RI9KMmfwXybWupdWMef6j834/0Mt/yRQQkz+4r81EBH9gqwHkYQCUz5hTjUoOoJYQ6eE 6qStjKMOq/53JoUyFZ2M85GERzsDaAOwxXGp0RKfDtM3YHTJSBBiMNbzDWJM9kVFUHRF evpZaEWbF+V9EwJ//6zyzTZnhYL1SGYaA+k+o/L0hv4vOyeRYvdKeb3p9sYxE32R4D6M RFgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=LsVvrwgWNleNmmP7Li2rQsP1gcG176FS/Y4Q7s3DQiA=; b=JxiAoEEl6KqVrn1NeOINrdhIGe/BUvfO9QOglBKP6+BptWPzSa6kWI+T1L9VBTz3Vl zJNhqqDuQe7zjm+kRL8Ts20xCXHMj1NbEpLBu56cVVf6KgBc4J1dpss7zfmCAti3MVYP EDUodj45ipvVQFaUOjm8n+IPl3X6Qbl7LjQsXekpWXlyIdRCWhOm+7ht8hos3ZXDHR3E 2KR9Vx95gg1ATyUDhyt6AhsI6Sdz1VVtwgubNKYiZk0sIR8pNYxQJAZ0sJXaycz75XDt yivQil4KFWutAOPRv+qArmFDoJA4TxxbCGft7tub1PaPi4zuDd0e0SHOdvOL3l2/mhhu AEsw== X-Gm-Message-State: AA6/9Rm7htHNf9iep0N2lxrRmdx7+bNesZNpTaRA4DB01Pp1f7ehvzXALMc5fZy9Tu0MlF0Ro1bmxxzSgo5/9w== X-Received: by 10.194.84.134 with SMTP id z6mr27580242wjy.204.1475078609045; Wed, 28 Sep 2016 09:03:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.50.70 with HTTP; Wed, 28 Sep 2016 09:03:28 -0700 (PDT) In-Reply-To: References: <653b4473-558b-5ef8-41b7-080ec6c5584d@multiplay.co.uk> <2A35EA60C3C77D438915767F458D65688394B821@ORSMSX111.amr.corp.intel.com> From: Andrew Savchenko Date: Wed, 28 Sep 2016 19:03:28 +0300 Message-ID: Subject: Re: "igb" interfaces aren't picking up media on boot To: Freddie Cash Cc: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 16:03:31 -0000 Nope, unfortunately they stay dead (aka "no carrier") until `netif restart`= . On Wed, Sep 28, 2016 at 6:12 PM, Freddie Cash wrote: > On Wed, Sep 28, 2016 at 8:02 AM, Andrew Savchenko > wrote: > >> MAC's and IP's are abviously changed. >> For the moment being I have "solved" this by a tiny script in /etc/rc.d/ >> that restarts networking & routing after the system boot: >> > > =E2=80=8BDo the NICs eventually pick up carrier status if you leave it af= ter > boot? Could it just be slow picking up status changes? We had a couple > em(4) or igb(4) (forget now) NICs that were like that. Took a good minut= e > after boot before the NIC was finished initialising and detected the link= . > > If that's the case, and you don't mind the wait (and want to make sure > networking is working once the boot is complete), you can use the netwait= _* > options in /etc/rc.conf. That will pause the boot process until either t= he > network link status changes to up, and/or you can ping the default gatewa= y > or any other IP on the network. > > Worked for us. Might work for you.=E2=80=8B > > > -- > Freddie Cash > fjwcash@gmail.com > From owner-freebsd-net@freebsd.org Wed Sep 28 16:20:29 2016 Return-Path: Delivered-To: freebsd-net@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 7C262C0174B for ; Wed, 28 Sep 2016 16:20:29 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from mail-vk0-x229.google.com (mail-vk0-x229.google.com [IPv6:2607:f8b0:400c:c05::229]) (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 306A41D43 for ; Wed, 28 Sep 2016 16:20:29 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by mail-vk0-x229.google.com with SMTP id v205so48944004vke.1 for ; Wed, 28 Sep 2016 09:20:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=g9f69hoPvtuhi8aKZtgDC4thgQNnXhid1kQn7E1tTX8=; b=TehNLFjaBVcdOX9KjqDExzYbT7Xdq/7kCl66DWJOGYZo2GIUk5yHqnj/D/Dr/RSw2v byrH6swWvG6kr7Gp6NbKwEX0ZIY78863NcXz/01VeJBESz5h66PzU7CvrxlN2ph/P/Tn Akxhp7ZnXsQbThUxDDy9p0xIOU4xzVgF7uEKVMoEXbT187t7xpPh2Du9i1lbJHerv7NM FXJipjQFuuC/+HCkpHG1Gu4lFVeEWuMp1t7ZvVmzovWZrrhW3qhf/+aCBI2KITsfeiaA by/WgkxY76OgCGeTVE4bn+vL8AvqiCLj8afepyp4KXukCijTL6QTgW5qcNtzp0v3U+R/ usaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=g9f69hoPvtuhi8aKZtgDC4thgQNnXhid1kQn7E1tTX8=; b=Wgw1oZ2Sp3KY+bVQOsCh/pTEo2/SFmgX/PS31VmiRZEpXmlKMm+bcQ4gDBmpj+pO9h Sw4kh5ooAswgj4+01b/GpURGlBhxYy03ig5xr2sRG46BWHj9BLntVzlyQS5OPNL8dTRj qgkbpwc3xqBcktW9X7gg38ozyZZiEWAA5XJQKmpOxtFVaBJROhx2ynp/ifOpXXWq+Zra 1hNCZSEy3OYle4hXYIk6b/caZrWhU/bYN3BrwJ9x000nzXD0V2DKui3+G5HEF3a34G9S dpjuYHJWRi0wuzH22HIB4x1UHPaEQOAMTm2e18ql1v4B+ME2mo0DkKY5fcv0o3B1O0s/ XjdQ== X-Gm-Message-State: AA6/9RlxkG5oIUCburh9ZwDrT8jFSheBKlYUXVwO34UB9+J47eU12B2a8oYgHOd+bL7eToO+N/fpvuN/KkDtKQ== X-Received: by 10.31.206.198 with SMTP id e189mr14559337vkg.51.1475079615921; Wed, 28 Sep 2016 09:20:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.168.88 with HTTP; Wed, 28 Sep 2016 09:20:15 -0700 (PDT) In-Reply-To: References: <653b4473-558b-5ef8-41b7-080ec6c5584d@multiplay.co.uk> <2A35EA60C3C77D438915767F458D65688394B821@ORSMSX111.amr.corp.intel.com> From: Jack Vogel Date: Wed, 28 Sep 2016 09:20:15 -0700 Message-ID: Subject: Re: "igb" interfaces aren't picking up media on boot To: Andrew Savchenko Cc: Freddie Cash , "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 16:20:29 -0000 So, I would check into the link partner, often times it can be the culprit, try the nic in a simple back-to-back setup and see if it makes a diff, etc. etc... Jack On Wed, Sep 28, 2016 at 9:03 AM, Andrew Savchenko wrote: > Nope, unfortunately they stay dead (aka "no carrier") until `netif > restart`. > > On Wed, Sep 28, 2016 at 6:12 PM, Freddie Cash wrote: > > > On Wed, Sep 28, 2016 at 8:02 AM, Andrew Savchenko < > gradiometric@gmail.com> > > wrote: > > > >> MAC's and IP's are abviously changed. > >> For the moment being I have "solved" this by a tiny script in /etc/rc.= d/ > >> that restarts networking & routing after the system boot: > >> > > > > =E2=80=8BDo the NICs eventually pick up carrier status if you leave it = after > > boot? Could it just be slow picking up status changes? We had a coupl= e > > em(4) or igb(4) (forget now) NICs that were like that. Took a good > minute > > after boot before the NIC was finished initialising and detected the > link. > > > > If that's the case, and you don't mind the wait (and want to make sure > > networking is working once the boot is complete), you can use the > netwait_* > > options in /etc/rc.conf. That will pause the boot process until either > the > > network link status changes to up, and/or you can ping the default > gateway > > or any other IP on the network. > > > > Worked for us. Might work for you.=E2=80=8B > > > > > > -- > > Freddie Cash > > fjwcash@gmail.com > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@freebsd.org Wed Sep 28 16:29:31 2016 Return-Path: Delivered-To: freebsd-net@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 B136DC018D9 for ; Wed, 28 Sep 2016 16:29:31 +0000 (UTC) (envelope-from gradiometric@gmail.com) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (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 3FEA1157 for ; Wed, 28 Sep 2016 16:29:31 +0000 (UTC) (envelope-from gradiometric@gmail.com) Received: by mail-wm0-x230.google.com with SMTP id b130so80559779wmc.0 for ; Wed, 28 Sep 2016 09:29:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=dXw9DZjs9Ks4StqCq9bNZ5i0SW3Z3RyY0xF50GR8lZk=; b=C8ECPVW9z0wWAqRZx4KgeSaovvxn28o5EQV4yBkDQkOx5XXMYJHRKO/1G7WRNy3s2x jfdrToCNoEXKs79e/SUfAuMoFgwFBxy9AW93imolFqRvmsbn6gd0yMrELcy6bFEN4tEw UGCsWdUUgbp/SRHeJUzzJL2VJp2mrfXM6udlv8icEgtdnrfTD8EB1GbE+RXhmPS3/rGD 6mYkSOyhZ6jvm0yZa9jM9VgTT0FwOOfajIo+2MtAsH1IXa9NNzbw5pZBAPeAZV6RXgYo SdIR41/qBcCXfmAE3HQmDcZfINh2MBOFPuZmF/8019krCwyT5YJGH32lgvwPx3A2iARC t5UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=dXw9DZjs9Ks4StqCq9bNZ5i0SW3Z3RyY0xF50GR8lZk=; b=R2hRaMsArShUGYROBY/JIt/szxbIUYMEYYBaVDe7bQ+l/b/H5E7sqehOeEtpMeJAZX eEIM/7LfNov3xnWnMe1VKDjdwDHxtehJgxcOqv0YU0s8DyvzJ5Kpt50W2zAs/q1ZteND zs7MdW7GiVo21+FYJmh6ziqLFoCyUJhycbXt/8BWkD70HqJ2vLUr9umG/66iG9EAUUlN uvQmRGSdKxSrpuST1rp2SEhhSoAxdmrrrNNtdFr8m2LgJCaUQHF/tM7gVQ8mVqPuZSjA Mp3L1THIChJ9fQHuotLGmFbf3lcuNHF2liZnFpYRGLhBhWHrk8TNz5OJv5h3OEH5AIS7 DV0g== X-Gm-Message-State: AA6/9RmGAtVZ8ljL3fDi6WZEPdkQENLm0AV9u+A3Fpc+arr2kqSefFq1phE17XHsbQ3rVYpRNwxjwJ0HQwkbQQ== X-Received: by 10.28.92.71 with SMTP id q68mr8535402wmb.85.1475080169787; Wed, 28 Sep 2016 09:29:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.203.2 with HTTP; Wed, 28 Sep 2016 09:29:29 -0700 (PDT) In-Reply-To: References: <653b4473-558b-5ef8-41b7-080ec6c5584d@multiplay.co.uk> <2A35EA60C3C77D438915767F458D65688394B821@ORSMSX111.amr.corp.intel.com> From: Andrew Savchenko Date: Wed, 28 Sep 2016 19:29:29 +0300 Message-ID: Subject: Re: "igb" interfaces aren't picking up media on boot To: Jack Vogel Cc: Freddie Cash , "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 16:29:31 -0000 I've been using this particular NIC under FreeBSD 10.0-REL connected via cross cable to another Intel NIC / two different routers / TP-Link switch without any similar issues. The problem shows only with the mentioned DLink switch. On Wed, Sep 28, 2016 at 7:20 PM, Jack Vogel wrote: > So, I would check into the link partner, often times it can be the > culprit, try the nic > in a simple back-to-back setup and see if it makes a diff, etc. etc... > > Jack > > > On Wed, Sep 28, 2016 at 9:03 AM, Andrew Savchenko > wrote: > >> Nope, unfortunately they stay dead (aka "no carrier") until `netif >> restart`. >> >> On Wed, Sep 28, 2016 at 6:12 PM, Freddie Cash wrote: >> >> > On Wed, Sep 28, 2016 at 8:02 AM, Andrew Savchenko < >> gradiometric@gmail.com> >> > wrote: >> > >> >> MAC's and IP's are abviously changed. >> >> For the moment being I have "solved" this by a tiny script in >> /etc/rc.d/ >> >> that restarts networking & routing after the system boot: >> >> >> > >> > =E2=80=8BDo the NICs eventually pick up carrier status if you leave it= after >> > boot? Could it just be slow picking up status changes? We had a coup= le >> > em(4) or igb(4) (forget now) NICs that were like that. Took a good >> minute >> > after boot before the NIC was finished initialising and detected the >> link. >> > >> > If that's the case, and you don't mind the wait (and want to make sure >> > networking is working once the boot is complete), you can use the >> netwait_* >> > options in /etc/rc.conf. That will pause the boot process until eithe= r >> the >> > network link status changes to up, and/or you can ping the default >> gateway >> > or any other IP on the network. >> > >> > Worked for us. Might work for you.=E2=80=8B >> > >> > >> > -- >> > Freddie Cash >> > fjwcash@gmail.com >> > >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > > From owner-freebsd-net@freebsd.org Wed Sep 28 17:09:21 2016 Return-Path: Delivered-To: freebsd-net@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 DAF54C01188 for ; Wed, 28 Sep 2016 17:09:21 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from mail-ua0-x232.google.com (mail-ua0-x232.google.com [IPv6:2607:f8b0:400c:c08::232]) (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 8E2EB1656 for ; Wed, 28 Sep 2016 17:09:21 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by mail-ua0-x232.google.com with SMTP id l16so25014250uaa.1 for ; Wed, 28 Sep 2016 10:09:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7gW+Lccz8SBGgAFmPRs4scwcmaIVY5ncbGjb6gOTFj4=; b=D1lbMSkIaDmykFkr5A47s9sdzixbw7eJ0n5F9QuCL1tHKRzIbwQQy7s82YRk4XRCU6 W9fV1QehWN6FZ89bPkGRvcd7XjD/137gCV44e627T1z1rcUU8qnVD05Rk0IESX8f3H3X F9WPgjQUOhOTyaSTHu+TTftK1nu2aDTn5lvhA6isi676Nh+Iz1dVtd5tE2hVHfMbKAdG j8bLxMQ8yr1Fgo2Nc07Didw4zW1k6bhS4GaKdWIoo0RETWZ3Br2Kd7RLakWaHHzwWMRw YazPRLKEx4B7kCRLA+UU/jWtO0hlU4ctdm/hZgpm/t+RY5Oqog1UzOfrDOFja69SSHaB 4hMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7gW+Lccz8SBGgAFmPRs4scwcmaIVY5ncbGjb6gOTFj4=; b=IFSPjE6N3h8+YcF1poLWd20Fta4r3nlVHRfYGWZUj8IsvvHbuA4zgGDChmLK+h4Q8P Q5kSrnpkf5Bk0wcQkOsqrxzsIqB0RlBGgSQAE4eTEOEgrggUlqsCMzt60ClbH38+5fP3 47QJ+b+2uPkX0K0u2HodQb/l8fPfvNZkC0VE0+fYBRHXwuKE8UKSpq+X2nfV/XFrJbX4 pvLnP4oZb5oCv4TJlnEN9MxVV7YBbLt5rTU7hgcbDlyqkgE0IPE3fLZ9f0aOpCgkhSs9 62y1Nu6zrMD9GrwVHfRIp1ceZgvQvyLK8am2QVErMl1zOlexagfYVOEj2QCb7jLJOEmt FcuQ== X-Gm-Message-State: AA6/9RlPZPmJASxt2KVmae6863oKY0zFLqWKCgyzva37AdcgA7r9/8OIIY0iej6rC72tXi3o/ZVKnru3ow6FUQ== X-Received: by 10.159.36.41 with SMTP id 38mr7537700uaq.70.1475082560683; Wed, 28 Sep 2016 10:09:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.168.88 with HTTP; Wed, 28 Sep 2016 10:09:20 -0700 (PDT) In-Reply-To: References: <653b4473-558b-5ef8-41b7-080ec6c5584d@multiplay.co.uk> <2A35EA60C3C77D438915767F458D65688394B821@ORSMSX111.amr.corp.intel.com> From: Jack Vogel Date: Wed, 28 Sep 2016 10:09:20 -0700 Message-ID: Subject: Re: "igb" interfaces aren't picking up media on boot To: Andrew Savchenko Cc: Freddie Cash , "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 17:09:21 -0000 So, time to ditch the DLink I'd say :) On Wed, Sep 28, 2016 at 9:29 AM, Andrew Savchenko wrote: > I've been using this particular NIC under FreeBSD 10.0-REL connected via > cross cable to another Intel NIC / two different routers / TP-Link switch > without any similar issues. The problem shows only with the mentioned DLi= nk > switch. > > On Wed, Sep 28, 2016 at 7:20 PM, Jack Vogel wrote: > >> So, I would check into the link partner, often times it can be the >> culprit, try the nic >> in a simple back-to-back setup and see if it makes a diff, etc. etc... >> >> Jack >> >> >> On Wed, Sep 28, 2016 at 9:03 AM, Andrew Savchenko > > wrote: >> >>> Nope, unfortunately they stay dead (aka "no carrier") until `netif >>> restart`. >>> >>> On Wed, Sep 28, 2016 at 6:12 PM, Freddie Cash wrote= : >>> >>> > On Wed, Sep 28, 2016 at 8:02 AM, Andrew Savchenko < >>> gradiometric@gmail.com> >>> > wrote: >>> > >>> >> MAC's and IP's are abviously changed. >>> >> For the moment being I have "solved" this by a tiny script in >>> /etc/rc.d/ >>> >> that restarts networking & routing after the system boot: >>> >> >>> > >>> > =E2=80=8BDo the NICs eventually pick up carrier status if you leave i= t after >>> > boot? Could it just be slow picking up status changes? We had a >>> couple >>> > em(4) or igb(4) (forget now) NICs that were like that. Took a good >>> minute >>> > after boot before the NIC was finished initialising and detected the >>> link. >>> > >>> > If that's the case, and you don't mind the wait (and want to make sur= e >>> > networking is working once the boot is complete), you can use the >>> netwait_* >>> > options in /etc/rc.conf. That will pause the boot process until >>> either the >>> > network link status changes to up, and/or you can ping the default >>> gateway >>> > or any other IP on the network. >>> > >>> > Worked for us. Might work for you.=E2=80=8B >>> > >>> > >>> > -- >>> > Freddie Cash >>> > fjwcash@gmail.com >>> > >>> _______________________________________________ >>> freebsd-net@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-net >>> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> >> >> > From owner-freebsd-net@freebsd.org Wed Sep 28 17:10:25 2016 Return-Path: Delivered-To: freebsd-net@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 EB402C011ED for ; Wed, 28 Sep 2016 17:10:25 +0000 (UTC) (envelope-from gradiometric@gmail.com) Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (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 83F671714 for ; Wed, 28 Sep 2016 17:10:25 +0000 (UTC) (envelope-from gradiometric@gmail.com) Received: by mail-wm0-x232.google.com with SMTP id l132so82266701wmf.1 for ; Wed, 28 Sep 2016 10:10:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4NCTToHjLdG9YSv6vXbFVdUI5DWQI+ky5qIK8/mpfS4=; b=cv/KuC8btJVrV7dKPZ5OY2vef157Fls3R7NB2RtRhOAR8zNqmzJ/ceVpHzO8X3QFwf blafvbgo/Yc147GoijkyrboLXh1CmThO+VFnW2gjEplcKTkceqmnjaQPdece3yk52Z9O J1jQOgt1P5Bs7pFHqGbsg3TfYzbk05XMh5ML7/lrP6ob3+yxo2F9SjeHRYNPxTtY7mWd ZPm2PN+XkkCzB0al9PYfNsFYJ86Lh3p9HMtXtIk4XF0lrH2AlIuXgCZ1PcGLoI2DkhJ1 i0tSvj8oFLIoATASxQGdK2oYSThX2A+t1BHvdQ1P/qEP+rb5Ap7d5WCp4GMbvNl92WPd 3vwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4NCTToHjLdG9YSv6vXbFVdUI5DWQI+ky5qIK8/mpfS4=; b=QANr92UjkDHGeinxnfrEofd5Rhp4WAYL+PJw4ooltMkNKXkYMzmCfRifv6PJidbpEZ FXx1r33hEGBJ8EePkuUeGOPUQ00OydbsjYyhLgKU2SuCE+VyeS+5acRdYSEbulpBEEE5 fJWI2Y9vqewrnkeSoB7ggsF655pFcyD1nY18pIMV+pxlz6mEBFowJ/8ggCyz8WtlrG96 4kHeoIatCda/yWw2+QHm6R+aGRP2W57R9aauzdF1+l5zzJGx+qeCX0lDe8Yr2IBc7JM6 2bgzu/Nkd3QsynRsjJirueZR9enmWyc0QyX0lce5UA3ziscAtL2INwRWuF5I1BLqdYli Hg+A== X-Gm-Message-State: AA6/9RmCUIoRT1txhr+pZUMeQPG8MX0j/bM+1t8IsQSsLl5nqtvuLKgKFmx9BdOAqA1NKB6BFqAHUfcn3j7xFw== X-Received: by 10.194.84.134 with SMTP id z6mr27835333wjy.204.1475082623490; Wed, 28 Sep 2016 10:10:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.203.2 with HTTP; Wed, 28 Sep 2016 10:10:22 -0700 (PDT) In-Reply-To: References: <653b4473-558b-5ef8-41b7-080ec6c5584d@multiplay.co.uk> <2A35EA60C3C77D438915767F458D65688394B821@ORSMSX111.amr.corp.intel.com> From: Andrew Savchenko Date: Wed, 28 Sep 2016 20:10:22 +0300 Message-ID: Subject: Re: "igb" interfaces aren't picking up media on boot To: Jack Vogel Cc: Freddie Cash , "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 17:10:26 -0000 I would love to, but it's the property of Datacenter :D All I can do is to adapt my box to it. On Wed, Sep 28, 2016 at 8:09 PM, Jack Vogel wrote: > So, time to ditch the DLink I'd say :) > > On Wed, Sep 28, 2016 at 9:29 AM, Andrew Savchenko > wrote: > >> I've been using this particular NIC under FreeBSD 10.0-REL connected via >> cross cable to another Intel NIC / two different routers / TP-Link switc= h >> without any similar issues. The problem shows only with the mentioned DL= ink >> switch. >> >> On Wed, Sep 28, 2016 at 7:20 PM, Jack Vogel wrote: >> >>> So, I would check into the link partner, often times it can be the >>> culprit, try the nic >>> in a simple back-to-back setup and see if it makes a diff, etc. etc... >>> >>> Jack >>> >>> >>> On Wed, Sep 28, 2016 at 9:03 AM, Andrew Savchenko < >>> gradiometric@gmail.com> wrote: >>> >>>> Nope, unfortunately they stay dead (aka "no carrier") until `netif >>>> restart`. >>>> >>>> On Wed, Sep 28, 2016 at 6:12 PM, Freddie Cash >>>> wrote: >>>> >>>> > On Wed, Sep 28, 2016 at 8:02 AM, Andrew Savchenko < >>>> gradiometric@gmail.com> >>>> > wrote: >>>> > >>>> >> MAC's and IP's are abviously changed. >>>> >> For the moment being I have "solved" this by a tiny script in >>>> /etc/rc.d/ >>>> >> that restarts networking & routing after the system boot: >>>> >> >>>> > >>>> > =E2=80=8BDo the NICs eventually pick up carrier status if you leave = it after >>>> > boot? Could it just be slow picking up status changes? We had a >>>> couple >>>> > em(4) or igb(4) (forget now) NICs that were like that. Took a good >>>> minute >>>> > after boot before the NIC was finished initialising and detected the >>>> link. >>>> > >>>> > If that's the case, and you don't mind the wait (and want to make su= re >>>> > networking is working once the boot is complete), you can use the >>>> netwait_* >>>> > options in /etc/rc.conf. That will pause the boot process until >>>> either the >>>> > network link status changes to up, and/or you can ping the default >>>> gateway >>>> > or any other IP on the network. >>>> > >>>> > Worked for us. Might work for you.=E2=80=8B >>>> > >>>> > >>>> > -- >>>> > Freddie Cash >>>> > fjwcash@gmail.com >>>> > >>>> _______________________________________________ >>>> freebsd-net@freebsd.org mailing list >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-net >>>> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >>> >>> >>> >> > From owner-freebsd-net@freebsd.org Wed Sep 28 18:07:57 2016 Return-Path: Delivered-To: freebsd-net@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 4F26FC01DAF for ; Wed, 28 Sep 2016 18:07:57 +0000 (UTC) (envelope-from mikej@mikej.com) Received: from mx2.paymentallianceintl.com (mx2.paymentallianceintl.com [216.26.158.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx2.paymentallianceintl.com", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 12FD912BA for ; Wed, 28 Sep 2016 18:07:56 +0000 (UTC) (envelope-from mikej@mikej.com) Received: from firewall.mikej.com (f [162.230.214.65]) by mx2.paymentallianceintl.com (8.15.1/8.15.1) with ESMTPS id u8SI7sx7098081 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 28 Sep 2016 14:07:55 -0400 (EDT) (envelope-from mikej@mikej.com) X-SenderID: Sendmail Sender-ID Filter v1.0.0 mx2.paymentallianceintl.com u8SI7sx7098081 Authentication-Results: mx2.paymentallianceintl.com; sender-id=fail (NotPermitted) header.from=mikej@mikej.com; spf=fail (NotPermitted) smtp.mfrom=mikej@mikej.com X-Authentication-Warning: mx2.paymentallianceintl.com: Host f [162.230.214.65] claimed to be firewall.mikej.com Received: from mail.mikej.com (firewall.mikej.com [192.168.6.63]) by firewall.mikej.com (8.15.2/8.15.2) with ESMTP id u8SI7q05035178 for ; Wed, 28 Sep 2016 14:07:53 -0400 (EDT) (envelope-from mikej@mikej.com) DMARC-Filter: OpenDMARC Filter v1.3.1 firewall.mikej.com u8SI7q05035178 Authentication-Results: mail.mikej.com; dmarc=none header.from=mikej.com DKIM-Filter: OpenDKIM Filter v2.10.3 firewall.mikej.com u8SI7q05035178 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mikej.com; s=mail; t=1475086073; bh=ho7EMdUNJHFX7QzncCtgkeaQvblhxwX36sajclSL7Tg=; h=Date:From:To:Subject:In-Reply-To:References; b=g8t7iq2B1MPo0udNkZHYIIRo78xoYimhPqks+iGpdi97a5crpHDvVwBZTv24aA32h gJ7cN/TrFQyvd1GwXPPk+ihgHMcK1mOuDVUpxXst3zkozchhvS/rW3ZVMdPimalrW1 4NEpQN35ZR1x21/wpa2b4kcP+SWV+kSP8gs0QR4VWOr0iBYXqLCvJgdm6yIWa9Y/V7 M6LgHysJYolKQOJToDqpn5xnUwSFMfHYtzQYyJGOrcT+WaSChTQCtVPM2hVfdZ6eI4 GUOh4RwHDYOT4rnXvHxeFKS7IoeOy0SrLKwsxQvPEk5/JecI/dN16X62oi5oL2F7ym uReK+30NfJrmA== X-SenderID: Sendmail Sender-ID Filter v1.0.0 firewall.mikej.com u8SI7q05035178 Authentication-Results: firewall.mikej.com; sender-id=pass header.from=mikej@mikej.com; spf=pass smtp.mfrom=mikej@mikej.com X-Authentication-Warning: firewall.mikej.com: Host firewall.mikej.com [192.168.6.63] claimed to be mail.mikej.com MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 28 Sep 2016 14:07:52 -0400 From: Michael Jung To: freebsd-net@freebsd.org Subject: Problem with softflowd capturing packets while using IPFW In-Reply-To: <297106f04667313b805a4a20903c77ba@mail.mikej.com> References: <297106f04667313b805a4a20903c77ba@mail.mikej.com> Message-ID: <1b09214a03f0f8be7fb6e9522eb141d4@mail.mikej.com> X-Sender: mikej@mikej.com User-Agent: Roundcube Webmail/1.2.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 18:07:57 -0000 Softflowd v0.9.8 / FreeBSD 10.3-RELEASE-p7 I have used softflowd for years to build netflow packets without issue until now. I have never tried to use it while running IPFW. When running softflowd while IPFW is running using the source interface for NAT it does not build flows. I can confirm IPFW is the issue as it work without issue when IPFW is not loaded. softflowd emits no errors even in debug mode. tcpdump on the same source interface has no problems capturing packets. I also tried creating a netgraph bridge from the source NAT interface kldload ng_ether kldload ng_bridge kldload ng_eiface # create and connect bridge to PHY ngctl mkpeer em0: bridge lower link0 ngctl connect em0: re0:lower upper link1 # name the bridge ngctl name em0:lower em0br0 # Connect first virtual NIC ngctl mkpeer em0:lower eiface link2 ether But the only thing I see on the bridged interface is broadcast traffic when on other boxes without IPFW I would see all bridged traffic which is odd. Is there some magic I need in my IPFW rules or is another approach needed? Thanks in advance. --mikej From owner-freebsd-net@freebsd.org Wed Sep 28 20:13:28 2016 Return-Path: Delivered-To: freebsd-net@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 35349C0178E for ; Wed, 28 Sep 2016 20:13:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 245CE7BC for ; Wed, 28 Sep 2016 20:13:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8SKDRfD049471 for ; Wed, 28 Sep 2016 20:13:28 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 211219] NIC status does not pass into a state of "no carrier" after disconnecting the cable. Date: Wed, 28 Sep 2016 20:13:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: IntelNetworking X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: chaodis852654@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 20:13:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211219 CS changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chaodis852654@gmail.com --- Comment #6 from CS --- I think I experience the same using pfsense 2.3.2-RELEASE FreeBSD 10.3-RELEASE-p5 on a Soekris 6501 board (i386). In addition to that, after connecting the cable back after a few hours or in general when the link sta= te changes to UP the device connected to that port has no network connectivity until I reboot pfSense. More details can be found here: hxxps://redmine.pfsense.org/issues/6823 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Sep 28 20:21:59 2016 Return-Path: Delivered-To: freebsd-net@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 C1A39C018BC for ; Wed, 28 Sep 2016 20:21:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 B0E38A68 for ; Wed, 28 Sep 2016 20:21:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8SKLx1u066525 for ; Wed, 28 Sep 2016 20:21:59 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 211219] NIC status does not pass into a state of "no carrier" after disconnecting the cable. Date: Wed, 28 Sep 2016 20:21:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: IntelNetworking X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: franco@opnsense.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 20:21:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211219 --- Comment #7 from Franco Fichtner --- We had the same issue in OPNsense, so we created a FreeBSD port of the stock Intel driver version 7.6.2, which works fine. It would help others to mitigate the issue by getting into the tree. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212828 Cheers, Franco --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Sep 28 20:28:59 2016 Return-Path: Delivered-To: freebsd-net@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 41553C01C96 for ; Wed, 28 Sep 2016 20:28:59 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (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 C876012A4 for ; Wed, 28 Sep 2016 20:28:58 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wm0-x229.google.com with SMTP id w84so256993776wmg.1 for ; Wed, 28 Sep 2016 13:28:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=yMikb2RRDiT031rI9z8Y4s6HBWHZ7baQ7zsv8Ewj2tk=; b=aPA0MHxrNoDuLcjj1O5yPo0pI9u7BnL9T7x5tzWUzwPrgavVodj7mUmWj8BMIa/rt9 mqo6b3y2cYjqt0G8qZo+ANP+2pXRCJq9XApOK+BsXYBwX1JcYr54HhlTWNiRgNrmsKXt SUcJYn0zUUJ1G5EwvuWyA2sOn4cMlj4/F8phuvaJ0o+on8jDt9EgKLksh28z6nmjxqK7 vyB04BdMOAY9jZqAYwNlx8vfS4V1G0hq0rtAoracIaa0ooINoR2ZahfNpL3cBYJ4SY5E p4JdYT4Tw4mrLlANMATTCKF2SLYUIwsbPLZowBEzJFzsHHxDYLtW1gA2UrUBG5PDWHbw BDbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=yMikb2RRDiT031rI9z8Y4s6HBWHZ7baQ7zsv8Ewj2tk=; b=G7T9LCQjVNU5h5wg6sbbtsz1B3q9yZmhrIcmuE4KOPu0iH9s/Qf4wREYApFYIa4MFB cevvcSvm2ZDfyD0A338tveWnfuIvWkCZ8yavY5bcEwyw8587+KYB0pTmqwnhYcmPnNVy qV2uYX65FHfEYBXgKG4FyoD713K1l12FIKUTgDDgxRLg2nA+FN0kcwdeOX8JjlpTfrf4 Cg37/wQA1V70jVvtizsVgWvwy5hSx1FytG6Q6lTPu7ZMMK8lZamy9Afi7I2vMkkUyxKs BDX0qPJTdYxVho74V5GtBwK2wrHMNJUfhm18MWk7Rp2qI7Ax91fVG68Gz/PG0RbogP2G uv5A== X-Gm-Message-State: AA6/9RkDmIWnFkcrK6JVxuMjzIfjkiRQqvRa4Zdrmhhl/72ujXp+Xa9piTJxxgfWDNhD6Q== X-Received: by 10.28.109.86 with SMTP id i83mr9420671wmc.104.1475094536522; Wed, 28 Sep 2016 13:28:56 -0700 (PDT) Received: from macbook-air-de-benjamin.home (LFbn-1-7159-4.w90-116.abo.wanadoo.fr. [90.116.90.4]) by smtp.gmail.com with ESMTPSA id us2sm4108926wjc.45.2016.09.28.13.28.55 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Sep 2016 13:28:55 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: netstat counts input traffic twice From: Ben RUBSON In-Reply-To: <4f5a88f4-03e7-482f-b963-ab65eeee0136@selasky.org> Date: Wed, 28 Sep 2016 22:28:53 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <94953762-4397-476D-AD61-A39914F27938@gmail.com> <6d052c64-2ca2-7839-c297-e764634be648@selasky.org> <4f5a88f4-03e7-482f-b963-ab65eeee0136@selasky.org> To: FreeBSD Net X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 20:28:59 -0000 On 28 Sep 2016, at 18:00, Hans Petter Selasky wrote: >=20 > On 09/28/16 17:48, Ben RUBSON wrote: >>=20 >>> On 28 Sep 2016, at 16:01, Hans Petter Selasky = wrote: >>>=20 >>> On 09/23/16 19:59, Ben RUBSON wrote: >>>> netstat -b -I mlxen1 >>>=20 >>> Hi Ben, >>>=20 >>> Does the attached patch make any difference? >>=20 >> Hi HPS, >>=20 >> I tested your patch, but unfortunately it does not help. >=20 > Is this a regression issue from 10.x ? I booted a 10.3 ISO and made the test, 10.3 does not suffer from the = issue : Here is iperf on sending side : [ 3] 0.0- 1.0 sec 231 MBytes 1.93 Gbits/sec [ 3] 1.0- 2.0 sec 660 MBytes 5.53 Gbits/sec [ 3] 2.0- 3.0 sec 686 MBytes 5.75 Gbits/sec [ 3] 3.0- 4.0 sec 685 MBytes 5.75 Gbits/sec [ 3] 4.0- 5.0 sec 688 MBytes 5.77 Gbits/sec [ 3] 5.0- 6.0 sec 688 MBytes 5.77 Gbits/sec [ 3] 6.0- 7.0 sec 687 MBytes 5.76 Gbits/sec [ 3] 7.0- 8.0 sec 686 MBytes 5.75 Gbits/sec [ 3] 8.0- 9.0 sec 688 MBytes 5.77 Gbits/sec [ 3] 9.0-10.0 sec 688 MBytes 5.77 Gbits/sec [ 3] 0.0-10.0 sec 6.24 GBytes 5.36 Gbits/sec And here is netstat on receiving side : # netstat -w 1 -i mlxen1 input (Total) output packets errs idrops bytes packets errs bytes colls 3 0 0 1342564 2 0 242 0 20010 0 0 288125410 9861 0 690494 0 76138 0 0 714913534 37134 0 2599418 0 84279 0 0 720127612 40735 0 2851628 0 84629 0 0 725851168 40776 0 2854428 0 84132 0 0 736770514 40658 0 2846168 0 83584 0 0 717375282 40657 0 2846092 0 83669 0 0 734551794 40825 0 2857858 0 83854 0 0 716303392 40866 0 2860748 0 83944 0 0 730653274 40795 0 2855752 0 84523 0 0 663718362 41136 0 2879616 0 9844 0 0 190720 4769 0 334016 0 Receiving side info : # uname -a FreeBSD test 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 = 02:10:02 UTC 2016 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 # grep -i "mlx.*driver" /var/log/messages kernel: mlx4_core: Initializing mlx4_core: Mellanox ConnectX VPI driver = v2.1.6 (Apr 9 2016) > Does other network drivers exhibit the same behaviour? I only run FreeBSD with ConnectX3 NICs, so I can't test other hardware = :-/ > With your instructions I should be able to reproduce and fix this = issue. Thank you, and of course feel free to ask again if needed. Ben From owner-freebsd-net@freebsd.org Thu Sep 29 03:11:10 2016 Return-Path: Delivered-To: freebsd-net@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 60AD9BE21DB for ; Thu, 29 Sep 2016 03:11:10 +0000 (UTC) (envelope-from prox@prolixium.com) Received: from nox.prolixium.com (nox.prolixium.com [IPv6:2620:6:2000:104::1e]) (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 4474613BE for ; Thu, 29 Sep 2016 03:11:10 +0000 (UTC) (envelope-from prox@prolixium.com) Received: from prox by nox.prolixium.com with local (Exim 4.87) (envelope-from ) id 1bpRka-0001R6-Bj for freebsd-net@FreeBSD.org; Wed, 28 Sep 2016 22:11:08 -0500 Date: Wed, 28 Sep 2016 22:11:08 -0500 From: Mark Kamichoff To: freebsd-net@FreeBSD.org Subject: ICMPv6 HL Exceeded Messages Generated from Wrong Address Message-ID: <20160929031108.GA1530@prolixium.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: prox@prolixium.com X-SA-Exim-Scanned: No (on nox.prolixium.com); SAEximRunCond expanded to false X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2016 03:11:10 -0000 Hi - I've got FreeBSD 11* in a VM acting as an IPv6 router with a bunch of tunnel interfaces and a couple virtio interfaces. I'm seeing some odd behavior related to ICMPv6 HL exceeded messages (type 3 code 0) when running traceroutes. Specifically, the FreeBSD box emits the ICMPv6 messages using the outgoing interface address (ie, toward traceroute destination) instead of the incoming interface address (expected). I've a FreeBSD 10.3 box that ran with almost an identical setup (em instead of virtio, since it was bare metal) that didn't experience this behavior. Here's a few examples, along with an obligatory ASCII-art diagram: https://www.prolixium.com/share/txt/fbsd11-icmpv6hle.txt I'm not willing to rule out some misconfiguration at this point, but I really haven't tuned any knobs that I believe would affect this. Is anyone else with a FreeBSD 11 IPv6 router seeing this type of behavior? What parts of my configuration should I share? - Mark * = FreeBSD 11.0-PRERELEASE #0 r306218: Thu Sep 22 22:03:59 EDT 2016 -- Mark Kamichoff prox@prolixium.com http://www.prolixium.com/ From owner-freebsd-net@freebsd.org Thu Sep 29 06:54:33 2016 Return-Path: Delivered-To: freebsd-net@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 E673AC00DFD for ; Thu, 29 Sep 2016 06:54:33 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:1900:2254:206a::19:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx2.freebsd.org", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CFFA9AA8 for ; Thu, 29 Sep 2016 06:54:33 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from butcher-nb.yandex.net (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx2.freebsd.org (Postfix) with ESMTP id D99E36BD29; Thu, 29 Sep 2016 06:54:32 +0000 (UTC) (envelope-from ae@FreeBSD.org) Subject: Re: ICMPv6 HL Exceeded Messages Generated from Wrong Address To: Mark Kamichoff , freebsd-net@FreeBSD.org References: <20160929031108.GA1530@prolixium.com> From: "Andrey V. Elsukov" Message-ID: Date: Thu, 29 Sep 2016 09:52:20 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20160929031108.GA1530@prolixium.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fTVH8HhSdOi87CuMGREr1tfUcsIQRXtqp" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2016 06:54:34 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --fTVH8HhSdOi87CuMGREr1tfUcsIQRXtqp Content-Type: multipart/mixed; boundary="mA6wG8JahqUOrIwrIuERXX9sU7uOfh9s6"; protected-headers="v1" From: "Andrey V. Elsukov" To: Mark Kamichoff , freebsd-net@FreeBSD.org Message-ID: Subject: Re: ICMPv6 HL Exceeded Messages Generated from Wrong Address References: <20160929031108.GA1530@prolixium.com> In-Reply-To: <20160929031108.GA1530@prolixium.com> --mA6wG8JahqUOrIwrIuERXX9sU7uOfh9s6 Content-Type: multipart/mixed; boundary="------------6785C19945533E2812476ADF" This is a multi-part message in MIME format. --------------6785C19945533E2812476ADF Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 29.09.2016 06:11, Mark Kamichoff wrote: > Hi -=20 >=20 > I've got FreeBSD 11* in a VM acting as an IPv6 router with a bunch of > tunnel interfaces and a couple virtio interfaces. I'm seeing some odd > behavior related to ICMPv6 HL exceeded messages (type 3 code 0) when > running traceroutes. Specifically, the FreeBSD box emits the ICMPv6 > messages using the outgoing interface address (ie, toward traceroute > destination) instead of the incoming interface address (expected). Hi, can you test this patch? --=20 WBR, Andrey V. Elsukov --------------6785C19945533E2812476ADF Content-Type: text/x-patch; name="icmp6.c.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="icmp6.c.diff" Index: icmp6.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- icmp6.c (revision 305970) +++ icmp6.c (working copy) @@ -2203,7 +2203,7 @@ icmp6_reflect(struct mbuf *m, size_t off) * that we do not own. Select a source address based on the * source address of the erroneous packet. */ - in6_splitscope(&ip6->ip6_dst, &dst6, &scopeid); + in6_splitscope(&ip6->ip6_src, &dst6, &scopeid); error =3D in6_selectsrc_addr(RT_DEFAULT_FIB, &dst6, scopeid, NULL, &src6, &hlim); =20 --------------6785C19945533E2812476ADF-- --mA6wG8JahqUOrIwrIuERXX9sU7uOfh9s6-- --fTVH8HhSdOi87CuMGREr1tfUcsIQRXtqp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEsBAEBCAAWBQJX7LooDxxhZUBmcmVlYnNkLm9yZwAKCRABxeoEEMihegh1CACp /nFXv8meX+dGBMX9+SoDJbQZKFeO3MMBe0UCdIqrzuEZX8KloaceooeRh1q4h3Kw Qld96vQ8U5XPQ9V9wH/tS51hy6sKRknGSQ4SR0DiGwpHlJjDaWn1J/4cRKG9BilC Oid3eXdsmbYDMMZ2TugBPOf3iTPQZPfVW6tie/FQnUIKvYCP5U19XSj7gVgfbWVS BIdgRbuFLXAKariLIuQJsiMUxjoc2EF5T5BVTE3hk8MH9e2i2tHmgdyERF7PD3qz WqTA/ogv270DYYj4M6/cp5Bqg+9qsDNztLLLOfRw8ioGF0qrfWJOjFyZiZXJDvVR 74VAYKxTpvW029j2mt7v =P0ve -----END PGP SIGNATURE----- --fTVH8HhSdOi87CuMGREr1tfUcsIQRXtqp-- From owner-freebsd-net@freebsd.org Thu Sep 29 09:04:54 2016 Return-Path: Delivered-To: freebsd-net@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 E287AC00F6F for ; Thu, 29 Sep 2016 09:04:54 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (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 A536B9D7 for ; Thu, 29 Sep 2016 09:04:54 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 8D32C1FE022; Thu, 29 Sep 2016 11:04:45 +0200 (CEST) Subject: Re: netstat counts input traffic twice To: Ben RUBSON , FreeBSD Net References: <94953762-4397-476D-AD61-A39914F27938@gmail.com> <6d052c64-2ca2-7839-c297-e764634be648@selasky.org> <4f5a88f4-03e7-482f-b963-ab65eeee0136@selasky.org> From: Hans Petter Selasky Message-ID: Date: Thu, 29 Sep 2016 11:09:38 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------13CE4254852BBDE48A02D784" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2016 09:04:55 -0000 This is a multi-part message in MIME format. --------------13CE4254852BBDE48A02D784 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Hi, Can you revert the previouis patch try the new attached patch on 10.x and 11.x. It should fix the issue. --HPS --------------13CE4254852BBDE48A02D784 Content-Type: text/x-patch; name="en_port.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="en_port.c.diff" Index: sys/ofed/drivers/net/mlx4/en_netdev.c =================================================================== --- sys/ofed/drivers/net/mlx4/en_netdev.c (revision 306255) +++ sys/ofed/drivers/net/mlx4/en_netdev.c (working copy) @@ -2165,6 +2165,7 @@ dev->if_capabilities |= IFCAP_VLAN_HWCSUM | IFCAP_VLAN_HWFILTER; dev->if_capabilities |= IFCAP_LINKSTATE | IFCAP_JUMBO_MTU; dev->if_capabilities |= IFCAP_LRO; + dev->if_capabilities |= IFCAP_HWSTATS; if (mdev->LSO_support) dev->if_capabilities |= IFCAP_TSO4 | IFCAP_TSO6 | IFCAP_VLAN_HWTSO; --------------13CE4254852BBDE48A02D784-- From owner-freebsd-net@freebsd.org Thu Sep 29 16:24:04 2016 Return-Path: Delivered-To: freebsd-net@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 51B85C01899 for ; Thu, 29 Sep 2016 16:24:04 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (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 EA34D837 for ; Thu, 29 Sep 2016 16:24:03 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wm0-x236.google.com with SMTP id b4so38872057wmb.0 for ; Thu, 29 Sep 2016 09:24:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=bgUg058/gLyTHIAfhg9P1C2/4FEUh6a2EOx2ixfRFl4=; b=Qk/Y9q+WAbedkHyXdi8ibm/g/pRsZjQNC9zCpvsyfZFwko02KlsR1uDc603mTHBuCA J7BrY18OVplubz/EhRFdquA+0b3D8cdxh8r33vA0xQsJL8ChRhAwzSKWi61r6wqquWGF PTwmKa68z7mNi60z6DsrxgjMDhW0LC/iYX6zQTpTUpP6QuB8sfaSgO6eiCPuawy/QgBC pD4mcMCy4TuNO+ogVK6mDJR3rVed460KCkvI8waDp7dA1GvBz+D/BofQ2rTmITyTgBYX 9G8Z4wrsPMXjs6eUYzHs+OK7fMEM3sg41VcgDYQSfXpaPzGy2OoRYGhQS9NClb/+gPdI g73g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=bgUg058/gLyTHIAfhg9P1C2/4FEUh6a2EOx2ixfRFl4=; b=JteaLt5tmdEqGR3oXso8tn7JUXqkYVfdVXHryV8qB7WM1BLV5TKzg/uu6sH4uP7s0F dvBqwugDHDKP13yIcrBMo7wIjcbtTouFrMvAo5GgJS2c76y3Z+lMTTT2Kh/MJgJViJNe ml62ZgKCYMIVgLkgqlItAljaETl8saolEfwqyNp+NhcqtKzUR6w5I2dp3+aaseUy15gK tiNOwO/TdFqndUwbIh64NikWpyxDx/s9kzAUIA4GOfw1G0XFv3PFt/RGWBJEWVqC/Vb/ TI5OAKAHgb3MMkcd7yPzCAH/MCWQ/PEWanpAKXePIi4OXvJEB0FABx4Tbw/H2saoQ029 nl2w== X-Gm-Message-State: AA6/9RnpLjxy8kuUoOuAjVoIlSTad/ZTlLz5xGXswwdS29wV/Vfu7GuSVvrfMiCYM5OnHA== X-Received: by 10.194.20.65 with SMTP id l1mr2243387wje.71.1475166241753; Thu, 29 Sep 2016 09:24:01 -0700 (PDT) Received: from macbook-air-de-benjamin-1.home (LFbn-1-7159-4.w90-116.abo.wanadoo.fr. [90.116.90.4]) by smtp.gmail.com with ESMTPSA id qa7sm14839370wjc.39.2016.09.29.09.24.00 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Sep 2016 09:24:01 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: netstat counts input traffic twice From: Ben RUBSON In-Reply-To: Date: Thu, 29 Sep 2016 18:23:59 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <646C16E2-EF0B-4DC7-B4B3-B3ECE229AB4D@gmail.com> References: <94953762-4397-476D-AD61-A39914F27938@gmail.com> <6d052c64-2ca2-7839-c297-e764634be648@selasky.org> <4f5a88f4-03e7-482f-b963-ab65eeee0136@selasky.org> To: FreeBSD Net X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2016 16:24:04 -0000 > On 29 Sep 2016, at 11:09, Hans Petter Selasky wrote: >=20 > Hi, >=20 > Can you revert the previouis patch try the new attached patch on 10.x = and 11.x. It should fix the issue. HPS, Good news, it fixes the issue, thank you very much ! What was the root-cause and how did you solved it ? Thank you again, Ben From owner-freebsd-net@freebsd.org Thu Sep 29 16:38:15 2016 Return-Path: Delivered-To: freebsd-net@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 06D39C01C89 for ; Thu, 29 Sep 2016 16:38:15 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (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 C38E41A9 for ; Thu, 29 Sep 2016 16:38:14 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id F17E21FE022; Thu, 29 Sep 2016 18:38:12 +0200 (CEST) Subject: Re: netstat counts input traffic twice To: Ben RUBSON , FreeBSD Net References: <94953762-4397-476D-AD61-A39914F27938@gmail.com> <6d052c64-2ca2-7839-c297-e764634be648@selasky.org> <4f5a88f4-03e7-482f-b963-ab65eeee0136@selasky.org> <646C16E2-EF0B-4DC7-B4B3-B3ECE229AB4D@gmail.com> From: Hans Petter Selasky Message-ID: <5bc7086b-201f-2c6e-fde2-72150da9b06e@selasky.org> Date: Thu, 29 Sep 2016 18:43:04 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <646C16E2-EF0B-4DC7-B4B3-B3ECE229AB4D@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2016 16:38:15 -0000 Hi, On 09/29/16 18:23, Ben RUBSON wrote: > What was the root-cause and how did you solved it ? The root cause is a conversion error of ours when the ifnet counter API was updated in 10.x I think. The CX-3/4 adapters use hardware counters for incoming packets and bytes and the following piece of code was doing the duplicate counting: > ./if_ethersubr.c- m->m_flags &= ~M_HASFCS; > ./if_ethersubr.c- } > ./if_ethersubr.c- > ./if_ethersubr.c: if (!(ifp->if_capenable & IFCAP_HWSTATS)) > ./if_ethersubr.c- if_inc_counter(ifp, IFCOUNTER_IBYTES, m->m_pkthdr.len); > ./if_ethersubr.c- > ./if_ethersubr.c- /* Allow monitor mode to claim this frame, after stats are updated. */ In previous versions of the driver we simply assigned the counter value, so this additional count was not so visible, while in later versions we needed to use addition only, which is where the bug happend. FYI: https://svnweb.freebsd.org/changeset/base/306453 https://svnweb.freebsd.org/changeset/base/306454 --HPS From owner-freebsd-net@freebsd.org Thu Sep 29 16:38:40 2016 Return-Path: Delivered-To: freebsd-net@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 DF2A4C01D05 for ; Thu, 29 Sep 2016 16:38:40 +0000 (UTC) (envelope-from prox@prolixium.com) Received: from nox.prolixium.com (nox.prolixium.com [IPv6:2620:6:2000:104::1e]) (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 C1AEA250; Thu, 29 Sep 2016 16:38:40 +0000 (UTC) (envelope-from prox@prolixium.com) Received: from prox by nox.prolixium.com with local (Exim 4.87) (envelope-from ) id 1bpeM2-0000hA-Mg; Thu, 29 Sep 2016 11:38:38 -0500 Date: Thu, 29 Sep 2016 11:38:38 -0500 From: Mark Kamichoff To: "Andrey V. Elsukov" Cc: freebsd-net@FreeBSD.org Subject: Re: ICMPv6 HL Exceeded Messages Generated from Wrong Address Message-ID: <20160929163838.GA27564@prolixium.com> References: <20160929031108.GA1530@prolixium.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: prox@prolixium.com X-SA-Exim-Scanned: No (on nox.prolixium.com); SAEximRunCond expanded to false X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2016 16:38:41 -0000 On Thu, Sep 29, 2016 at 09:52:20AM +0300, Andrey V. Elsukov wrote: > Hi, > > can you test this patch? > > -- > WBR, Andrey V. Elsukov > Index: icmp6.c > =================================================================== > --- icmp6.c (revision 305970) > +++ icmp6.c (working copy) > @@ -2203,7 +2203,7 @@ icmp6_reflect(struct mbuf *m, size_t off) > * that we do not own. Select a source address based on the > * source address of the erroneous packet. > */ > - in6_splitscope(&ip6->ip6_dst, &dst6, &scopeid); > + in6_splitscope(&ip6->ip6_src, &dst6, &scopeid); > error = in6_selectsrc_addr(RT_DEFAULT_FIB, &dst6, > scopeid, NULL, &src6, &hlim); > I just tested this. ICMPv6 HL exceeded packets are now emitted from the incoming (correct) interface. Thank you! - Mark -- Mark Kamichoff prox@prolixium.com http://www.prolixium.com/ From owner-freebsd-net@freebsd.org Thu Sep 29 16:52:54 2016 Return-Path: Delivered-To: freebsd-net@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 63A3EC02266 for ; Thu, 29 Sep 2016 16:52:54 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (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 EA181CB0 for ; Thu, 29 Sep 2016 16:52:53 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wm0-x232.google.com with SMTP id b130so143961102wmc.0 for ; Thu, 29 Sep 2016 09:52:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=8mk8swWPTXJxpbIvpGxiv1/arypZlOC/Qw9vtxI3h94=; b=lAxrET7mPbfnRyUOBHZffe8Fn9pYW7T8DPmaE1ux3QOBXO8HPzouXz4DvMNKHIDlJw exuaZziA2uty0sWpGixhhCWleq2iuJm1IRW25X3WWafSdWJtiLQPUF6No/GJMo+QtyvN 92GtVvPUWyfD7a0f69NbvLmx4a5z3dhs0rI0gDeLyx6nomn24D/HcsKAx5ftoAGn4Qy2 yUmBiEgzSF2q5EX8UA8rIkAt+nk92D7NNfLD3svlji7qUtFYYSf5bTMHhGcI9+VIlO2z uqQ2Un1W+XXqcWcwn7UVVWS61XOwR4IJp5U9AapiceJrefXc2rjMlAh/dS1onw2u+zPD HW5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=8mk8swWPTXJxpbIvpGxiv1/arypZlOC/Qw9vtxI3h94=; b=Op1ffpKbw14YS12qAMDjqlr3YYV1vg6ALCPuJ/7slfVK/BQBC9fMxIimXsK5nnxxf9 31RUCBqnhawKbn9izwrZQJTchSU7/eCIePOxJpUO5tXOYt3SU7TFd66E7Hdyt8rUa7xh vkrG2zhB+D2qhaJ8Fa1DcWQYan/yD1FrSIMXhypu6tzAspuYRVCJj2/a4f32lb4FLhmb NxX9h5wWWH1sdffm2vrw11XDp31LYSyiKmDGrOwweUGSR1K1OEDgpstYAXdNjsB6m7+D w7ECqBcbfZ6K3SMW4HAGgH23Cyr8cJsPwgbPnZgNSMhaKfMuvy8HbdRw8oDnjGjZt7+K HZzg== X-Gm-Message-State: AA6/9Rl+TvqRBAvf9iDo6xCFAMdNtFbGBeUcji8vLDJbPsIbVFoGXfVvwhG8m+gxU8yQ8w== X-Received: by 10.194.72.168 with SMTP id e8mr2408786wjv.104.1475167972195; Thu, 29 Sep 2016 09:52:52 -0700 (PDT) Received: from macbook-air-de-benjamin-1.home (LFbn-1-7159-4.w90-116.abo.wanadoo.fr. [90.116.90.4]) by smtp.gmail.com with ESMTPSA id q10sm15532162wme.6.2016.09.29.09.52.51 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Sep 2016 09:52:51 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: netstat counts input traffic twice From: Ben RUBSON In-Reply-To: <5bc7086b-201f-2c6e-fde2-72150da9b06e@selasky.org> Date: Thu, 29 Sep 2016 18:52:50 +0200 Content-Transfer-Encoding: 7bit Message-Id: <111E3BE6-7A34-48DA-AA13-502A163E79D8@gmail.com> References: <94953762-4397-476D-AD61-A39914F27938@gmail.com> <6d052c64-2ca2-7839-c297-e764634be648@selasky.org> <4f5a88f4-03e7-482f-b963-ab65eeee0136@selasky.org> <646C16E2-EF0B-4DC7-B4B3-B3ECE229AB4D@gmail.com> <5bc7086b-201f-2c6e-fde2-72150da9b06e@selasky.org> To: FreeBSD Net X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2016 16:52:54 -0000 > On 29 Sep 2016, at 18:43, Hans Petter Selasky wrote: > > FYI: > https://svnweb.freebsd.org/changeset/base/306453 > https://svnweb.freebsd.org/changeset/base/306454 Perfect, many thanks for your explanation and for the 2 commits ! Ben From owner-freebsd-net@freebsd.org Thu Sep 29 23:19:46 2016 Return-Path: Delivered-To: freebsd-net@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 5AB86C02CDF for ; Thu, 29 Sep 2016 23:19:46 +0000 (UTC) (envelope-from lew@perftech.com) Received: from smtp-gw.pt.net (smtp-gw.pt.net [206.210.194.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp-gw.pt.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 20527F8 for ; Thu, 29 Sep 2016 23:19:45 +0000 (UTC) (envelope-from lew@perftech.com) X-ASG-Debug-ID: 1475191154-09411a12c010c76b0001-QdxwpM Received: from mail.pt.net (mail.pt.net [206.210.194.11]) by smtp-gw.pt.net with ESMTP id 2RAvriKBxpPfgeM4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 29 Sep 2016 18:19:14 -0500 (CDT) X-Barracuda-Envelope-From: lew@perftech.com X-Barracuda-Effective-Source-IP: mail.pt.net[206.210.194.11] X-Barracuda-Apparent-Source-IP: 206.210.194.11 Received: from localhost (localhost [IPv6:::1]) by mail.pt.net (Postfix) with ESMTP id 11E6F8424B1 for ; Thu, 29 Sep 2016 18:19:14 -0500 (CDT) Received: from mail.pt.net ([IPv6:::1]) by localhost (mail.pt.net [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id a09MDYPAY_jY for ; Thu, 29 Sep 2016 18:19:13 -0500 (CDT) Received: from localhost (localhost [IPv6:::1]) by mail.pt.net (Postfix) with ESMTP id C59D68425E3 for ; Thu, 29 Sep 2016 18:19:13 -0500 (CDT) X-Virus-Scanned: amavisd-new at pt.net Received: from mail.pt.net ([IPv6:::1]) by localhost (mail.pt.net [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id IDlckK3uSzWM for ; Thu, 29 Sep 2016 18:19:13 -0500 (CDT) Received: from dhcp-221-110.perftech.com (dhcp-221-110.perftech.com [206.210.221.110]) (Authenticated sender: lew@pt.net) by mail.pt.net (Postfix) with ESMTPSA id B53688424B1 for ; Thu, 29 Sep 2016 18:19:13 -0500 (CDT) From: Lewis Donzis Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: recv() with MSG_WAITALL appears to be broken (sometimes) Message-Id: X-ASG-Orig-Subj: recv() with MSG_WAITALL appears to be broken (sometimes) Date: Thu, 29 Sep 2016 18:19:13 -0500 To: freebsd-net@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-Barracuda-Connect: mail.pt.net[206.210.194.11] X-Barracuda-Start-Time: 1475191154 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://smtp-gw.pt.net:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 4288 X-Virus-Scanned: by bsmtpd at pt.net X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.33333 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2016 23:19:46 -0000 I posted this on bugzilla = (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212716) but thought = I=E2=80=99d see if anyone here can offer some advice. We have a simple test program to illustrate the problem. Run "server" on a machine, and then run "client" on the same machine. Server creates a listening socket and loops accepting connections, = sending a little data, closing the socket, and then back to the top of = the loop. Client creates a socket, connects to the server, does a recv() with = MSG_WAITALL, closes the socket, and loops. This runs anywhere from one to a few dozen times and then hangs. The = server socket is in FIN_WAIT_2, and the client socket is in CLOSE_WAIT. = So the client side is waiting for the application to close the socket, = but it's still stuck in the recv(), never being awakened by the EOF from = the server closing the socket. The same code runs on Linux and QNX without any problem. This seems ridiculously simple and seems like it would affect many = programs, so perhaps we=E2=80=99re just overlooking something. =20 Note that it makes no difference whether it's run in the same machine = (to localhost or to the machine's own IP address) or across the network, = or whether it's IPv4 or IPv6. It=E2=80=99s also the same with a UNIX = domain STREAM socket (but not a SEQPACKET socket), so it appears to be = unrelated to TCP and perhaps more of a general problem in the socket = layer. In all cases, the recv() never unblocks when the peer closes the = socket. Thanks, lew client.c: #include #include #include #include #include #include #include #include #include #include int main (int argc, char *argv[]) { int c; bool verbose =3D false; char *addr =3D "127.0.0.1"; signal(SIGPIPE, SIG_IGN); while ((c =3D getopt(argc, argv, "v")) !=3D -1) { switch (c) { case 'v': ++verbose; break; default: return 1; break; } } argc -=3D optind - 1; argv +=3D optind - 1; if (argc > 1) addr =3D argv[1]; for (int try =3D 1;; try++) { printf("Try %d\n", try); int s; if ((s =3D socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) err(1, "socket"); =20 struct sockaddr_in sa =3D { .sin_family =3D AF_INET, .sin_port =3D = htons(79), .sin_addr.s_addr =3D inet_addr(addr) }; if (connect(s, (struct sockaddr *)&sa, sizeof sa) < 0) err(1, "connect"); // get the response char rbuf [4096]; int rcvLen; if ((rcvLen =3D recv(s, rbuf, sizeof rbuf, MSG_WAITALL)) < 0) err(1, "recv"); if (verbose) printf("Received: '%.*s'\n", rcvLen, rbuf); close(s); } return 0; } server.c: #include #include #include #include #include #include #include #include #include #include #include int main (int argc, char *argv[]) { int c; bool verbose =3D false; signal(SIGPIPE, SIG_IGN); while ((c =3D getopt(argc, argv, "v")) !=3D -1) { switch (c) { case 'v': ++verbose; break; default: return 1; break; } } argc -=3D optind - 1; argv +=3D optind - 1; int s0; if ((s0 =3D socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) err(1, "socket"); int on =3D true; if (setsockopt(s0, SOL_SOCKET, SO_REUSEPORT, &on, sizeof on) < 0) err(1, "setsockopt"); struct sockaddr_in sa =3D { .sin_family =3D AF_INET, .sin_port =3D = htons(79) }; if (bind(s0, (struct sockaddr *)&sa, sizeof sa) < 0) err(1, "bind"); if (listen(s0, 1000) < 0) err(1, "listen"); printf("Listening\n"); for (int try =3D 1;; try++) { socklen_t sl; int s =3D accept(s0, (struct sockaddr *)&sa, &sl); if (s < 0) err(1, "accept"); printf("Try %d\n", try); // send the response static char sbuf [] =3D "Hello from server\n"; if (send(s, sbuf, sizeof sbuf - 1, 0) < 0) err(1, "send"); if (verbose) printf("Sent: %s", sbuf); close(s); } return 0; } From owner-freebsd-net@freebsd.org Fri Sep 30 03:06:17 2016 Return-Path: Delivered-To: freebsd-net@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 6F248C02EB1 for ; Fri, 30 Sep 2016 03:06:17 +0000 (UTC) (envelope-from garmitage@swin.edu.au) Received: from gpo1.cc.swin.edu.au (gpo1.cc.swin.edu.au [136.186.1.30]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ED2591111 for ; Fri, 30 Sep 2016 03:06:16 +0000 (UTC) (envelope-from garmitage@swin.edu.au) Received: from [136.186.229.37] (garmitage.caia.swin.edu.au [136.186.229.37]) by gpo1.cc.swin.edu.au (8.14.3/8.14.3) with ESMTP id u8U36CTU013459 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 30 Sep 2016 13:06:13 +1000 Subject: Re: BBR Congestion Control Algorithm To: freebsd-net@freebsd.org References: From: grenville armitage Message-ID: <57EDD6A4.5080007@swin.edu.au> Date: Fri, 30 Sep 2016 13:06:12 +1000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 30 Sep 2016 03:06:17 -0000 On 09/20/2016 21:25, Loganaden Velvindron wrote: [...] > A lot of groundwork needs to be done I suppose. For example, > implementing high-resolution timers that would allow the FreeBSD > network stack to implement BQL, and other necessary infrastructure in > order for fq_codel/CAKE to work as well as on Linux. I'd be interested in seeing experimental results that illustrate the limits or broken/edge cases you allude to in FreeBSD's current dummynet/ipfw-based FQ-CoDel. cheers, gja > > Perhaps this might be something that the FreeBSD foundation could look into ? > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > From owner-freebsd-net@freebsd.org Fri Sep 30 03:10:28 2016 Return-Path: Delivered-To: freebsd-net@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 1C362C030A9 for ; Fri, 30 Sep 2016 03:10:28 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: from mail-ua0-x232.google.com (mail-ua0-x232.google.com [IPv6:2607:f8b0:400c:c08::232]) (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 CB5ED1443; Fri, 30 Sep 2016 03:10:27 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: by mail-ua0-x232.google.com with SMTP id v7so8857715uaa.0; Thu, 29 Sep 2016 20:10:27 -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:from:date:message-id :subject:to:cc; bh=04THvWoWyNn7q+5/E4ewlUTYYTXNuAclifHrTIE6w3Y=; b=gqs1cVICsUYWL97NriBonNM3kWvijJf1huNbgzLoOqh40M0Zy46fV9XwKoUrzw5BGX AGC6ZnSL51THwn7yEb/cMwDTMKz2tyhFZOcpjGvA6VIcg/L0Z6CSL5ZXRFf7wZiTITqz SykJa6D6WoOZ3wNUFGtlWceRRg/B7cPHu3RhV8YIPsWJGsZlFR2GJtukuh7hbFRfjQpl a80gIzt24q+t0jECIv4U1rq9f1vjWaElj4vVBIoNNJgdiG2uwgvu/xVdWKx/jcH9cal3 qUnw67mBin1htBNA9e6orGYXa30AlseBvGNiB7/XUXwM6GPahMWOQ0XJudgq39yIgx3F 85ig== 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:from :date:message-id:subject:to:cc; bh=04THvWoWyNn7q+5/E4ewlUTYYTXNuAclifHrTIE6w3Y=; b=QT8gZWE/Rti0DaP2YntpWAedJ+I1nczuq3Vv2KbOQJLHM6SL0V5iwGOtcN4gCQ6bU+ qaaj76hEeePyKD9/8dsPswK1zEawwqyDzJBicRyX6ClMtNuSSG/FrOj3OeKoYDiotONU nx7u+BfJEw7TYWVEwS6kpJTjYiVJxaHYAyAtDE8fZx3iKBjwuPcpU+vth+q4gTQbdDz8 g4lPins2ifPkM9bBG0tWRb0zUGpJAYHNbjqIjQ12eF/eHvosrsk415C7lAZiJ7uqPjo3 Jv63n9zyXg3h7xMckm+KUQp+xg0jj84H+bvia+M6XYJsTwYV4KHB19EBxh0ieQMU8rcE b7qQ== X-Gm-Message-State: AA6/9Rn5WzuqxnQKg42AKWtjJYFPWRTeV5cWEKOhWx1pA6wlcOhN83o1AxF8IpheqUG1uLRRxNRgP4FFa//I6A== X-Received: by 10.159.48.136 with SMTP id j8mr4010520uab.103.1475205026596; Thu, 29 Sep 2016 20:10:26 -0700 (PDT) MIME-Version: 1.0 Sender: kmacybsd@gmail.com Received: by 10.176.69.133 with HTTP; Thu, 29 Sep 2016 20:10:26 -0700 (PDT) In-Reply-To: References: From: "K. Macy" Date: Thu, 29 Sep 2016 20:10:26 -0700 X-Google-Sender-Auth: TwVwS7RIniSXcETz4lzDgJyLgk8 Message-ID: Subject: Re: BBR Congestion Control Algorithm To: Babak Farrokhi Cc: FreeBSD Net Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 30 Sep 2016 03:10:28 -0000 On Sat, Sep 17, 2016 at 8:24 AM, Babak Farrokhi wrote: > ICYMI: http://marc.info/?l=linux-netdev&m=147405177724268&w=2 > > Google submitted their own TCP CC algorithm to upstream. This algorithm has been widely in use in their network. > This looks very interesting and it would be great if someone could port it to FreeBSD. > > Any thoughts? It's next up on rrs@ TODO queue. I'd expect to see it later this year, beginning of next. It hasn't actually hit Linux mainline yet. It is currently slated for 4.9. -M From owner-freebsd-net@freebsd.org Fri Sep 30 03:28:08 2016 Return-Path: Delivered-To: freebsd-net@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 A8A61C03460 for ; Fri, 30 Sep 2016 03:28:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 9837C1D14 for ; Fri, 30 Sep 2016 03:28:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8U3S8A0083456 for ; Fri, 30 Sep 2016 03:28:08 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 212576] vnet jail startup and shutdown destroys ipfw object rewriter list Date: Fri, 30 Sep 2016 03:28:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-RC1 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 30 Sep 2016 03:28:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212576 --- Comment #3 from commit-hook@freebsd.org --- A commit references this bug: Author: ae Date: Fri Sep 30 03:27:07 UTC 2016 New revision: 306475 URL: https://svnweb.freebsd.org/changeset/base/306475 Log: MFC r305940: Move opcode rewriter init and destroy handlers into non-VNET code. PR: 212576,212649,212077 Submitted by: John Zielinski Changes: _U stable/11/ stable/11/sys/netpfil/ipfw/ip_fw2.c --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Fri Sep 30 03:36:42 2016 Return-Path: Delivered-To: freebsd-net@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 6F91DC035CF for ; Fri, 30 Sep 2016 03:36:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 5EC44F4 for ; Fri, 30 Sep 2016 03:36:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8U3ag77013910 for ; Fri, 30 Sep 2016 03:36:42 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 212576] vnet jail startup and shutdown destroys ipfw object rewriter list Date: Fri, 30 Sep 2016 03:36:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-RC1 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ae@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 30 Sep 2016 03:36:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212576 Andrey V. Elsukov changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|New |Closed --- Comment #4 from Andrey V. Elsukov --- Fixed in head/ and stable/11. Thanks! --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Fri Sep 30 06:57:53 2016 Return-Path: Delivered-To: freebsd-net@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 C6994C037CF for ; Fri, 30 Sep 2016 06:57:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 B63C511E4 for ; Fri, 30 Sep 2016 06:57:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8U6vrwg070549 for ; Fri, 30 Sep 2016 06:57:53 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 212576] vnet jail startup and shutdown destroys ipfw object rewriter list Date: Fri, 30 Sep 2016 06:57:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-RC1 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: crest@bultmann.eu X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 30 Sep 2016 06:57:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212576 --- Comment #5 from Jan Bramkamp --- Any chance for this to be included in an errata in FreeBSD 11.0 (releng/11.= 0)? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Fri Sep 30 13:37:30 2016 Return-Path: Delivered-To: freebsd-net@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 6BF67C02DFF for ; Fri, 30 Sep 2016 13:37:30 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (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 33736BA7 for ; Fri, 30 Sep 2016 13:37:29 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id DC37D1FE022 for ; Fri, 30 Sep 2016 15:37:20 +0200 (CEST) To: "freebsd-net@freebsd.org" From: Hans Petter Selasky Subject: [RFC] [D3687] SO_MAX_PACING_RATE and FreeBSD Message-ID: Date: Fri, 30 Sep 2016 15:42:13 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 30 Sep 2016 13:37:30 -0000 Hi, After some time of discussions going forth and back I think there is a very good proposal for implementing support for the SO_MAX_PACING_RATE socket option at: https://reviews.freebsd.org/D3687 Since last time the solution was discussed there has been added RSS awareness to the internal APIs, to better utilize CPU offloading when applying rate limiting. By default, unless options RATELIMIT is defined, there are no functional changes in the current TCP/IP code. I'd like some people from the network group to have a fresh look at the patch and if everything is fine, be able to push something by end of October. At Mellanox we are currently doing final testing of the SO_MAX_PACING_RATE feature. --HPS From owner-freebsd-net@freebsd.org Fri Sep 30 16:32:27 2016 Return-Path: Delivered-To: freebsd-net@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 4DB6DC03616 for ; Fri, 30 Sep 2016 16:32:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 3D3021DC1 for ; Fri, 30 Sep 2016 16:32:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8UGWRAJ048001 for ; Fri, 30 Sep 2016 16:32:27 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 213115] ifconfig ipfw create inside a VNET jail leads to kernel Panic Date: Fri, 30 Sep 2016 16:32:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.3-STABLE X-Bugzilla-Keywords: vimage X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 30 Sep 2016 16:32:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213115 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |freebsd-net@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Sat Oct 1 00:56:08 2016 Return-Path: Delivered-To: freebsd-net@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 73E80C0235F for ; Sat, 1 Oct 2016 00:56:08 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gold.funkthat.com", Issuer "gold.funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3FEF61C6D for ; Sat, 1 Oct 2016 00:56:07 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.15.2/8.15.2) with ESMTPS id u910txTL029782 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 30 Sep 2016 17:55:59 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id u910twwn029781; Fri, 30 Sep 2016 17:55:58 -0700 (PDT) (envelope-from jmg) Date: Fri, 30 Sep 2016 17:55:58 -0700 From: John-Mark Gurney To: Achilleas Mantzios Cc: freebsd-net@freebsd.org, Ilias Seperis Subject: Re: Strange issue with scp performance Message-ID: <20161001005558.GB1751@funkthat.com> Mail-Followup-To: Achilleas Mantzios , freebsd-net@freebsd.org, Ilias Seperis References: <57EB9AC8.3050102@matrix.gatewaynet.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57EB9AC8.3050102@matrix.gatewaynet.com> X-Operating-System: FreeBSD 11.0-ALPHA2 amd64 X-PGP-Fingerprint: D87A 235F FB71 1F3F 55B7 ED9B D5FF 5A51 C0AC 3D65 X-Files: The truth is out there X-URL: https://www.funkthat.com/ X-Resume: https://www.funkthat.com/~jmg/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (gold.funkthat.com [127.0.0.1]); Fri, 30 Sep 2016 17:56:00 -0700 (PDT) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2016 00:56:08 -0000 Achilleas Mantzios wrote this message on Wed, Sep 28, 2016 at 13:26 +0300: > We have a weird situation here. We just made a clone of a virtual image running Linux and sent it over to some could provider. The problem is that the scp performance to *many* hosts in our office > center has worsened considerably, including one freebsd box. > > In this freebsd box I run also a jail, and a linux ubuntu image with bhyve. The crazy thing here is that : > > 1) scp from the original (local office center) linux image to the host FreeBSD, its jailed FreeBSD and its bhyve linux is 2.7 MB/s > 2) scp from the cloud linux image to the host FreeBSD is slow (~300KB/s) > 3) scp from the cloud linux image to the above FreeBSD's jail is slow(~300KB/s) > 4) scp from the cloud linux image to the above FreeBSD's bhyve ubuntu is fast(~1->1.5MB/s) > > What can cause this behavior? > > PS > Please answer to me directly as I am not subscribed to -net. > Thanks a lot for any ideas. I worked on this last year a bit, but was never able to track it down. It may be an issue w/ internal SSH's buffering not growing properly to handle the latency. I posted some info on the wiki about this: https://wiki.freebsd.org/SSHPerf -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-net@freebsd.org Sat Oct 1 06:43:57 2016 Return-Path: Delivered-To: freebsd-net@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 AE24DC050DD for ; Sat, 1 Oct 2016 06:43:57 +0000 (UTC) (envelope-from avernar@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (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 52F59398 for ; Sat, 1 Oct 2016 06:43:57 +0000 (UTC) (envelope-from avernar@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id p138so60388168wmb.1 for ; Fri, 30 Sep 2016 23:43:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=zHuLjyIBm8wBC+n31ndSrdvgCMenlXMXRVw4yWB7GXQ=; b=a+vC5PqfD+tFKeUnBJ4cES0rdETBM0c0oaHW0fWUkD1HherpYhP/nNlCFO5OmB/YpB Wlk+8bUYgwQKO9VTG7Lwm/h9mljxg5tBmhE6FsWNDn6J56glmUE79RhyP2YVaUVCgbJ7 TxTjZjmBc7zFed0h23IAilDjSzLff1kl/VsomiXgV4Yqr0bRAcgZCmRCn4BUMBb2hbRi 8KvvzqcuMCbnSDA8cvIGeGJMZamvXGtEYHY1xd+ltRScLnlnMAJRruRWoqfVmRCKzcYX EVF5SaGyQ20wnlkHiOzBKjh/D0lLuVkQVgheoAiwZIhTSwKudDmL9y6D54L/4wyX8I4j Tp9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=zHuLjyIBm8wBC+n31ndSrdvgCMenlXMXRVw4yWB7GXQ=; b=Vi0rNFYLgvxpmLIGZpTGr77ooSX54mZSC5jwMIxb6b/Z+Drksc6b4f88ms6rYzbhYh lNJo/pXCWUAxQj+cHVnQDElSkD/I6PKoY1W8GI1FJ96VgRrGq4aFps/N1HF21jsbFiwQ sWJZJ34kZzO2xluvzZt6dfGghRjww+ZnoMAoZ9L9mHque/qqRQeXN6vNSkUMrqAzVWdV ZUL3Tv1gMZI309/TjE6KA7ie10GebrwhVM+04Oe5ookuTuNazBxtl2byM4AWaEUhEmH+ czIX04RWC6Zpy4nO+8bHHZjvgtyAIJe1+Wrm0NyIYseio9on2LkBBJNwA2mDP0MtwGgs oMgA== X-Gm-Message-State: AA6/9RnaFjgzOSwkYZiFwxlmxvf0o5L/1IrWKJEY1/c21SxU9Vu4YumQksh5BJ6ygUHu1ceBh6vF5acrtnBI0g== X-Received: by 10.194.115.135 with SMTP id jo7mr6102254wjb.225.1475304235091; Fri, 30 Sep 2016 23:43:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.142.14 with HTTP; Fri, 30 Sep 2016 23:43:54 -0700 (PDT) From: Avernar Date: Sat, 1 Oct 2016 02:43:54 -0400 Message-ID: Subject: ng_ipfw and vnet To: freebsd-net@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2016 06:43:57 -0000 I needed to have the netgraph ipfw node appear in a vnet jail but it is only created once on module load and only for the base system. I put together this modification to get it to also appear in vnet jails. Since I'm very new to this code base I'd like to know if I made any mistakes. So any help and advice would be appreciated. Index: ng_ipfw.c =================================================================== --- ng_ipfw.c (revision 306382) +++ ng_ipfw.c (working copy) @@ -74,7 +74,8 @@ int); /* We have only one node */ -static node_p fw_node; +static VNET_DEFINE(node_p, fw_node); +#define V_fw_node VNET(fw_node) /* Netgraph node type descriptor */ static struct ng_type ng_ipfw_typestruct = { @@ -112,18 +113,6 @@ break; } - /* Setup node without any private data */ - if ((error = ng_make_node_common(&ng_ipfw_typestruct, &fw_node)) - != 0) { - log(LOG_ERR, "%s: can't create ng_ipfw node", __func__); - break; - } - - /* Try to name node */ - if (ng_name_node(fw_node, "ipfw") != 0) - log(LOG_WARNING, "%s: failed to name node \"ipfw\"", - __func__); - /* Register hook */ ng_ipfw_input_p = ng_ipfw_input; break; @@ -131,8 +120,8 @@ case MOD_UNLOAD: /* * This won't happen if a node exists. - * ng_ipfw_input_p is already cleared. */ + ng_ipfw_input_p = NULL; break; default: @@ -293,8 +282,8 @@ /* * Node must be loaded and corresponding hook must be present. */ - if (fw_node == NULL || - (hook = ng_ipfw_findhook1(fw_node, fwa->rule.info)) == NULL) + if (V_fw_node == NULL || + (hook = ng_ipfw_findhook1(V_fw_node, fwa->rule.info)) == NULL) return (ESRCH); /* no hook associated with this rule */ /* @@ -339,13 +328,8 @@ ng_ipfw_shutdown(node_p node) { - /* - * After our single node has been removed, - * the only thing that can be done is - * 'kldunload ng_ipfw.ko' - */ - ng_ipfw_input_p = NULL; NG_NODE_UNREF(node); + V_fw_node = NULL; return (0); } @@ -359,3 +343,33 @@ return (0); } + +static void +vnet_ng_ipfw_init(const void *unused) +{ + + if (ng_ipfw_input_p != ng_ipfw_input) + return; + + /* Setup node without any private data */ + if (ng_make_node_common(&ng_ipfw_typestruct, &V_fw_node) != 0) { + log(LOG_ERR, "%s: can't create ng_ipfw node", __func__); + return; + } + + /* Try to name node */ + if (ng_name_node(V_fw_node, "ipfw") != 0) + log(LOG_WARNING, "%s: failed to name node \"ipfw\"", __func__); +} +VNET_SYSINIT(vnet_ng_ipfw_init, SI_SUB_PSEUDO, SI_ORDER_ANY, + vnet_ng_ipfw_init, NULL); + +static void +vnet_ng_ipfw_uninit(const void *unused) +{ + + if ((V_fw_node != NULL) && NG_NODE_IS_VALID(V_fw_node)) + ng_rmnode_self(V_fw_node); +} +VNET_SYSUNINIT(vnet_ng_ipfw_uninit, SI_SUB_INIT_IF, SI_ORDER_ANY, + vnet_ng_ipfw_uninit, NULL);