From owner-freebsd-net@freebsd.org Sun Apr 9 07:20:25 2017 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 BC9BBD35F70 for ; Sun, 9 Apr 2017 07:20:25 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: from mail-oi0-x233.google.com (mail-oi0-x233.google.com [IPv6:2607:f8b0:4003:c06::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 81C311B9 for ; Sun, 9 Apr 2017 07:20:25 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: by mail-oi0-x233.google.com with SMTP id g204so48251344oib.1 for ; Sun, 09 Apr 2017 00:20:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3nSknfcU1IIy98tQf0NOIiSfNkmIrCKRxmOPtSK/lnk=; b=Cqyjf9V+5VSLhqLqrPp02/jzWepcmDN/iolkdyPXKo6ED7ZqAANL37Rf9MTa39pPVe HewqimbOONj4+HJppMU7BGtELL9DvxTmSYQ47nnCR26JOQdc0lKmH+oIFqaU7c+zUxdU 8xO7ScHZc5bZ2MSe5MBrPZz60NaRew0pNgJNResrh1Ir+YRTlsYIg5ANL87iEoUnRIAL /adsT9wyyyG3n0IiaDPuyW4DlzSxqF+NoB3v1U1J5hOWP9AIbMsC+pzyjWRYeuEZ+eJP FNBPZrz2JTUlzPcniORlt3v8KBMXUwKHzHdCsEyNmjUl8M7Vchnb0MDKrLCQB0/N99Tm y8lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3nSknfcU1IIy98tQf0NOIiSfNkmIrCKRxmOPtSK/lnk=; b=SPpyt5ByE1HkUJebMOfySXn6Igtvi4H+nsAEVF+2caVFUcsV4SMsg1NGI1kAD8sBde d9d8tsmRcgz8BZ6UhU0N5gbxZTmFWI8thiQgn7/2gUUaqyEUIoFVXBTnATUZOvIlHcHo C7gTLIT3Axoi3ggvtaa48ogqd4BR3PX3CVNZ1X80LwYoIa3RK9NrtXUQNK7BkZfqgEdo i+sBxRl5bWWvxQo/OKlSR3aKS5NZictZmmShSTSFbLy0nLZILwjTdIWYLeQlBPhmclfv hv2vfY1zLqhMALajwjTk+uPyWwZUsQT3Dh+ls/hVPaSWYDqWOXBKkY33/P69HF7agb7l eqtQ== X-Gm-Message-State: AFeK/H3T1G9sJKzukfNLnI22HVbklC9/Efo0gNlOYkyrTe32T/kXw7G21MzuPSYv+Qsv+GQdc0qaPinlWcmNIQ== X-Received: by 10.157.6.228 with SMTP id 91mr19563681otx.61.1491722424289; Sun, 09 Apr 2017 00:20:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.1.134 with HTTP; Sun, 9 Apr 2017 00:20:23 -0700 (PDT) In-Reply-To: References: From: Vincenzo Maffione Date: Sun, 9 Apr 2017 09:20:23 +0200 Message-ID: Subject: Re: Netmap pipe zero-copy with NIC buffer? To: Paras Jha 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: Sun, 09 Apr 2017 07:20:25 -0000 Hi, Yes, when you nm_open("netmap:em3{2", ...), you're opening a netmap pipe in the same netmap memory area as the one used by nm_open("netmap:em3", ...). As a result, you can zero-copy packets from NIC rings to pipe rings. What do you mean by "KB mode"? Cheers, Vincenzo 2017-04-08 19:56 GMT+02:00 Paras Jha : > Hi all, > > Is it possible to have a netmap pipe share memory with a netmap port opened > in KB mode for zero-copy purposes? > > All the best > _______________________________________________ > 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" > -- Vincenzo Maffione From owner-freebsd-net@freebsd.org Sun Apr 9 10:30:11 2017 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 E35D5D34CA2 for ; Sun, 9 Apr 2017 10:30:11 +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 CD312BB2 for ; Sun, 9 Apr 2017 10:30:11 +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 v39AUBbt003811 for ; Sun, 9 Apr 2017 10:30:11 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 218508] Tunneling and aliases using the tun device, reusing a destination address works with IPv4, but not IPv6 Date: Sun, 09 Apr 2017 10:30: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-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some 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: Sun, 09 Apr 2017 10:30:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218508 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 Sun Apr 9 21:00:35 2017 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 1157AD36092 for ; Sun, 9 Apr 2017 21:00:35 +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 021C41C42 for ; Sun, 9 Apr 2017 21:00:35 +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 v39L01w6010629 for ; Sun, 9 Apr 2017 21:00:34 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201704092100.v39L01w6010629@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, 09 Apr 2017 21:00:34 +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, 09 Apr 2017 21:00:35 -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 | 165622 | [ndis][panic][patch] Unregistered use of FPU in k 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 New | 213410 | [carp] service netif restart causes hang only whe New | 215874 | [patch] [icmp] [mbuf_tags] teach icmp_error() opt Open | 173444 | socket: IPV6_USE_MIN_MTU and TCP is broken 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 | 202510 | [CARP] advertisements sourced from CARP IP cause 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_ 17 problems total for which you should take action. From owner-freebsd-net@freebsd.org Mon Apr 10 16:06:26 2017 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 71E3BD37ABE for ; Mon, 10 Apr 2017 16:06: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 6110EF43 for ; Mon, 10 Apr 2017 16:06: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 v3AG6MVl032713 for ; Mon, 10 Apr 2017 16:06:26 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: Mon, 10 Apr 2017 16:06:23 +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: sbruno@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: bug_status resolution 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: Mon, 10 Apr 2017 16:06:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211219 Sean Bruno changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Closed Resolution|--- |FIXED --- Comment #15 from Sean Bruno --- As far as I can tell, this bug is fixed in 10-stable and 11-stable. Since = the code bases in 12-current and XX-stable are quite a bit different, I'm going= to close this ticket out as fixed. I don't want to lose tracking open issues here, and it sure looks like ther= e's somewhere around 3 different issues being discussed here. If there is stil= l a problem with the hardware you are using, please indicate your issue in a *seperate* bug and I'll respond. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Mon Apr 10 16:50:17 2017 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 5C40DD36C72 for ; Mon, 10 Apr 2017 16:50: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 4B828F28 for ; Mon, 10 Apr 2017 16:50: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 v3AGoGSE027555 for ; Mon, 10 Apr 2017 16:50:17 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: Mon, 10 Apr 2017 16:50:16 +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: 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: Mon, 10 Apr 2017 16:50:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211219 --- Comment #16 from Franco Fichtner --- I'm not so sure. All branches received a modified patch that came up inconclusive in testing, overshadowed by the iflib conversion and multiple build and subsystem failures due to it. We circled around a minimal patch (note the attached patch reverts to the full Intel driver change), but the weirdness that is "adapter->ims" for just this one chipset code path still makes no sense in the grand scheme of things. I asked for a full revert to the working Intel state via e-mail, but that didn't happen. I don't think this is sensible for the simple reason that this was introduc= ed in stable/10, went into 10.3 unnoticed, breaking *a lot* of embedded hardwa= re with regard to e.g. CARP, then went into 11.0. It took a long time to iden= tify the commit that was responsible and unwind it (it was a batch MFC after all= ). Settling for anything other than what is attached to this ticket is risky, especially if there is nobody who can test and verify this in over one and a half years. Cheers, Franco --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Mon Apr 10 19:40:35 2017 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 E5250D3758F for ; Mon, 10 Apr 2017 19:40:35 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: from mail-io0-x22a.google.com (mail-io0-x22a.google.com [IPv6:2607:f8b0:4001:c06::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 B30CC1C1 for ; Mon, 10 Apr 2017 19:40:35 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: by mail-io0-x22a.google.com with SMTP id t68so78114064iof.0 for ; Mon, 10 Apr 2017 12:40:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sippysoft-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=YwLfaDvJ3jOj0sxFtz/I4C+OqWxRBYOhuoYPierNsYI=; b=AqaX/fO/hcZhWtSt6X2l+VrQ2JGChACMpwo6orE7ZlLhupRpf+ZBSnQmnpBJOE0zvG mFnnyou8Phj2Z1elB8rTop04Y8KSRulyiRXSJref/7hByh95QOjy5AZS1tT2xcs55fMO 3bluvHtZczhnw7N28a/cfcnBMXmVCBlzKNEOPeVNQYkgLnz+XZxLFcb6BF0nNWG3wNpP OhuN5BjG5MMh9+3ON+zItGc9Dy39xRTGL49U8qCy4SZy6b0A70zyT0gVFFWyvrKuMVUb k7w0gXk+NL0v92tbHWk98xd9vkKhkRDpWzJciG6x5ADeIAu1iude++cTDkmjr83mm9We GUmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=YwLfaDvJ3jOj0sxFtz/I4C+OqWxRBYOhuoYPierNsYI=; b=cEHYL1E+c2MfcEQUj4L/LLNQ5B14NQUBZpbeBT4PS/o+E9VUJrjKKeKX3yEa7fs39z 3GJCBguAMzOocf3JO6nin4E+KP0yfVvcgcz/ZulASj3RNYjPksYxbwAZOCsoHubIKx3O IVPEHw/otPfTdVkGRWs0cxFzfuRhSyoJO92DY88GVSfV8vlPj9HDxw0cmVvC2emznmyh 7i5oQY2pbCz4MaRXbDUVJA9sPwamDTka6F8qwVW644BP8LBhUQgWqK6hUNIyhwhihLIK ewqR0NT06HoX7vGF4t/iBtvQYXE1Ts4uoTfJHHZD+xwfyBdb84tYauNL6cYCE5i+2TQU 7jww== X-Gm-Message-State: AN3rC/53YDrV12RWRnOTKGz1YSU5O/JgNWuNLs3IUckefaWLbozpZL3vOQ/2cZv6Fz6R8+eTw+RdHnc+iQHOTaRn X-Received: by 10.36.170.68 with SMTP id y4mr13297852iti.7.1491853234973; Mon, 10 Apr 2017 12:40:34 -0700 (PDT) MIME-Version: 1.0 Sender: sobomax@sippysoft.com Received: by 10.36.112.210 with HTTP; Mon, 10 Apr 2017 12:40:34 -0700 (PDT) In-Reply-To: References: From: Maxim Sobolev Date: Mon, 10 Apr 2017 12:40:34 -0700 X-Google-Sender-Auth: QeyKm__Oqj-uId0iQMz0NyIxWCw Message-ID: Subject: Re: On shutting down UDP socket [Re: svn commit: r285910 - in head: lib/libc/sys sys/kern sys/sys] To: Ed Schouten Cc: Alexander Kabaev , Ed Schouten , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org, mjg@freebsd.org, gnn@freebsd.org, 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, 10 Apr 2017 19:40:36 -0000 JFYI. I've opened a follow-up differential for this potential regression: https://reviews.freebsd.org/D10351 Thanks! -Max On Mon, Apr 10, 2017 at 7:43 AM, Maxim Sobolev wrote: > Hi Guys, I am sorry to bring this old thread up, but I think Ed's > comparison with other OSes here and in the relevant differential was not > entirely correct. What linux does (tested with 4.4.0) when UDP socket is > shut down is actually shutting down receiving end, so any threads that are > blocked in recv() on that socket return. Still shutdown() system call > itself returns ENOTCONN. FreeBSD on the other hand does not do anything for > the socket, so that the threads just hang. I am pretty sure there are at > least some software out there that relies on that behavior, at least in our > case we do. Bumped into this after upgrading to the 11.0. > > Therefore, I am curious about possibility to make our behavior match that > of Linux's, so we are not the odd one with regards to this, that is return > an error but still shutdown the socket? > > Small test case is attached. Both FreeBSD 10.3 and Linux 4.4.0 pass > (albeit Linux's shutdown() returns with an error), FreeBSD 11.0 fails. > > -Max > > On Sun, Aug 9, 2015 at 6:08 AM, Ed Schouten wrote: > >> Hi Alexander, >> >> 2015-08-09 14:55 GMT+02:00 Alexander Kabaev : >> > On Sun, 9 Aug 2015 09:37:13 +0200 >> > It most definitely does work, this is what I have done to get my >> > network scripts work again. I wonder if there are other means of >> > restricting raw sockets that can be used to achieve the result >> > authors of rtsold had hoped or? >> >> Yes, there sure are. We could for example call cap_rights_limit() on >> the socket and whitelist the exacty set of actions that the program >> needs. >> >> That said, it wouldn't make a difference in the end. It looks like >> rtsol/rtsold don't seem to drop any privileges or switch credentials >> after startup, assuming I haven't overlooked anything. Even if we were >> to restrict the raw socket, the process could always open a new one >> later on. >> >> I think it would make sense for now to just commit the patch that I >> proposed. Will push it into the tree tomorrow. >> >> Thanks, >> -- >> Ed Schouten >> Nuxi, 's-Hertogenbosch, the Netherlands >> KvK/VAT number: 62051717 >> >> > From owner-freebsd-net@freebsd.org Mon Apr 10 22:05:00 2017 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 4E32ED38B05 for ; Mon, 10 Apr 2017 22:05:00 +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 3D88095C for ; Mon, 10 Apr 2017 22:05:00 +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 v3AM4tro024043 for ; Mon, 10 Apr 2017 22:05:00 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: Mon, 10 Apr 2017 22:04:54 +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: sbruno@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: 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: Mon, 10 Apr 2017 22:05:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211219 --- Comment #17 from Sean Bruno --- (In reply to Franco Fichtner from comment #16) Perhaps I'm missing something. stable/10 and stable/11 current match the code specified in the patch reque= sted in this bugzilla ticket. Was there something else? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Tue Apr 11 13:13:45 2017 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 2702DD39CA1 for ; Tue, 11 Apr 2017 13:13:45 +0000 (UTC) (envelope-from woodsb02@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 AF7F4788 for ; Tue, 11 Apr 2017 13:13:44 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-wm0-x230.google.com with SMTP id u2so423669wmu.0 for ; Tue, 11 Apr 2017 06:13:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=aRFRb3G/D79wOpgLzmitusHR5tS/19NdZtEb0URIOUE=; b=nNO4Siz283509LHYsTsEx3YZ9mIc+YT6vUpCKH6zQSGHwSqXGJy76XzuBY1Oh9gN4D pHqYfntLwQQEL2/yCLO8J7WhENVSSc3Edy28noUx7BzU39ZmKndhJ1D2ThjxNpdq9EnX UGA6b9Pquk3CRYZSspYTsOwD65lnq8FuAmvCSyQ6AtKvo8yGRMIe1edX3+A00l13hJID aaNiY0Lhx8Wy9MmZABFa9Ws8H/CgTAXW4MXaKHvT2GgIJyQZSrt1NSnkFr1K435Yf2G1 7JqIdqDFRPVAMeAHmb2m6W4v3Doz3PZfr9tGs0LiBi2WwGguH6TS1fD4x6GW5KTMzPkP s7DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=aRFRb3G/D79wOpgLzmitusHR5tS/19NdZtEb0URIOUE=; b=gJBncvFUzwpsIqoyT4lliJwpTqulwCyjF6DwdGsYyKEerNtdvbJWKzg0pXQoN5jfH+ RaeyZS2zMXhpee6CNUyvcqkrgNygkt+uYvpmFdonEcbMJ3I5sZdcXpCqk1M0szFMlPcR 0EcqM7O2TGRkuKyqDqNzfGXUrP6YjOCVaZ4lv/IK5Hd3Vjlpe/lBX8JXAIpTGvW4vR3Q RcQuaFKZGg2aBQwEaFFwWCKYU37eLfvYzEB+OABHAUTpJRcjgrIc4fizMQJ8sWB5RDH9 InGblkk2AojGnvUt0QeY2pj69LKZgiYf9hZBoVpKXxVmFWWl+iIXSEX6QHkyESqhMMSY AV6g== X-Gm-Message-State: AN3rC/6lA011W5Dwc/UG1b5j5+bMdZvx/k8Y2jHL1wNX5nDUYRfY36MN ijy0cqYG456fMaV+jtg2Xsl9inD4VJ9hZhA= X-Received: by 10.28.105.8 with SMTP id e8mr14936253wmc.122.1491916423124; Tue, 11 Apr 2017 06:13:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.171.91 with HTTP; Tue, 11 Apr 2017 06:13:42 -0700 (PDT) In-Reply-To: References: From: Ben Woods Date: Tue, 11 Apr 2017 21:13:42 +0800 Message-ID: Subject: Re: interface down, console output: igb3: TX(7) desc avail = 41, pidx = 308 To: Kevin Bowling 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, 11 Apr 2017 13:13:45 -0000 On 2 April 2017 at 16:04, Kevin Bowling wrote: > Sean Bruno committed a couple fixes to the watchdog code this week that > should at least allow for a usable TSO although the frequency of the > watchdog events is still cause for concern. It seems some timeouts are > part of Intel's expectations during normal operations for several chipsets. > > If you could share which exact NIC chipset you have I will check the > datasheets and see if we're missing anything. > > Hi Kevin, Thanks for the reply. More details about my chipset below. $ dmesg | grep igb3 igb3: port 0x3020-0x303f mem 0xdfec0000-0xdfedffff,0xdff28000-0xdff2bfff irq 19 at device 20.1 on pci0 igb3: attach_pre capping queues at 8 igb3: using 1024 tx descriptors and 1024 rx descriptors igb3: msix_init qsets capped at 8 igb3: pxm cpus: 8 queue msgs: 9 admincnt: 1 igb3: using 8 rx queues 8 tx queues igb3: Using MSIX interrupts with 9 vectors igb3: allocated for 8 tx_queues igb3: allocated for 8 rx_queues igb3: Ethernet address: 00:08:a2:09:3c:75 igb3: netmap queues/slots: TX 8/1024, RX 8/1024 igb3: promiscuous mode enabled igb3: link state changed to UP $ pciconf -lvv | grep igb3 -A4 igb3@pci0:0:20:1: class=0x020000 card=0x1f418086 chip=0x1f418086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Ethernet Connection I354' class = network subclass = ethernet Regards, Ben -- From: Benjamin Woods woodsb02@gmail.com From owner-freebsd-net@freebsd.org Tue Apr 11 15:13:32 2017 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 3719FD39A21 for ; Tue, 11 Apr 2017 15:13:32 +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 F22C8920 for ; Tue, 11 Apr 2017 15:13:31 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from [192.168.0.6] (97-123-4-62.albq.qwest.net [97.123.4.62]) (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 31F731928AC for ; Tue, 11 Apr 2017 15:13:24 +0000 (UTC) Subject: Re: interface down, console output: igb3: TX(7) desc avail = 41, pidx = 308 To: freebsd-net@freebsd.org References: From: Sean Bruno Message-ID: <87a6b7f7-5f4f-6d5b-11a2-a006944a9b39@freebsd.org> Date: Tue, 11 Apr 2017 09:13:19 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PBPGn6sC3F3W7UXORSfNkDh7Dvm5sOGnK" 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, 11 Apr 2017 15:13:32 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --PBPGn6sC3F3W7UXORSfNkDh7Dvm5sOGnK Content-Type: multipart/mixed; boundary="KFPOdL8SNhbmA4ACPQS9cvdc8CdnTv13p"; protected-headers="v1" From: Sean Bruno To: freebsd-net@freebsd.org Message-ID: <87a6b7f7-5f4f-6d5b-11a2-a006944a9b39@freebsd.org> Subject: Re: interface down, console output: igb3: TX(7) desc avail = 41, pidx = 308 References: In-Reply-To: --KFPOdL8SNhbmA4ACPQS9cvdc8CdnTv13p Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 03/24/17 19:33, Ben Woods wrote: > Morning! >=20 > Since my recent update from FreeBSD12-current r313908 to r315466, I hav= e > noticed some strange behaviour with one of my network interfaces. >=20 > The interface seems to work fine for a day or so, but on a number of > occasions I have found it to be down, and constantly outputting the > following message to the console every few seconds: > igb3: TX(7) desc avail =3D 41, pidx =3D 308 > igb3: TX(7) desc avail =3D 41, pidx =3D 308 > igb3: TX(7) desc avail =3D 41, pidx =3D 308 > ... >=20 > The problem is quickly worked around by issuing the following commands:= > # service netif stop igb3 > # service netif start igb3 >=20 > Details of this particular network interface card: > $ pciconf -lv | grep igb3 -A4 > igb3@pci0:0:20:1: class=3D0x020000 card=3D0x1f418086 chip=3D0x1f418086 = rev=3D0x03 > hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'Ethernet Connection I354' > class =3D network > subclass =3D ethernet >=20 > Any ideas what this could be, or how to investigate further? >=20 > Regards, > Ben >=20 > -- > From: Benjamin Woods > woodsb02@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" >=20 Ben: What kind of workload is this machine processing? I'd like to try and duplicate this failure if possible. sean --KFPOdL8SNhbmA4ACPQS9cvdc8CdnTv13p-- --PBPGn6sC3F3W7UXORSfNkDh7Dvm5sOGnK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEEuq1GMucSHejSCZfdEgHvyh5yfmQFAljs8pNfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEJB QUQ0NjMyRTcxMjFERThEMjA5OTdERDEyMDFFRkNBMUU3MjdFNjQACgkQEgHvyh5y fmRelQf/cgBUbi01H9wogqvB7PqKiK+1j3EHTkaju+S57fRhj5H3GcgUjbFItWhy ZIvUoHRYM+PxtGW4ZApsMuZyT9mEG1GO+YTe5imEwKSREq1Gq7lgRxDjaWTexlLB dKk6mxTz/W6RqhgjQKAARHNCjG9q/Wy35c5gvmPqn8it9fhmWMDqKyR70vWWudsP kaRsqEAR2b0+hmtPojClrAKBkLetdxLm1+w7+/6beZd0sLHkDoZ1eKQr3ypiN3OJ kpYe/AVlEiTM4FFDgY3ePnnxTyOef6ERGolLMqTomvKwLKzq7AkVYdRaFsto7lVz e8dw5unugV3xBIT0ypXgVSgH1qeviw== =018O -----END PGP SIGNATURE----- --PBPGn6sC3F3W7UXORSfNkDh7Dvm5sOGnK-- From owner-freebsd-net@freebsd.org Tue Apr 11 15:39:33 2017 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 DD4BBD39558 for ; Tue, 11 Apr 2017 15:39:33 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::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 6A42DB3A; Tue, 11 Apr 2017 15:39:33 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-wm0-x235.google.com with SMTP id o81so66769222wmb.1; Tue, 11 Apr 2017 08:39:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=sEHT0nKK/lmwRVhz3A7wcEHwPNzrq1JraJV///Bvmzg=; b=gz+OCINJQ8mqqF6wGA0LlqCF+dhwBBzmsNyN5HSR3ie91VpWQwlJo9hgd9GjWBNOUK gE1vGH8vpto/aWTwskDKVNs6/R6k6cDfvPh6DX98QukhCGJow7Wa4c9dZwZ8O6eBJRJb tCeEBvgougi4Iu3KOP8SfKUYbfDOLBY5QLsReKazG5lU0DxZZHx7EuFfSTVJKpF2uBSQ 7sELbxtMsKs6BkIva+VDYZs79NSGySwWUSerUxoMYW7YArd5UsxenxvDM2mgH8Hacmfn we/h7mLi7cNe2qQfFSU34gT02dyA9+XwPajCCiXHgCTy+tfnNNqXJsPJkW8Ddjfor6BN mJOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=sEHT0nKK/lmwRVhz3A7wcEHwPNzrq1JraJV///Bvmzg=; b=ev6EblS75JAx15cxhjqn/4s7M3wH99hp5eRcSb+YKqDjMD6XqqTEn3QTzCtNF1eirV 1g0c8eUV7oxACJBT8mHxf93VbcwQOLC1fjSk/ee/ZmmfDTYtcHYyVdFrw6NZCOa5R1ks QKyEnX1kEqrbT4OkMMmPRIeDe7YuP9gMiTfHZuWkF8u4ZTdBOIcPPjkr/wepY7oM2YMM BOoEgsgqGLTFV0YdrPParHHDM+lLKvs0VE8Jpa/xydQKZ9Sw+KMfnzfBu+8S25wW8XFn lRA0WMLnvO+tYeOUn5xN/FXD33qKX8tUfyE6EHMCNJ2VAFSZtUAXjrhGilaTveNVyvZw Wy0A== X-Gm-Message-State: AN3rC/4lVMr/JlXlOZqZtZ+CE7nKxTIygcD3p+oJwRNeFaoGoRABPXsZ F7laUrHxFJ62epTgPL8EVjRHO4eD07f27Xa55g== X-Received: by 10.28.143.71 with SMTP id r68mr16267637wmd.61.1491925170566; Tue, 11 Apr 2017 08:39:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.171.91 with HTTP; Tue, 11 Apr 2017 08:39:30 -0700 (PDT) In-Reply-To: <87a6b7f7-5f4f-6d5b-11a2-a006944a9b39@freebsd.org> References: <87a6b7f7-5f4f-6d5b-11a2-a006944a9b39@freebsd.org> From: Ben Woods Date: Tue, 11 Apr 2017 23:39:30 +0800 Message-ID: Subject: Re: interface down, console output: igb3: TX(7) desc avail = 41, pidx = 308 To: Sean Bruno 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, 11 Apr 2017 15:39:34 -0000 > > Ben: > > What kind of workload is this machine processing? I'd like to try and > duplicate this failure if possible. > > sean > > Hi Sean, It is a Netgate RCC-VE-8860 running as my home firewall. https://netgate.com/docs/rcc-ve-8860/quick-start-guide.html I am running FreeBSD 12-current r315466, using pf, dnsmasq, powerd, hostapd, openntpd, nfs_client, vnstat, salt_minion, ng_netflow, and ppp as a pppoe client. The latter 2 are only running on the WAN interface igb1. I have igb0, igb2, igb3, igb4 and wlan0 bridged together, with a static ip as my LAN gateway assigned to bridge0. I am seeing the error on igb3, which is the interface connected to my desktop PC (dual booted Windows and FreeBSD). $ dmesg -a | grep "Intel(R)" CPU: Intel(R) Atom(TM) CPU C2758 @ 2.40GHz (2400.06-MHz K8-class CPU) igb0: port 0x1000-0x101f mem 0xdfc00000-0xdfc1ffff,0xdfc20000-0xdfc23fff irq 18 at device 0.0 on pci3 igb1: port 0x2000-0x201f mem 0xdfd00000-0xdfd1ffff,0xdfd20000-0xdfd23fff irq 19 at device 0.0 on pci4 igb2: port 0x3000-0x301f mem 0xdfea0000-0xdfebffff,0xdff24000-0xdff27fff irq 18 at device 20.0 on pci0 igb3: port 0x3020-0x303f mem 0xdfec0000-0xdfedffff,0xdff28000-0xdff2bfff irq 19 at device 20.1 on pci0 igb4: port 0x3040-0x305f mem 0xdfee0000-0xdfefffff,0xdff2c000-0xdff2ffff irq 20 at device 20.2 on pci0 igb5: port 0x3060-0x307f mem 0xdff00000-0xdff1ffff,0xdff30000-0xdff33fff irq 21 at device 20.3 on pci0 $ pciconf -lv | grep -i net -B2 igb2@pci0:0:20:0: class=0x020000 card=0x1f418086 chip=0x1f418086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Ethernet Connection I354' class = network subclass = ethernet igb3@pci0:0:20:1: class=0x020000 card=0x1f418086 chip=0x1f418086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Ethernet Connection I354' class = network subclass = ethernet igb4@pci0:0:20:2: class=0x020000 card=0x1f418086 chip=0x1f418086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Ethernet Connection I354' class = network subclass = ethernet igb5@pci0:0:20:3: class=0x020000 card=0x1f418086 chip=0x1f418086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Ethernet Connection I354' class = network subclass = ethernet -- ath0@pci0:1:0:0: class=0x028000 card=0x3099168c chip=0x002a168c rev=0x01 hdr=0x00 vendor = 'Qualcomm Atheros' device = 'AR928X Wireless Network Adapter (PCI-Express)' class = network igb0@pci0:3:0:0: class=0x020000 card=0x00008086 chip=0x15398086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'I211 Gigabit Network Connection' class = network subclass = ethernet igb1@pci0:4:0:0: class=0x020000 card=0x00008086 chip=0x15398086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'I211 Gigabit Network Connection' class = network subclass = ethernet Regards, Ben -- From: Benjamin Woods woodsb02@gmail.com From owner-freebsd-net@freebsd.org Tue Apr 11 22:16:42 2017 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 36029D3A063 for ; Tue, 11 Apr 2017 22:16:42 +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 067B5D77 for ; Tue, 11 Apr 2017 22:16:41 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from [192.168.0.6] (97-123-4-62.albq.qwest.net [97.123.4.62]) (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 03EC51928AC; Tue, 11 Apr 2017 22:16:39 +0000 (UTC) Subject: Re: interface down, console output: igb3: TX(7) desc avail = 41, pidx = 308 To: Ben Woods Cc: freebsd-net References: <87a6b7f7-5f4f-6d5b-11a2-a006944a9b39@freebsd.org> From: Sean Bruno Message-ID: Date: Tue, 11 Apr 2017 16:16:36 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5rLQhV4OcrlNhbSknJe2fv2UDaOaJD8pl" 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, 11 Apr 2017 22:16:42 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --5rLQhV4OcrlNhbSknJe2fv2UDaOaJD8pl Content-Type: multipart/mixed; boundary="rG4lT5B85BeSJAdE0xsKBA5eq28bQrISG"; protected-headers="v1" From: Sean Bruno To: Ben Woods Cc: freebsd-net Message-ID: Subject: Re: interface down, console output: igb3: TX(7) desc avail = 41, pidx = 308 References: <87a6b7f7-5f4f-6d5b-11a2-a006944a9b39@freebsd.org> In-Reply-To: --rG4lT5B85BeSJAdE0xsKBA5eq28bQrISG Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 04/11/17 09:39, Ben Woods wrote: > Ben: >=20 > What kind of workload is this machine processing? I'd like to try = and > duplicate this failure if possible. >=20 > sean >=20 >=20 > Hi Sean, >=20 > It is a Netgate RCC-VE-8860 running as my home firewall. > https://netgate.com/docs/rcc-ve-8860/quick-start-guide.html Ok, so *a lot* of packet forwarding? sean >=20 > I am running FreeBSD 12-current r315466, using pf, dnsmasq, powerd, > hostapd, openntpd, nfs_client, vnstat, salt_minion, ng_netflow, and ppp= > as a pppoe client. > The latter 2 are only running on the WAN interface igb1. > I have igb0, igb2, igb3, igb4 and wlan0 bridged together, with a static= > ip as my LAN gateway assigned to bridge0. >=20 > I am seeing the error on igb3, which is the interface connected to my > desktop PC (dual booted Windows and FreeBSD). >=20 > $ dmesg -a | grep "Intel(R)" > CPU: Intel(R) Atom(TM) CPU C2758 @ 2.40GHz (2400.06-MHz K8-class CPU)= > igb0: port 0x1000-0x101f= > mem 0xdfc00000-0xdfc1ffff,0xdfc20000-0xdfc23fff irq 18 at device 0.0 on= pci3 > igb1: port 0x2000-0x201f= > mem 0xdfd00000-0xdfd1ffff,0xdfd20000-0xdfd23fff irq 19 at device 0.0 on= pci4 > igb2: port 0x3000-0x301f= > mem 0xdfea0000-0xdfebffff,0xdff24000-0xdff27fff irq 18 at device 20.0 o= n > pci0 > igb3: port 0x3020-0x303f= > mem 0xdfec0000-0xdfedffff,0xdff28000-0xdff2bfff irq 19 at device 20.1 o= n > pci0 > igb4: port 0x3040-0x305f= > mem 0xdfee0000-0xdfefffff,0xdff2c000-0xdff2ffff irq 20 at device 20.2 o= n > pci0 > igb5: port 0x3060-0x307f= > mem 0xdff00000-0xdff1ffff,0xdff30000-0xdff33fff irq 21 at device 20.3 o= n > pci0 >=20 >=20 > $ pciconf -lv | grep -i net -B2 > igb2@pci0:0:20:0: class=3D0x020000 card=3D0x1f418086 chip=3D0x1f4180= 86 > rev=3D0x03 hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'Ethernet Connection I354' > class =3D network > subclass =3D ethernet > igb3@pci0:0:20:1: class=3D0x020000 card=3D0x1f418086 chip=3D0x1f4180= 86 > rev=3D0x03 hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'Ethernet Connection I354' > class =3D network > subclass =3D ethernet > igb4@pci0:0:20:2: class=3D0x020000 card=3D0x1f418086 chip=3D0x1f4180= 86 > rev=3D0x03 hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'Ethernet Connection I354' > class =3D network > subclass =3D ethernet > igb5@pci0:0:20:3: class=3D0x020000 card=3D0x1f418086 chip=3D0x1f4180= 86 > rev=3D0x03 hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'Ethernet Connection I354' > class =3D network > subclass =3D ethernet > -- > ath0@pci0:1:0:0: class=3D0x028000 card=3D0x3099168c chip=3D0x002a168= c > rev=3D0x01 hdr=3D0x00 > vendor =3D 'Qualcomm Atheros' > device =3D 'AR928X Wireless Network Adapter (PCI-Express)' > class =3D network > igb0@pci0:3:0:0: class=3D0x020000 card=3D0x00008086 chip=3D0x1539808= 6 > rev=3D0x03 hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'I211 Gigabit Network Connection' > class =3D network > subclass =3D ethernet > igb1@pci0:4:0:0: class=3D0x020000 card=3D0x00008086 chip=3D0x1539808= 6 > rev=3D0x03 hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'I211 Gigabit Network Connection' > class =3D network > subclass =3D ethernet >=20 >=20 > Regards, > Ben >=20 > -- > From: Benjamin Woods > woodsb02@gmail.com --rG4lT5B85BeSJAdE0xsKBA5eq28bQrISG-- --5rLQhV4OcrlNhbSknJe2fv2UDaOaJD8pl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEEuq1GMucSHejSCZfdEgHvyh5yfmQFAljtVcRfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEJB QUQ0NjMyRTcxMjFERThEMjA5OTdERDEyMDFFRkNBMUU3MjdFNjQACgkQEgHvyh5y fmSo6wgAjGsFAJyTqRWbiopg0za65j7ngaZ4/+e86NmMis6Q3OosC+hoE20DMm/U 9VJb+uDEllQ9oFXRdqsWlefHArQU5zsCR20hqLGNmUiUeJFzJ9n8wcsNQPBcKkkI mQemUutSbU8ktNanG7/X1Vm3yWknp19EZCcEV3VSaDbF8I2Ez1UexrUShJf3D0Zb AA3zRqs/3vLYW3FyWCiNY/KUtlQRhlGUIse3JgapQbtYX5WIcEUbm3tPYnvTLVeC nFN38EGhp/KAEhIzuWsqS0tzDveAozNLfqNXy/V3bBTSGptRRoAtq4LioUwn7gl0 4GePBj4LRuQfqiHPWN/cZj/xvtbXsw== =YrSj -----END PGP SIGNATURE----- --5rLQhV4OcrlNhbSknJe2fv2UDaOaJD8pl-- From owner-freebsd-net@freebsd.org Tue Apr 11 22:25:14 2017 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 E34E4D3A31C for ; Tue, 11 Apr 2017 22:25: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 D2B0B2C3 for ; Tue, 11 Apr 2017 22:25: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 v3BMPDhD051684 for ; Tue, 11 Apr 2017 22:25:14 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 131876] [socket] FD leak by receiving SCM_RIGHTS by recvmsg with small control message buffer Date: Tue, 11 Apr 2017 22:25:14 +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: 6.4-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to cc 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: Tue, 11 Apr 2017 22:25:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D131876 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|rwatson@FreeBSD.org |freebsd-net@FreeBSD.org CC| |markj@FreeBSD.org Status|In Progress |Open --- Comment #3 from Mark Johnston --- It looks to me as though the loop in kern_recvit() which sets MSG_CTRUNC ne= eds to use dom_dispose to ensure that the remaining rights are closed before the mbuf is freed. Unfortunately, dom_dispose wants a socket rather than an mbuf - this= was changed in r285522 to fix a race between unp_dispose() and unp_gc(). Howeve= r, in this case the truncated mbuf will have already been removed from the soc= ket buffer, so we don't need to worry about the race. (If MSG_PEEK is set, the rights will still be present in the sockbuf and we needn't do anything.) So, to fix this we'd either need a way to invoke dom_dispose on a plain mbuf (i.e., the KPI prior to r285522), or we need to fake up a socket like sorflush() does. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Apr 12 02:04:58 2017 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 94B5CD39CAC for ; Wed, 12 Apr 2017 02:04:58 +0000 (UTC) (envelope-from dreadiscool@gmail.com) Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2A5679AD for ; Wed, 12 Apr 2017 02:04:58 +0000 (UTC) (envelope-from dreadiscool@gmail.com) Received: by mail-wm0-x22e.google.com with SMTP id u2so13147230wmu.0 for ; Tue, 11 Apr 2017 19:04:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=TwPPiOo0rgXlkJhivGVhyVud6CYAcRJkdDpe0PCQzpo=; b=Pp8dha/R8nVn5nk1YoTCp+XJgAbKeEm4C/HVRIRqVO01gn3T+nLwAU27ys1NGgp4ql 4LR4TtPwEoQoqmsgZfJaRNWLBYOQYoNLCe7Xh05ZnI3q5B0jwYQS56x7qZQMPsIMrRxD ix4PpzeE1KNEuA8GgNLkyHSIfQacgW9N40VjMdlYke5zRvNkZRknooNl9OeiIfYtX+YG CfJ2vls81bSZ1ZiZEE7LVx8l6p462f3H4tCJIjVcwBua+2FSnMVbb1Tgp0kSohb0Dm+Y bLGb4vSRST9BCKSP4ylDUwAp7GE1RXpvyJ0ClaX22dVgbtrIWFQtXD7XrWslD7eyvF9U zGlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=TwPPiOo0rgXlkJhivGVhyVud6CYAcRJkdDpe0PCQzpo=; b=nCX3LGiR5VVpEYIPZI3bl8EDJ00Pjz53WchE/XEOcaaSJp6e6fBGa/mzckWf3rrbeH HHjgCm0dNK3WRrLCQmWOhxmWVuKnO566ua5qldfyxAd3u9XVBs/9K9Db7XeOIFp8l0GL V/c1cy1207cLOjr2LYv80v5rrex14Z7WjjbFMRqlks+CZx7kTsViQQ95MafEi38Af6FK 9kjBQHQe1GhScsvkx9p/e+RUdwqIlRYnTUxTYJVkbqafPB2MLyKN/BnWnxoDeSP2+Ld7 3jrthuQpg8eQQeaYKP6NRJNRDzYHFOUVNuqpbdvAKhp/eeN2aqPxaFnsp0FwhhCESCFg WIew== X-Gm-Message-State: AN3rC/5kO8l8ehiTiJmpWUgyT3vBQUYPvTbXK8Ve6tmPKs2oWX5UC/BVNXhTNbDKFpVoBmZAHhpfVtpqWmuDBw== X-Received: by 10.28.184.73 with SMTP id i70mr426404wmf.104.1491962694954; Tue, 11 Apr 2017 19:04:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.165.68 with HTTP; Tue, 11 Apr 2017 19:04:54 -0700 (PDT) In-Reply-To: References: From: Paras Jha Date: Tue, 11 Apr 2017 22:04:54 -0400 Message-ID: Subject: Re: Netmap pipe zero-copy with NIC buffer? To: Vincenzo Maffione 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: Wed, 12 Apr 2017 02:04:58 -0000 Apologies, by KB I meant kernel bypass, since it is possible to open a netmap port without bypassing the kernel. I didn't know if this would affect it or not. On Sun, Apr 9, 2017 at 3:20 AM, Vincenzo Maffione wrote: > Hi, > Yes, when you nm_open("netmap:em3{2", ...), you're opening a netmap pipe > in the same netmap memory area as the one used by nm_open("netmap:em3", > ...). > As a result, you can zero-copy packets from NIC rings to pipe rings. > > What do you mean by "KB mode"? > > Cheers, > Vincenzo > > 2017-04-08 19:56 GMT+02:00 Paras Jha : > >> Hi all, >> >> Is it possible to have a netmap pipe share memory with a netmap port >> opened >> in KB mode for zero-copy purposes? >> >> All the best >> _______________________________________________ >> 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" >> > > > > -- > Vincenzo Maffione > From owner-freebsd-net@freebsd.org Wed Apr 12 07:50:55 2017 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 B4D07D3BEF0 for ; Wed, 12 Apr 2017 07:50:55 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: from mail-oi0-x233.google.com (mail-oi0-x233.google.com [IPv6:2607:f8b0:4003:c06::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 786F8BEF for ; Wed, 12 Apr 2017 07:50:55 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: by mail-oi0-x233.google.com with SMTP id g204so22899294oib.1 for ; Wed, 12 Apr 2017 00:50:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=b8qWAt0pwNNXA2baqbvzhC24H6m9FEj1kohBswnwg1s=; b=lFIYjzyeF2BM48kCidPt+r/DrpIOT36/K8gCNf+krgKFe1IhBfTUJhPDMoFQdXaVEk 7SnMZ/znAHHC5Iv6lKODWcIwESF5ycOZxwyHFc1qbB2C8/LSIUD2kWTbK5/jYClTv6B/ BEz5GQ6kSVF8Dt0vJotd57Tr5iwBt4ngCZeXvqgyhAxeVpewGYzAX8X5LRxmRRxdGAr3 P0C14XSPmOyFWKYG00M6AOMvlzZ+LGLzUI9rmDql5lB2nj6wRNNiCgDmY//DIZwx9Py7 HPECBnas9mDkcSVXCLyKAz0m30/8OfcxHyzR06hC3DG8X+29G1ngV3eYX3wiOmuxIMDr HIiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=b8qWAt0pwNNXA2baqbvzhC24H6m9FEj1kohBswnwg1s=; b=mpBS6S3NG2yBjv2LE7CexCluLz14fYD1n1ndLK8uTw4xQIutssokPuapH56OqO6QwO D8ZVqmMnxF/lt1XWAie64hVfoLPLNMnUSmdzM+egUe+q9Wu5NpKHySK/YeZgPdt0A3F7 E+CfbsjwKhBNIjlXtBo5sgmwpZIcj777ygnKF7oN5AQPVBYaowVSWTRlLT1yOtzAIsTX ufRtDTeSCHwjYuB6zq+tdkOHr1COJBUjDbAYXq+EU/XTukeONftRnJdtHSxAMlE/uac6 Ojgr+13sJER679Z/1Pv5ABzKsWok1WMaTocwBX2CeAIUKs29ZmH9H0yoQlniEv+Gl2/L PPtw== X-Gm-Message-State: AN3rC/4T3eC2AK+uZAqWbQ0rTPbyrm6ytXSTajgr+PAPy7eAmvuFBVnhmD/CBbVHakLjR1WyAH+9OFu027q4uw== X-Received: by 10.202.204.193 with SMTP id c184mr17096217oig.104.1491983454766; Wed, 12 Apr 2017 00:50:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.1.134 with HTTP; Wed, 12 Apr 2017 00:50:54 -0700 (PDT) In-Reply-To: References: From: Vincenzo Maffione Date: Wed, 12 Apr 2017 09:50:54 +0200 Message-ID: Subject: Re: Netmap pipe zero-copy with NIC buffer? To: Paras Jha 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: Wed, 12 Apr 2017 07:50:55 -0000 netmap applications always bypass the kernel (network stack). There is only a distinction between ports opened in "native" mode and "emulated" mode. If NIC driver doesn't have native netmap support, the legacy driver is internally used by netmap to transmit and receive (and this is called "emulated mode"). In any case (both in native and emulated mode) the netmap application sees netmap rings, and can zerocopy between two rings (in the same memory area) by simply swapping the ring slots. Of course, in emulated mode netmap internally transforms each ring slot into and mbuf and the other way around, possibly requiring a copy. And the whole thing is way slower. But this is unrelated to the zerocopy thing: your application isn't aware of the emulated or native mode and can zerocopy slots between netmap rings. Cheers, Vincenzo 2017-04-12 4:04 GMT+02:00 Paras Jha : > Apologies, by KB I meant kernel bypass, since it is possible to open a > netmap port without bypassing the kernel. I didn't know if this would > affect it or not. > > On Sun, Apr 9, 2017 at 3:20 AM, Vincenzo Maffione > wrote: > >> Hi, >> Yes, when you nm_open("netmap:em3{2", ...), you're opening a netmap >> pipe in the same netmap memory area as the one used by >> nm_open("netmap:em3", ...). >> As a result, you can zero-copy packets from NIC rings to pipe rings. >> >> What do you mean by "KB mode"? >> >> Cheers, >> Vincenzo >> >> 2017-04-08 19:56 GMT+02:00 Paras Jha : >> >>> Hi all, >>> >>> Is it possible to have a netmap pipe share memory with a netmap port >>> opened >>> in KB mode for zero-copy purposes? >>> >>> All the best >>> _______________________________________________ >>> 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" >>> >> >> >> >> -- >> Vincenzo Maffione >> > > -- Vincenzo Maffione From owner-freebsd-net@freebsd.org Wed Apr 12 15:20:11 2017 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 4393ED3B69E for ; Wed, 12 Apr 2017 15:20:11 +0000 (UTC) (envelope-from dreadiscool@gmail.com) Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (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 CB8B3B78 for ; Wed, 12 Apr 2017 15:20:10 +0000 (UTC) (envelope-from dreadiscool@gmail.com) Received: by mail-wm0-x231.google.com with SMTP id t189so26881948wmt.1 for ; Wed, 12 Apr 2017 08:20:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=84bLY32JpeZqnOFtST2mNYUIT80EfiGUvCpUKg+SkSA=; b=Q+utpSghU9A99an4BiLIOSzr4W4ZY8hRPraTgR8iF6txAsV6YCEdQXLAqUNVHm/R6P ubj5YEsNuvqpQrSTEIgiOTdCP1JwxpC7cKYdBjcAVwqlyEAaz+/2RTctZ5HJm8CnZLZI zghzxaqJ/ZJucGUknO3whbMNPTlZy7yFb3T075hWxWO7r5TaE/3ysx2rwGXsJBwDVhqc nAqauObSHQ0t39/3B2pqXr5t2mvpXXtU6RtlAMfDpKmkwhUoMzV1W7pew4lG8LxQPxO6 Dajk3B7GuierpnI70JDARn+aM+qVHLYhplILGzmZW7ySYCezzXugqb5WJO8vfUJa4gYz Vixg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=84bLY32JpeZqnOFtST2mNYUIT80EfiGUvCpUKg+SkSA=; b=PceDPkXEHrh5B2YC/29o/OBpU98mKpzP9uZVwXmzpQmvF2+5UrK975XQRvw/AIoMjQ ucwAJI8ypbNYDrfbRtFRurhYNPBeSQl96ISgJgHpX1xW+LLvKTDy2Eq/JTdgAInhDU4X l3Rz5tbSY330pnd9tU7ZT4iP/3wa1WiF/4qWm5i3YojLjCsjJyQGU/EUHTljTWjDu3Au PpZ4/8fDP3ycwnvtQcDtaazSqTfTWAjcA8WKC8A6F7NrpSz2+61BwL8O4/9RGnORH5jl Cxxg7Z8aAup04lbY0xxlSZtqIz8bBnc+GqCd7QP/gGk4pqa2fZrYMM3l9UQJJALDFWev R9Mw== X-Gm-Message-State: AN3rC/4LtW9OLTCBZA95TuSwGyYLmQjEPIItuLgB/cTVxYVKQ0t/RLMj Bpj/ounQEvvvUm3p/nZh+43uwrrc+Q== X-Received: by 10.28.109.81 with SMTP id i78mr6880556wmc.127.1492010408590; Wed, 12 Apr 2017 08:20:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.165.68 with HTTP; Wed, 12 Apr 2017 08:20:07 -0700 (PDT) In-Reply-To: References: From: Paras Jha Date: Wed, 12 Apr 2017 11:20:07 -0400 Message-ID: Subject: Re: Netmap pipe zero-copy with NIC buffer? To: Vincenzo Maffione 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: Wed, 12 Apr 2017 15:20:11 -0000 Thank you for the clarification! On Wed, Apr 12, 2017 at 3:50 AM, Vincenzo Maffione wrote: > netmap applications always bypass the kernel (network stack). There is > only a distinction between ports opened in "native" mode and "emulated" > mode. > If NIC driver doesn't have native netmap support, the legacy driver is > internally used by netmap to transmit and receive (and this is called > "emulated mode"). > In any case (both in native and emulated mode) the netmap application sees > netmap rings, and can zerocopy between two rings (in the same memory area) > by simply swapping the ring slots. > > Of course, in emulated mode netmap internally transforms each ring slot > into and mbuf and the other way around, possibly requiring a copy. And the > whole thing is way slower. > But this is unrelated to the zerocopy thing: your application isn't aware > of the emulated or native mode and can zerocopy slots between netmap rings. > > Cheers, > Vincenzo > > 2017-04-12 4:04 GMT+02:00 Paras Jha : > >> Apologies, by KB I meant kernel bypass, since it is possible to open a >> netmap port without bypassing the kernel. I didn't know if this would >> affect it or not. >> >> On Sun, Apr 9, 2017 at 3:20 AM, Vincenzo Maffione >> wrote: >> >>> Hi, >>> Yes, when you nm_open("netmap:em3{2", ...), you're opening a netmap >>> pipe in the same netmap memory area as the one used by >>> nm_open("netmap:em3", ...). >>> As a result, you can zero-copy packets from NIC rings to pipe rings. >>> >>> What do you mean by "KB mode"? >>> >>> Cheers, >>> Vincenzo >>> >>> 2017-04-08 19:56 GMT+02:00 Paras Jha : >>> >>>> Hi all, >>>> >>>> Is it possible to have a netmap pipe share memory with a netmap port >>>> opened >>>> in KB mode for zero-copy purposes? >>>> >>>> All the best >>>> _______________________________________________ >>>> 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" >>>> >>> >>> >>> >>> -- >>> Vincenzo Maffione >>> >> >> > > > -- > Vincenzo Maffione > From owner-freebsd-net@freebsd.org Wed Apr 12 16:27:29 2017 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 11EC4D3B12C for ; Wed, 12 Apr 2017 16:27:29 +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 014F8B59 for ; Wed, 12 Apr 2017 16:27:29 +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 v3CGRSm8008691 for ; Wed, 12 Apr 2017 16:27:28 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 215256] FreeBSD 11.0 Problem with natd + carp Date: Wed, 12 Apr 2017 16:27:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dipdill@hotmail.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, 12 Apr 2017 16:27:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215256 --- Comment #2 from Don Randolph --- Has anyone looked into this yet... it is still a problem on 11.0-RELEASE-p9. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Apr 12 18:46:14 2017 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 6240FD3B7D1 for ; Wed, 12 Apr 2017 18:46: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 5235D2E6 for ; Wed, 12 Apr 2017 18:46: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 v3CIkE1v007567 for ; Wed, 12 Apr 2017 18:46:14 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 215256] FreeBSD 11.0 Problem with natd + carp Date: Wed, 12 Apr 2017 18:46:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: eugen@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: Wed, 12 Apr 2017 18:46:14 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215256 Eugene Grosbein changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eugen@freebsd.org --- Comment #3 from Eugene Grosbein --- (In reply to Don Randolph from comment #2) Your problem may be related to this one: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209491 Please try workaround mentioned there - add following rule to your ipfw ruleset: ${fwcmd} add 51 deny ip from any to any out recv ${natd_interface} xmit ${natd_interface} diverted --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Apr 12 21:09:07 2017 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 2B3F6D3B79A for ; Wed, 12 Apr 2017 21:09:07 +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 17C98B03 for ; Wed, 12 Apr 2017 21:09:07 +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 v3CL962u045160 for ; Wed, 12 Apr 2017 21:09:06 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 215256] FreeBSD 11.0 Problem with natd + carp Date: Wed, 12 Apr 2017 21:09:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dipdill@hotmail.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, 12 Apr 2017 21:09:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215256 --- Comment #4 from Don Randolph --- That looks like it has done the trick... thank you so much. Is this going = to be the permanent fix or just a temporary work around? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Thu Apr 13 03:10:54 2017 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 E611CD38B99 for ; Thu, 13 Apr 2017 03:10:54 +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 D61C1E4 for ; Thu, 13 Apr 2017 03:10:54 +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 v3D3AsZJ000535 for ; Thu, 13 Apr 2017 03:10:54 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 215256] FreeBSD 11.0 Problem with natd + carp Date: Thu, 13 Apr 2017 03:10:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: eugen@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: Thu, 13 Apr 2017 03:10:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215256 --- Comment #5 from Eugene Grosbein --- (In reply to Don Randolph from comment #4) That's temporary workaround until Someone(TM) fix the breakage. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Thu Apr 13 03:12:56 2017 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 D4A3AD38F89 for ; Thu, 13 Apr 2017 03:12:56 +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 C467C83C for ; Thu, 13 Apr 2017 03:12:56 +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 v3D3Cuhl029221 for ; Thu, 13 Apr 2017 03:12:56 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 215256] FreeBSD 11.0 Problem with natd Date: Thu, 13 Apr 2017 03:12:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: eugen@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status short_desc 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: Thu, 13 Apr 2017 03:12:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215256 Eugene Grosbein changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|New |Closed Summary|FreeBSD 11.0 Problem with |FreeBSD 11.0 Problem with |natd + carp |natd --- Comment #6 from Eugene Grosbein --- Carp seems unrelated to the problem but a pair of natd instances in the same broadcast domain are. *** This bug has been marked as a duplicate of bug 209491 *** --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Thu Apr 13 03:13:06 2017 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 B506ED38FDA for ; Thu, 13 Apr 2017 03:13:06 +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 A42F08CE for ; Thu, 13 Apr 2017 03:13:06 +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 v3D3D6Mq029604 for ; Thu, 13 Apr 2017 03:13:06 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 218579] Wake on Lan doesn't work for bge NIC driver Date: Thu, 13 Apr 2017 03:13:06 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some 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: Thu, 13 Apr 2017 03:13:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218579 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 Thu Apr 13 03:23:34 2017 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 A39F5D3B41F for ; Thu, 13 Apr 2017 03:23:34 +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 931E8E92 for ; Thu, 13 Apr 2017 03:23:34 +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 v3D3NXnq054396 for ; Thu, 13 Apr 2017 03:23:34 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 218517] ppp fails adding route with error Value too large to be stored in data type Date: Thu, 13 Apr 2017 03:23:34 +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: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some 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: Thu, 13 Apr 2017 03:23:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218517 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 Fri Apr 14 09:43:08 2017 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 20645D3B366 for ; Fri, 14 Apr 2017 09:43: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 0F9FA7DB for ; Fri, 14 Apr 2017 09:43: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 v3E9h4Nm066967 for ; Fri, 14 Apr 2017 09:43:07 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 200221] em0 watchdog timeout under load Date: Fri, 14 Apr 2017 09:43:04 +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: 10.1-RELEASE X-Bugzilla-Keywords: IntelNetworking, needs-qa, patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sbruno@FreeBSD.org X-Bugzilla-Flags: mfc-stable9? mfc-stable10+ X-Bugzilla-Changed-Fields: flagtypes.name 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, 14 Apr 2017 09:43:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D200221 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|mfc-stable10? |mfc-stable10+ --- Comment #25 from Kubilay Kocak --- Merged to stable/10, record appropriately. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Fri Apr 14 11:08:42 2017 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 A4378D3D179 for ; Fri, 14 Apr 2017 11:08: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 888C121D for ; Fri, 14 Apr 2017 11:08: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 v3EB8gsL010405 for ; Fri, 14 Apr 2017 11:08:42 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 218653] Intel e1000 network link drops when running freebsd-update to upgrade from 10.3 to 11.0 Date: Fri, 14 Apr 2017 11:08: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: 10.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to bug_status see_also 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: Fri, 14 Apr 2017 11:08:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218653 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |freebsd-net@FreeBSD.org Status|New |Open See Also| |https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=3D2= 002 | |21 CC| |cperciva@FreeBSD.org, | |marius@FreeBSD.org, | |sbruno@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Fri Apr 14 11:08:44 2017 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 D6EBAD3D192 for ; Fri, 14 Apr 2017 11:08:44 +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 C35DB22C for ; Fri, 14 Apr 2017 11:08: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 v3EB8gsf010405 for ; Fri, 14 Apr 2017 11:08:44 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 200221] em0 watchdog timeout under load Date: Fri, 14 Apr 2017 11:08: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: 10.1-RELEASE X-Bugzilla-Keywords: IntelNetworking, needs-qa, patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sbruno@FreeBSD.org X-Bugzilla-Flags: mfc-stable9? mfc-stable10+ X-Bugzilla-Changed-Fields: see_also 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, 14 Apr 2017 11:08:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D200221 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=3D2= 186 | |53 --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Fri Apr 14 13:35:37 2017 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 4A401D3D8FC for ; Fri, 14 Apr 2017 13:35:37 +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 395EB288 for ; Fri, 14 Apr 2017 13:35:37 +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 v3EDZbPl022549 for ; Fri, 14 Apr 2017 13:35:37 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 218653] Intel e1000 network link drops under high network load Date: Fri, 14 Apr 2017 13:35:37 +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-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@t.lastninja.net X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc 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, 14 Apr 2017 13:35:37 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218653 nn changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Intel e1000 network link |Intel e1000 network link |drops when running |drops under high network |freebsd-update to upgrade |load |from 10.3 to 11.0 | --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Fri Apr 14 13:41:31 2017 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 43D32D3DA3A for ; Fri, 14 Apr 2017 13:41:31 +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 33B9B692 for ; Fri, 14 Apr 2017 13:41:31 +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 v3EDfUB8033021 for ; Fri, 14 Apr 2017 13:41:31 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 218653] Intel e1000 network link drops under high network load Date: Fri, 14 Apr 2017 13:41:31 +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-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@t.lastninja.net X-Bugzilla-Status: Open 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, 14 Apr 2017 13:41:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218653 --- Comment #1 from nn --- Further investigation and it happens during any kind of network load activi= ty, usually when traffic goes beyond 10Mbps. So this happen when using portsnap, pkg install, etc. I have also disabled tso4 and vlanhwtso. I think it made things a little mo= re bearable but the issue still persists. # ifconfig em0 em0: flags=3D8843 metric 0 mtu 1500 =20=20=20=20=20=20=20 options=3D209b ether 00:30:48:8b:55:de inet 104.149.6.19 netmask 0xfffffff0 broadcast 104.149.6.31=20 nd6 options=3D29 media: Ethernet autoselect (1000baseT ) status: active [root@armakuni ~]# netstat -I em0 Name Mtu Network Address Ipkts Ierrs Idrop Opkts O= errs Coll em0 1500 00:30:48:8b:55:de 88189 476 0 49789 = 5 0 em0 - 104.x.x.16/ xxx.xxx 86581 - - 50046 = - - --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Fri Apr 14 13:45:30 2017 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 596E5D3DC8D for ; Fri, 14 Apr 2017 13:45: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 49398A19 for ; Fri, 14 Apr 2017 13:45: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 v3EDjT4d043779 for ; Fri, 14 Apr 2017 13:45:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 218653] Intel e1000 network link drops under high network load Date: Fri, 14 Apr 2017 13:45: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: 10.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@t.lastninja.net X-Bugzilla-Status: Open 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, 14 Apr 2017 13:45:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218653 --- Comment #2 from nn --- Apologies, I forgot to mention. I was able to upgrade to 11.0-RELEASE after running the freebsd-update about 30 or so times -- I ended up getting lucky where the network connection didn't drop, and was able to continue with the upgrade. The above comments about disabling tso4/vlanhwtso was in the 11.0 release. Therefore the em0 watchdog timer under network load issue seems to persist = even though bug 200221 resolved it for 10.3. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Fri Apr 14 13:56:59 2017 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 E21CDD3D070 for ; Fri, 14 Apr 2017 13:56: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 D0BB5F3F for ; Fri, 14 Apr 2017 13:56: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 v3EDuw22068017 for ; Fri, 14 Apr 2017 13:56:59 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 218653] Intel e1000 network link drops under high network load Date: Fri, 14 Apr 2017 13:56:59 +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-RELEASE X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: mfc-stable10? mfc-stable11? X-Bugzilla-Changed-Fields: version keywords flagtypes.name 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, 14 Apr 2017 13:57:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218653 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Version|10.3-RELEASE |11.0-RELEASE Keywords| |needs-qa Flags| |mfc-stable10?, | |mfc-stable11? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Fri Apr 14 15:11:08 2017 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 0F360D3D15F for ; Fri, 14 Apr 2017 15:11:08 +0000 (UTC) (envelope-from Joe@stream-technologies.com) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0083.outbound.protection.outlook.com [104.47.2.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 67B6AC74 for ; Fri, 14 Apr 2017 15:11:06 +0000 (UTC) (envelope-from Joe@stream-technologies.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=streamtechnologiesuk.onmicrosoft.com; s=selector1-streamtechnologies-com01e; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=bHlAdaMAXUeg9TjnxkkBFPjNlhZ2eh/yUS/MqbeD1v0=; b=nK3/NIiurj3O+8T7bbYzcv2ci9WY5y4rBR9tZDBEh4zUhcueR7o23GsZ171jQHa1gsHLouTuwwFUHncGMsAjPeoNDs8Kwup6vlfIXmQhdC+/k2x6FTi5vsVwBvWk4lNSP+wMvtvdM95TskmdF5WKvKSgAYFKIKIA6LKcrbGq5jw= Authentication-Results: freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=stream-technologies.com; Received: from [192.168.6.128] (212.20.240.118) by AM2PR07MB1028.eurprd07.prod.outlook.com (2a01:111:e400:8444::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.5; Fri, 14 Apr 2017 15:11:04 +0000 Subject: Re: cxgbe netmap promiscuous mode? To: Navdeep Parhar References: <58D3C6F4.6010500@stream-technologies.com> <58D521C0.1000804@stream-technologies.com> CC: "freebsd-net@freebsd.org" From: Joe Jones Message-ID: <58F0E683.7050806@stream-technologies.com> Date: Fri, 14 Apr 2017 16:10:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [212.20.240.118] X-ClientProxiedBy: DB6P192CA0019.EURP192.PROD.OUTLOOK.COM (2603:10a6:4:b8::29) To AM2PR07MB1028.eurprd07.prod.outlook.com (2a01:111:e400:8444::25) X-MS-Office365-Filtering-Correlation-Id: 98a19547-8965-4014-b2aa-08d483487862 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:AM2PR07MB1028; X-Microsoft-Exchange-Diagnostics: 1; AM2PR07MB1028; 3:yBlfTQA9mNvcPHvjfKKGqBt/G+TJ0xhtgcGb1PaPJy47wGaNOMRKPTlDPNrVUJDDU/L38dembcp73URuUwK+ooSY4YqimgyV6AwAss6I17zBXladPONGpfIZmVelK7AsmsbonIxNCdd8L2K7E52Qlacdr+m2j/bnquhWbAmuu+pC/+PhIk1vAfmC6FE/jHUeR/PiEpamgCvdHKXFWlv7nK2YoMQk5DqqjGfyRVuxHZbqkwFp9wi9O6ShAx+HX05TtmWyr8i0XE54C2yHvyhh1Llaw68KRYzDnjSjWpEAF2nHeAAsO6wsM0OlATIcycOq+ENr604gKPh2PJ3X/fS6TQ==; 25:gU7ujKpVpn86xTkrNZU8qCEa+ondJ5IwoNKYEtBO81oTVJJhxWZvVZS/ZA3q5dDyBN/tZh9pNW6rXah5lEQWBDmhZxyqL6fqXiJntdJqgHZ717moYqfITWrl0HWv79RaFtqYZdLhHZ3A7HtygWzfp8pkJ2eCpj06hSs/4oWWdUaDgUpFcELsU5K0llTKgc9CsuTnl2HuXW+K651PlZRrH0Gde8YQq+N4mzs/UEmFnST4rdDrMF7mM2lTL6G7TYyDvd5bjMWZrrotLsKCIYaLnNalgSY5Lvjz7ByQFXtudOxvjEWb8kh3p1dIkIYrSNUsovmfuYBKAm5AiBKhnEfJQQxjgNRgl2dpIo5rB9YX27U9kCQ+e+j+OwNwPZWFJ/DbIHpiB1j+ygo/VURgfTfTiDtq7T6EUsZklH6287ubKCsp+pOOSNydWY6l6PxW9rhk2pHJN5hDQnq4bzJ2Nyjpsg== X-Microsoft-Exchange-Diagnostics: 1; AM2PR07MB1028; 31:3V2oMHVjZSm6opaVAxUsvmr7YOyd8gEgT8Vo3BhS1qMg3L5fvWRJ37cc0c1nQOdVy/jrMLieUKGJw3X5AuWph8IOijy19NLiPqXrADHxW+q78aHNWQaeZtcerSaRdZ70547++FDO8lrWthUNUHp1FmsJju9wyhtNgIcJCmWqzJd7Bpvz2MC2NatkoaG5lu+f/dMc+YaKVHElC+eJvZiqFN5GPUnerk0BLGh0jFLpIoUWxfgV1OIz+VEuGUAbydfohdQJHbnCU4zzsHtoBzWFLCiYzQyKgk0yDyywKnPrS0I= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(158342451672863)(20558992708506); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(6072148); SRVR:AM2PR07MB1028; BCL:0; PCL:0; RULEID:; SRVR:AM2PR07MB1028; X-Microsoft-Exchange-Diagnostics: 1; AM2PR07MB1028; 4:/qnb6tPPPrOWjQfNFpv6kPlm7enITfWX0mh+oYkWpVBDq5KoSFMRYJdfQyqF4Bi7SXyTRwZmoe2hiWrkCW/SWB4+04RbQnUyimf6sRqWJrGkpG83+/dZagRAKPrVm5d+Pg0+rc3XaU1wktgZlxlLcsddpLYXkrEIwCVuzOUKhgDD6r5u4sxUGCR2QywCPX6eXCE9d9022kf/eGpAQV7H9gChGMStgwkYLx1IEE+0QBtzdYwaGSi42nWoFAsMN24CZzow3sKYSaJUHMLljrn6itQnlUH5EpqFQGuuQqWkxTej/FHYm/3y4citrqS80YQwcIZUdvE5ATIxPNUSnCNVqRvBaOXxyrQYqs19ko7c1ehW9fC2oborvc1b9169wPyczmb+drOCuKocXz7CHj8bblq4jc5geijulnpYIqTSgVbip9Uf2IdU8Sx2INCjVb0cwA84z3Qxj4GUU3k1JGPstbOegkJ0RZ3ntwXjDZzs2yi5027zund2jg4l9sIl5OiTuJwYfLbwy8k0dXSy+uL1r52XKcRrq7w9X2QuetI08tAVZJqVrJadj2K3ex3NAyKMC8GgtTBZLqiedAu//uRDR0Hm48Qqc6XORhGDjXunyy6tcHHPQ6U78yJtNuObuIt3v43jq5L2YgEZdkdxG1bBNpV5AlWhsTcqKQDRAEYtrUSnDwnFanVFwh6RTOpO3Zpu1aTJzmWifiPqUB3/bt6EUjToaUFlHk8uZNS5PUrUyarOOWO4cY41srz+sbrpbI9UrhOdAgQt8AkjemrhJkx1uDUuv91BmINtygrWYAU9LSQ= X-Forefront-PRVS: 02778BF158 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6049001)(39400400002)(39450400003)(39410400002)(39830400002)(377454003)(24454002)(77096006)(3480700004)(6486002)(189998001)(229853002)(59896002)(33656002)(6666003)(3846002)(80792005)(4001350100001)(65816999)(6916009)(86362001)(2950100002)(36756003)(6116002)(23676002)(76176999)(54356999)(25786009)(230700001)(7736002)(42186005)(50986999)(8676002)(4326008)(305945005)(93886004)(2906002)(50466002)(117156002)(53546009)(5660300001)(1411001)(83506001)(110136004)(38730400002)(6246003)(47776003)(53936002)(81166006)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR07MB1028; H:[192.168.6.128]; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTJQUjA3TUIxMDI4OzIzOllHbHVHOWhoaUlmanNFd1ZxTFZoNTR3Rjdn?= =?utf-8?B?OU1ndTJHMjd4dnBPVFp6dGlMYkZzckVxTUlaOWFoUG40TkV3TjJWUFVUcEx0?= =?utf-8?B?UjdkV1pSNXE0QkppM3RSSnRrTm5yRmJ0Tk0yblRjNFM5eWdNeEhPL0NYbFgr?= =?utf-8?B?WlRVNi9oVndDNWtUa3dGeURhMC9CdnRDaURGazl1VnlnUHhBSCswVzJqS1hL?= =?utf-8?B?d1hRVjEzREk5U1RhaitiMWNaNHM5YU9hcFR5LytzcElwL1NQZkt5MDJ4TTBi?= =?utf-8?B?NDR6dWRyQzM0UHVVRndxTGdhVTBabUkzVTNDbnErQTZETkR3QTE1OU45WHJL?= =?utf-8?B?djdLK01oUGRabHNFcmtmS0tvdWdRUDdSZDI2ZXZ0NGR4QzZRUldUNnVCcGJH?= =?utf-8?B?Zm95ZnVNUjlXMS9oWldSTWFISHc1ZW1BVW9EaG41OWRkRkhUY0VlVTZYNWwr?= =?utf-8?B?cXA5eWRhV25KelJxRGFLTHA1VlpNZ3VOV1cwbU9Mc1ZMR3NmNjh3VkVkU2E1?= =?utf-8?B?OU9VVHNoM3ptbHYvS0ZYRzlLNitia20yQmVWTUluSTNTV2VHTWptb0JBTmNY?= =?utf-8?B?QlBSdmxVU2o2RWdFSCtGUW80RWFOTFdzZElRZVRnRHhKOVRGZXcvM0pBa3I5?= =?utf-8?B?aXpVRVc1elpiaFBDUVdadmhUNmNkL0tBbGZmVlkwKzNVRXNCcUIwNFBoZDVY?= =?utf-8?B?dE91MmhhODZienBFdUlncWtjZkg5c2cyd2FrSjY5NjlDalM0d1c5bTZ2ZTFJ?= =?utf-8?B?cVdKZVQ4ZW5SeEVISkFDdFJPN0Vqb2xkaXVNYmJ3VS80NUdGaG0vbkRkNTA3?= =?utf-8?B?cXpIZ2hVUzdhVkFXMUtVLzA1U242eHhnQ1VBYktlS25RUkpQd2E1cG1NUksz?= =?utf-8?B?TVZNVFV2SFpYQ3BXMkw1RktkRzJ4OHdXSk9wR252anM0K2dJcDVEWGt5MXVk?= =?utf-8?B?anh5ZmRCRlVpTE0ySE1nOE9yZ3JKZDVFQmFOTjB4K3Rtb1AwQm8xdHFQejBW?= =?utf-8?B?KzBTdmd4VkxDeHhURG9ranZDdmk1OWdsdngwMHJKdWFTZCtIOGNkNEMySDB6?= =?utf-8?B?VTlDaVhEQ0NSM2VxWE10Mng5T2VvVzBwY0RrdmxLem8vb21mWlhuQ0hRZDR2?= =?utf-8?B?UndNQlBOV3ZRT1hnSTYyNFBJb2poQ2ExakJoamRSRVh4N0hLYkNiZDNuUlFC?= =?utf-8?B?VWZ6d1NQaURySEEyc252TFlOd0ZjVmZJWTlZcW9nQ3k2VzlUc2gvSDJ1RWZ2?= =?utf-8?B?WlhHSkhKR1ZpVk9KWnhuSlI1ajQ2NHFDNGc4RzV1V2JtdlBzVlc5Q3lyV2tw?= =?utf-8?B?aFhWYzRaL2lpUWVnekNLN3AwTFA5NXQ0RDRsYkE5QUNUREo5cG0xdjVCV2pv?= =?utf-8?B?Zld3NWg2WC9rV2FqUFJKMEpxV2gxWnBQallPZW9GOWpXd3haWi8rYXNvZnpx?= =?utf-8?B?eXd5QkNqVnpMWEs4SGNMMFlMVktlSC8zRFBDOGlTZUhPZ3JvdHNXM3FhWEp5?= =?utf-8?B?cXczME9uUnpwMFJ2cURMZmQxMExPU0dvc1BoakZ4clRXUk1KNlNiblFkbjhm?= =?utf-8?B?eHgyTHBhUXJnUG9GK1BON0JoZjFTMGtPaVd2K0ZlMTViQmRuNmNiOVphUWht?= =?utf-8?B?ZTQxODZNMGFsTTdTOWdDTGhjQkVmZ05haVBjbms3eks2eStPYlZIUDdaeXFa?= =?utf-8?Q?74CrmCsTMZ8EfHokabPQqcUhXwRaAdcdxOEeewG?= X-Microsoft-Exchange-Diagnostics: 1; AM2PR07MB1028; 6:KOAMKrcgVMTVfKF6K0aFOW0y8QBcfBv3hnC1qVUOpAs3WEvhmG6bLo7dIeNDCyQUiptDTmHrk1+7aLNGOQkXHG0knKVPH9MLMvfi+ui8IUrkZPDY41ru4wOb4Htb7689AkR5DTCAhkVD/e7fdLX2WVY5NZQblkWtsaBGw3kOQWnlyWRP07/JoDcyew61bgMtrQf718Nr8x2yf0n+UgGwnL3+HBh0CIWTCJAOMsiqee9Vipv9SnANwcho2MT4fww39JhYDblhOD3FhbVhL5SI49UNp2sDAsdrLhxR6K36tfG69cTRtUvePJ8aWAJKdWARd7QF9YcL7uOfuFDBn9N6tUnVNVp84bBYP+ld+DOXVmWY9PyBuACjMW6LPJKmADrFvJ13xvEl8AZ4fTsNU44Ii3i2ctskga5Vs5ZpdF/5BFEGFahumFZIGFHiRJujMp+4TsBtYuSrURMFwkZttYChGA==; 5:eNdt5poAbAul/kMuxG0rJrk+g1r6w1+680u9Q4+g/2O3lPp1bsTVFNfks09aVDC6DW+PFK6gABie3JffLlMoPOFJk7fO9gpHzCZp+xvj4jFa0soHHVqYx6Qcgbd/PktvESflu9PJM8+JmfizE7S5+LW61JJsddbmiwlixzauY6k=; 24:S75may02Zg3kXYc3TKuTjUCw0/+SyyieFmsbjOjQRGppyEJmR0p5fAHPNoL/Fsymh1wL0VuzGQv/SZgfRwIXxquTP8fNgfxBCagU3WkFa2w= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR07MB1028; 7:cWkdIvLzFtyiuGVcHJD0Vf8J3bE4DNgfJSUqj9QmbJTDrp8uC8gyc+5WmjBp95So9K1THE/gvziNmzlbhlw82Iu6YfVFE4lZ14nuk29RklwnrgIrOuKtDQc/FyH0dk+zdpxG7fd2kgURNH9S6y7SQLDFa3PwLdBkKHf/2AzJMlmKQUoO6fiVFEt6GbBS4giBJUSfdwuMqwH4YNPniQWbn/sFwkiy7C+4cxoFn1cyHf6DNbzrox/OThA+GkNnc8FmxsIDDM4dCM9e3jjRaXE15JkzRfr4LmadlFYbugKR8vuf6Tia+6fmPmQclUiIL1aZV3K491QJzTWoGUpjQxBbGQ== X-OriginatorOrg: stream-technologies.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2017 15:11:04.3938 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR07MB1028 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, 14 Apr 2017 15:11:08 -0000 Hi Navdeep, I think I have found a driver bug. Earlier today I set up the switch I'm using so that two of the ports mirror the traffic on one of the other ports. We are planning on using a similar setup to allow packet tracing without stressing the boxes our application is running on any more then they are already. I connected both ports to one of our cxgbe cards, My intention was to use tcpdump to check that my switch config was doing what I thought it should. I ran ifconfig cxl? promisc -vlanhwtag up on both interfaces, this is what the interfaces looked like cxl0: flags=28943 metric 0 mtu 1500 options=ec07ab ether 00:07:43:33:8a:20 nd6 options=29 media: Ethernet 10Gbase-Twinax status: active vcxl0: flags=8802 metric 0 mtu 1500 options=ec07bb ether 00:07:43:33:8a:22 nd6 options=29 media: Ethernet 10Gbase-Twinax status: active cxl1: flags=28943 metric 0 mtu 1500 options=ec07ab ether 00:07:43:33:8a:28 nd6 options=29 media: Ethernet 10Gbase-Twinax status: active vcxl1: flags=8802 metric 0 mtu 1500 options=ec07bb ether 00:07:43:33:8a:2a nd6 options=29 media: Ethernet 10Gbase-Twinax status: active The interesting thing is, a tcpdump on cxl0 showed all the traffic I expected to see, while tcpdump on cxl1 showed only broadcast traffic. After playing with the switch config to make sure the difference was not on the switch I pulled both patch cables out and into another server with the same card. On the second server I could use tcpdump and see all the traffic I expected on either interface. Then back on the original server, I reloaded the device driver and tried again. Now I got only broadcast on cxl0 and cxl1. Then finally I got all the traffic to show up by doing ifconfig cxl1 -promisc ifconfig cxl1 promisc It would appearer to me that the card can get into a state where ifconfig reports that it is in promiscuous mode when it is not. Joe Jones On 24/03/17 16:44, Navdeep Parhar wrote: > On Fri, Mar 24, 2017 at 6:40 AM, Joe Jones wrote: >> Hello Navdeep, >> >> ... >> >> We were using our own MACs, we can fix the problem by using the mac from the >> vcxl interface. Should we not be able to capture all traffic on the >> interface regardless of what destination MAC it has. > You should, but you'll need to put vcxl in promiscous mode for > that. The command that you posted had cxl in promiscuous mode. As > I said earlier they share the wire but operate as independent network > interfaces otherwise. > > Regards, > Navdeep From owner-freebsd-net@freebsd.org Fri Apr 14 16:32:23 2017 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 862E8D3E2A3 for ; Fri, 14 Apr 2017 16:32:23 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-pf0-x231.google.com (mail-pf0-x231.google.com [IPv6:2607:f8b0:400e:c00::231]) (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 540AD339 for ; Fri, 14 Apr 2017 16:32:23 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: by mail-pf0-x231.google.com with SMTP id 194so3222493pfv.3 for ; Fri, 14 Apr 2017 09:32:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GX/yBmVVIt77clpSZAGDHlGCrrRwdBmYAFRtb9pjbFA=; b=hzw/gZJlqVMTEuGQnEbzEHEQnb1v4jW2sHzyV6kqnG1rf3URwTp56tAgR2+rMH0M3T YWj74S2K/g/xycsmrorZaAGA7y8qVlNR3PjC4gDhQOQw3rnMvj/rZMa2ZYIhvGztkPRf gD432r9hYCDrrsNK5Or835MVUUoRQOATYIBf9ni9bnJSA9dw613iOCX+RpmU8YYh66c9 xdMHsDks5/u9SfROS37PUEx5QN4GtNaGOB/5297mv76ITbQC8dWS0NyOTkBvNf/qhtly SpMTUx+8+UL/mn7DXL688AQ+BXos8kZ2xRhqUTAMRKKwRJNp/a5OTEiHvkAjU3LyKE5N 6Erg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=GX/yBmVVIt77clpSZAGDHlGCrrRwdBmYAFRtb9pjbFA=; b=mvWUbZip8aJoavXQhwpS/rbdbHS1DLCDe/u5kfLr7vdQhSYyQTco7ZM0KSl6J5iD1c m6ZO1mHbo9LuedhyClEHYjtB7qLelcv/sjqOZqh5zoM14JdMP+tPcfyFkHfyvfFouBLw +PYfbiMAwhUvduZEwwlu/6M3hdc81b+geARzftL1AKxEbtgvVGvpj55ORqt+fLszT2aB opEFCoOKxkOY8dnTqK2cwJRMVptbQ9SvTWw1qAJT1wOlHqy7otMXyVi1DUsHJlnSM1Ji N1Noq3+U52cEIYJY+Od593GpKXydonkhQEeHJmUiJs91UIuowVPVx/s5d7lAJW92PNky 11uA== X-Gm-Message-State: AN3rC/5aqr7XVHmuuuPBblmblryEfIFP/wlsrvbPYFdICwe33GNMVuda PEeYMGz9n+ryNtXD X-Received: by 10.84.238.143 with SMTP id v15mr10001725plk.102.1492187542844; Fri, 14 Apr 2017 09:32:22 -0700 (PDT) Received: from ox ([2601:641:c000:b800:201d:8cb6:8467:a85c]) by smtp.gmail.com with ESMTPSA id z123sm4202300pfz.56.2017.04.14.09.32.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Apr 2017 09:32:21 -0700 (PDT) Date: Fri, 14 Apr 2017 09:32:15 -0700 From: Navdeep Parhar To: Joe Jones Cc: "freebsd-net@freebsd.org" Subject: Re: cxgbe netmap promiscuous mode? Message-ID: <20170414163215.GA9358@ox> Mail-Followup-To: Joe Jones , "freebsd-net@freebsd.org" References: <58D3C6F4.6010500@stream-technologies.com> <58D521C0.1000804@stream-technologies.com> <58F0E683.7050806@stream-technologies.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <58F0E683.7050806@stream-technologies.com> User-Agent: Mutt/1.5.24 (2015-08-30) 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, 14 Apr 2017 16:32:23 -0000 On Fri, Apr 14, 2017 at 04:10:59PM +0100, Joe Jones wrote: > Hi Navdeep, > > I think I have found a driver bug. Earlier today I set up the switch I'm > using so that two of the ports mirror the traffic on one of the other ports. > We are planning on using a similar setup to allow packet tracing without > stressing the boxes our application is running on any more then they are > already. > > I connected both ports to one of our cxgbe cards, My intention was to use > tcpdump to check that my switch config was doing what I thought it should. I > ran > > ifconfig cxl? promisc -vlanhwtag up Does the problem occur only if you use this form of ifconfig? Can you please try "ifconfig up" and "ifconfig cxl? promisc" separately and see what happens? Regards, Navdeep > > on both interfaces, this is what the interfaces looked like > > cxl0: flags=28943 > metric 0 mtu 1500 > options=ec07ab > ether 00:07:43:33:8a:20 > nd6 options=29 > media: Ethernet 10Gbase-Twinax > status: active > vcxl0: flags=8802 metric 0 mtu 1500 > options=ec07bb > ether 00:07:43:33:8a:22 > nd6 options=29 > media: Ethernet 10Gbase-Twinax > status: active > cxl1: flags=28943 > metric 0 mtu 1500 > options=ec07ab > ether 00:07:43:33:8a:28 > nd6 options=29 > media: Ethernet 10Gbase-Twinax > status: active > vcxl1: flags=8802 metric 0 mtu 1500 > options=ec07bb > ether 00:07:43:33:8a:2a > nd6 options=29 > media: Ethernet 10Gbase-Twinax > status: active > > The interesting thing is, a tcpdump on cxl0 showed all the traffic I > expected to see, while tcpdump on cxl1 showed only broadcast traffic. After > playing with the switch config to make sure the difference was not on the > switch I pulled both patch cables out and into another server with the same > card. On the second server I could use tcpdump and see all the traffic I > expected on either interface. > > Then back on the original server, I reloaded the device driver and tried > again. Now I got only broadcast on cxl0 and cxl1. Then finally I got all the > traffic to show up by doing > > ifconfig cxl1 -promisc > ifconfig cxl1 promisc > > It would appearer to me that the card can get into a state where ifconfig > reports that it is in promiscuous mode when it is not. > > > Joe Jones