From owner-freebsd-net@freebsd.org Sun Apr 22 02:11:23 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EA25FFB6B90 for ; Sun, 22 Apr 2018 02:11:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 76B9D75BE5 for ; Sun, 22 Apr 2018 02:11:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 3455AFB6B8D; Sun, 22 Apr 2018 02:11:22 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 21F03FB6B8B for ; Sun, 22 Apr 2018 02:11:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AFBE475BBF for ; Sun, 22 Apr 2018 02:11:21 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id E19D119E30 for ; Sun, 22 Apr 2018 02:11:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3M2BKsx016728 for ; Sun, 22 Apr 2018 02:11:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3M2BKpB016722 for net@FreeBSD.org; Sun, 22 Apr 2018 02:11:20 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227674] [ipfw] [ipv6] ICMPv6 echo replies incorrectly matched by kernel ipfw Date: Sun, 22 Apr 2018 02:11:21 +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.1-STABLE 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: ipfw@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.25 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, 22 Apr 2018 02:11:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227674 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|net@FreeBSD.org |ipfw@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Sun Apr 22 04:52:56 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4D266F8B6BE for ; Sun, 22 Apr 2018 04:52:56 +0000 (UTC) (envelope-from zx1100e1@solo-tek.com) Received: from n6.nabble.com (n6.nabble.com [162.255.23.37]) by mx1.freebsd.org (Postfix) with ESMTP id E419A78665 for ; Sun, 22 Apr 2018 04:52:55 +0000 (UTC) (envelope-from zx1100e1@solo-tek.com) Received: from n6.nabble.com (localhost [127.0.0.1]) by n6.nabble.com (Postfix) with ESMTP id F1DF36B7745F for ; Sat, 21 Apr 2018 21:52:54 -0700 (MST) Date: Sat, 21 Apr 2018 21:52:54 -0700 (MST) From: GPz1100a To: freebsd-net@freebsd.org Message-ID: <1524372774786-0.post@n6.nabble.com> In-Reply-To: References: <2e0525c8-2251-a5f5-45d1-fe44ebe318f7@freebsd.org> <4fee4ea6-9b35-afba-6d5d-24ecca3e28c6@freebsd.org> <3b8d46da-75e3-79f2-379c-b27a88e80733@freebsd.org> <47C0E33A-E815-4860-A25C-F29BBB8D6787@gmail.com> Subject: Re: Need Netgraph Help [fixed] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 22 Apr 2018 04:52:56 -0000 @John Did you ever get this fully figured out? I'm trying to do what I think is the same thing with my fiber internet connection - eliminate the need to use the isp provided gateway (or at least reduce its function). I'm running *opnsense*. This thread https://forum.pfsense.org/index.php?topic=111043.msg793292#msg793292 is what led me here. Three nics correspond to the following em0 - ONT (WAN) xl0 - 3com pci - isp provided residential gateway (RG) ue0 - usb nic - LAN Using Julian's code from Jan 06, 2018; 1:39pm, ngctl mkpeer em0: etf lower downstream ngctl name em0:lower waneapfilter ngctl connect waneapfilter: em0: nomatch upper ngctl mkpeer xl0: etf lower downstream ngctl name xl0:lower laneapfilter ngctl connect laneapfilter: xl0: nomatch upper * ngctl connect waneapfilter laneapfilter eapout eapout* ngctl msg waneapfilter: 'setfilter { matchhook="eapout" ethertype=0x888e }' ngctl msg laneapfilter: 'setfilter { matchhook="eapout" ethertype=0x888e }' When I get to the command in bold it comes back with this error: root@OPNsense:~ # ngctl connect waneapfilter laneapfilter eapout eapout ngctl: send msg: No such file or directory I'm not sure how to proceed from here. Thanks for any help you (or others) can offer. --J -- Sent from: http://freebsd.1045724.x6.nabble.com/freebsd-net-f4005075.html From owner-freebsd-net@freebsd.org Sun Apr 22 21:01:17 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D4325FBD792 for ; Sun, 22 Apr 2018 21:01:16 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 6A4BB760BE for ; Sun, 22 Apr 2018 21:01:16 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2F382FBD78F; Sun, 22 Apr 2018 21:01:16 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E45D9FBD78C for ; Sun, 22 Apr 2018 21:01:15 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8217976094 for ; Sun, 22 Apr 2018 21:01:15 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id D681D2352E for ; Sun, 22 Apr 2018 21:01:14 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3ML1ELB046467 for ; Sun, 22 Apr 2018 21:01:14 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3ML1E6D046466 for net@FreeBSD.org; Sun, 22 Apr 2018 21:01:14 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201804222101.w3ML1E6D046466@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: net@FreeBSD.org Subject: Problem reports for net@FreeBSD.org that need special attention Date: Sun, 22 Apr 2018 21:01:14 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 22 Apr 2018 21:01:17 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- In Progress | 165622 | [ndis][panic][patch] Unregistered use of FPU in k In Progress | 206581 | bxe_ioctl_nvram handler is faulty In Progress | 221146 | [ixgbe] Problem with second laggport 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 | 209682 | [panic] [netinet] arptimer race New | 213410 | [carp] service netif restart causes hang only whe New | 217748 | sys/dev/ixgbe/if_ix.c: PVS-Studio: Assignment to Open | 193452 | Dell PowerEdge 210 II -- Kernel panic bce (broadc Open | 194485 | Userland cannot add IPv6 prefix routes Open | 202510 | [CARP] advertisements sourced from CARP IP cause Open | 206544 | sendmsg(2) (sendto(2) too?) can fail with EINVAL; Open | 211962 | bxe driver queue soft hangs and flooding tx_soft_ Open | 213814 | AWS/EC2: no egress traffic stats on ixv(4) Open | 222273 | igb(4): Kernel panic (fatal trap 12) due to netwo 16 problems total for which you should take action. From owner-freebsd-net@freebsd.org Mon Apr 23 09:29:36 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB2BEFAB7B3 for ; Mon, 23 Apr 2018 09:29:36 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5A9828D6A3 for ; Mon, 23 Apr 2018 09:29:36 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (220-253-154-11.dyn.iinet.net.au [220.253.154.11]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id w3N9TVMP058030 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 23 Apr 2018 02:29:34 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: Need Netgraph Help [fixed] To: GPz1100a , freebsd-net@freebsd.org References: <2e0525c8-2251-a5f5-45d1-fe44ebe318f7@freebsd.org> <4fee4ea6-9b35-afba-6d5d-24ecca3e28c6@freebsd.org> <3b8d46da-75e3-79f2-379c-b27a88e80733@freebsd.org> <47C0E33A-E815-4860-A25C-F29BBB8D6787@gmail.com> <1524372774786-0.post@n6.nabble.com> From: Julian Elischer Message-ID: <92b34995-fc04-cd8d-c3d7-c3a96d606074@freebsd.org> Date: Mon, 23 Apr 2018 17:29:25 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1524372774786-0.post@n6.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 23 Apr 2018 09:29:36 -0000 On 22/4/18 12:52 pm, GPz1100a wrote: > @John > > Did you ever get this fully figured out? I'm trying to do what I think is > the same thing with my fiber internet connection - eliminate the need to use > the isp provided gateway (or at least reduce its function). I'm running > *opnsense*. This thread > https://forum.pfsense.org/index.php?topic=111043.msg793292#msg793292 is what > led me here. > > Three nics correspond to the following > > em0 - ONT (WAN) > xl0 - 3com pci - isp provided residential gateway (RG) > ue0 - usb nic - LAN > > Using Julian's code from Jan 06, 2018; 1:39pm, > > ngctl mkpeer em0: etf lower downstream > ngctl name em0:lower waneapfilter > ngctl connect waneapfilter: em0: nomatch upper > > ngctl mkpeer xl0: etf lower downstream > ngctl name xl0:lower laneapfilter > ngctl connect laneapfilter: xl0: nomatch upper > > * ngctl connect waneapfilter laneapfilter eapout eapout* missing colon after waneapfilter > > ngctl msg waneapfilter: 'setfilter { matchhook="eapout" > ethertype=0x888e }' > ngctl msg laneapfilter: 'setfilter { matchhook="eapout" > ethertype=0x888e }' > > When I get to the command in bold it comes back with this error: > > root@OPNsense:~ # ngctl connect waneapfilter laneapfilter eapout eapout > ngctl: send msg: No such file or directory > > I'm not sure how to proceed from here. > > Thanks for any help you (or others) can offer. > > --J > > > > > -- > Sent from: http://freebsd.1045724.x6.nabble.com/freebsd-net-f4005075.html > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > From owner-freebsd-net@freebsd.org Mon Apr 23 09:55:45 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 826CDFAD621 for ; Mon, 23 Apr 2018 09:55:45 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 137336E1EE for ; Mon, 23 Apr 2018 09:55:44 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (220-253-154-11.dyn.iinet.net.au [220.253.154.11]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id w3N9tdhD058135 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 23 Apr 2018 02:55:42 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: Need Netgraph Help [fixed] To: GPz1100a , freebsd-net@freebsd.org References: <2e0525c8-2251-a5f5-45d1-fe44ebe318f7@freebsd.org> <4fee4ea6-9b35-afba-6d5d-24ecca3e28c6@freebsd.org> <3b8d46da-75e3-79f2-379c-b27a88e80733@freebsd.org> <47C0E33A-E815-4860-A25C-F29BBB8D6787@gmail.com> <1524372774786-0.post@n6.nabble.com> From: Julian Elischer Cc: John Lyon Message-ID: <1bd8c52f-1e0a-9f29-ccc4-34dd54aad384@freebsd.org> Date: Mon, 23 Apr 2018 17:55:33 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1524372774786-0.post@n6.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 23 Apr 2018 09:55:45 -0000 On 22/4/18 12:52 pm, GPz1100a wrote: > @John > > Did you ever get this fully figured out? I'm trying to do what I think is > the same thing with my fiber internet connection - eliminate the need to use > the isp provided gateway (or at least reduce its function). I'm running > *opnsense*. This thread > https://forum.pfsense.org/index.php?topic=111043.msg793292#msg793292 is what > led me here. > > Three nics correspond to the following > > em0 - ONT (WAN) > xl0 - 3com pci - isp provided residential gateway (RG) > ue0 - usb nic - LAN > > Using Julian's code from Jan 06, 2018; 1:39pm, > > ngctl mkpeer em0: etf lower downstream > ngctl name em0:lower waneapfilter > ngctl connect waneapfilter: em0: nomatch upper > > ngctl mkpeer xl0: etf lower downstream > ngctl name xl0:lower laneapfilter > ngctl connect laneapfilter: xl0: nomatch upper > > * ngctl connect waneapfilter laneapfilter eapout eapout* > > ngctl msg waneapfilter: 'setfilter { matchhook="eapout" > ethertype=0x888e }' > ngctl msg laneapfilter: 'setfilter { matchhook="eapout" > ethertype=0x888e }' > > When I get to the command in bold it comes back with this error: > > root@OPNsense:~ # ngctl connect waneapfilter laneapfilter eapout eapout > ngctl: send msg: No such file or directory > > I'm not sure how to proceed from here. > > Thanks for any help you (or others) can offer. > > --J > I wish I had known the full picture before.. then I could have added the required bits: So  think you need this: ONT]----em0]lower---downstream[eapfilter:]nomatch----vlan0[VLAN]downstream----upper[em0...                                                          eapout                                                              |                                                              |                                                              | RG]------em1]lower---------------/               ie. use an etf node on each interface.     ngctl mkpeer igb0: etf lower downstream     ngctl name igb0:lower eapfilter     ngctl mkpeer igb0: vlan upper downstream     ngctl name igb0:upper vlanheader     ngctl msg vlanheader: addfilter '{ vlan=0 hook="vlan0" }'     ngctl connect vlanheader: eapfilter: vlan0 nomatch     ngctl connect eapfilter: igb1: eapout lower ngctl msg waneapfilter: 'setfilter { matchhook="eapout" ethertype=0x888e }' note the vlan node is inserted "backwards".. > > > -- > Sent from: http://freebsd.1045724.x6.nabble.com/freebsd-net-f4005075.html > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > From owner-freebsd-net@freebsd.org Mon Apr 23 10:11:37 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DBD05FAE587 for ; Mon, 23 Apr 2018 10:11:36 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 761DB711F7 for ; Mon, 23 Apr 2018 10:11:36 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (220-253-154-11.dyn.iinet.net.au [220.253.154.11]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id w3NABTnt058472 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 23 Apr 2018 03:11:34 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: Need Netgraph Help [fixed] From: Julian Elischer To: GPz1100a , freebsd-net@freebsd.org Cc: John Lyon References: <2e0525c8-2251-a5f5-45d1-fe44ebe318f7@freebsd.org> <4fee4ea6-9b35-afba-6d5d-24ecca3e28c6@freebsd.org> <3b8d46da-75e3-79f2-379c-b27a88e80733@freebsd.org> <47C0E33A-E815-4860-A25C-F29BBB8D6787@gmail.com> <1524372774786-0.post@n6.nabble.com> <1bd8c52f-1e0a-9f29-ccc4-34dd54aad384@freebsd.org> Message-ID: <39b20cd4-7336-b03c-1fa2-74ab09bae4e7@freebsd.org> Date: Mon, 23 Apr 2018 18:11:23 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1bd8c52f-1e0a-9f29-ccc4-34dd54aad384@freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 23 Apr 2018 10:11:37 -0000 On 23/4/18 5:55 pm, Julian Elischer wrote: > On 22/4/18 12:52 pm, GPz1100a wrote: >> @John >> >> Did you ever get this fully figured out?  I'm trying to do what I >> think is >> the same thing with my fiber internet connection - eliminate the >> need to use >> the isp provided gateway (or at least reduce its function). I'm >> running >> *opnsense*.   This thread >> https://forum.pfsense.org/index.php?topic=111043.msg793292#msg793292 >> is what >> led me here. >> >> Three nics correspond to the following >> >> em0 - ONT (WAN) >> xl0 - 3com pci - isp provided residential gateway (RG) >> ue0 - usb nic - LAN >> >> Using Julian's code from Jan 06, 2018; 1:39pm, >> >>       ngctl mkpeer em0: etf lower downstream >>       ngctl name em0:lower waneapfilter >>       ngctl connect waneapfilter: em0: nomatch upper >> >>       ngctl mkpeer xl0: etf lower downstream >>       ngctl name  xl0:lower laneapfilter >>       ngctl connect laneapfilter:  xl0: nomatch upper >> >> *    ngctl connect waneapfilter laneapfilter eapout eapout* >> >>       ngctl msg waneapfilter: 'setfilter { matchhook="eapout" >> ethertype=0x888e }' >>       ngctl msg laneapfilter: 'setfilter { matchhook="eapout" >> ethertype=0x888e }' >> >> When I get to the command in bold it comes back with this error: >> >> root@OPNsense:~ #      ngctl connect waneapfilter laneapfilter >> eapout eapout >> ngctl: send msg: No such file or directory >> >> I'm not sure how to proceed from here. >> >> Thanks for any help you (or others) can offer. >> >> --J >> > > I wish I had known the full picture before.. > then I could have added the required bits: > > So  think you need this: > > ONT]----em0]lower---downstream[eapfilter:]nomatch----vlan0[VLAN]downstream----upper[em0... > >                                                          eapout >                                                              | >                                                              | >                                                              | > RG]------em1]lower---------------/ > the following line is no longer true of course >               ie. use an etf node on each interface. > >     ngctl mkpeer igb0: etf lower downstream >     ngctl name igb0:lower eapfilter >     ngctl mkpeer igb0: vlan upper downstream >     ngctl name igb0:upper vlanheader >     ngctl msg vlanheader: addfilter '{ vlan=0 hook="vlan0" }' >     ngctl connect vlanheader: eapfilter: vlan0 nomatch >     ngctl connect eapfilter: igb1: eapout lower > ngctl msg waneapfilter: 'setfilter { matchhook="eapout" > ethertype=0x888e }' however having sent this I realise it may not work.. because the etf node doesn't take into account vlan labels, because vlan labels are them selvesm in fact a special case of ethertype.. (0x8100) so to know if this will work I need to know what a packet at the netgraph insertion point looks like: to find this out, attach the nghook program to an inserted ngtee node (inserted somewhere in your current graph) and see what comes out. (with -a ). so we can see what the packets look like. > > note the vlan node is inserted "backwards".. > >> >> >> -- >> Sent from: >> http://freebsd.1045724.x6.nabble.com/freebsd-net-f4005075.html >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> > > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > From owner-freebsd-net@freebsd.org Mon Apr 23 10:24:56 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A5CB8FAF4A8 for ; Mon, 23 Apr 2018 10:24:56 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4335F73F86 for ; Mon, 23 Apr 2018 10:24:56 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (220-253-154-11.dyn.iinet.net.au [220.253.154.11]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id w3NAOmpU058510 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 23 Apr 2018 03:24:52 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: Need Netgraph Help [fixed] From: Julian Elischer To: GPz1100a , freebsd-net@freebsd.org Cc: John Lyon References: <2e0525c8-2251-a5f5-45d1-fe44ebe318f7@freebsd.org> <4fee4ea6-9b35-afba-6d5d-24ecca3e28c6@freebsd.org> <3b8d46da-75e3-79f2-379c-b27a88e80733@freebsd.org> <47C0E33A-E815-4860-A25C-F29BBB8D6787@gmail.com> <1524372774786-0.post@n6.nabble.com> <1bd8c52f-1e0a-9f29-ccc4-34dd54aad384@freebsd.org> <39b20cd4-7336-b03c-1fa2-74ab09bae4e7@freebsd.org> Message-ID: <52e9f946-2b07-0783-7bb5-d7fbccf0d165@freebsd.org> Date: Mon, 23 Apr 2018 18:24:42 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <39b20cd4-7336-b03c-1fa2-74ab09bae4e7@freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 23 Apr 2018 10:24:56 -0000 On 23/4/18 6:11 pm, Julian Elischer wrote: > On 23/4/18 5:55 pm, Julian Elischer wrote: >> On 22/4/18 12:52 pm, GPz1100a wrote: >>> @John >>> >>> Did you ever get this fully figured out?  I'm trying to do what I >>> think is >>> the same thing with my fiber internet connection - eliminate the >>> need to use >>> the isp provided gateway (or at least reduce its function). I'm >>> running >>> *opnsense*.   This thread >>> https://forum.pfsense.org/index.php?topic=111043.msg793292#msg793292 >>> is what >>> led me here. >>> >>> Three nics correspond to the following >>> >>> em0 - ONT (WAN) >>> xl0 - 3com pci - isp provided residential gateway (RG) >>> ue0 - usb nic - LAN >>> >>> Using Julian's code from Jan 06, 2018; 1:39pm, >>> >>>       ngctl mkpeer em0: etf lower downstream >>>       ngctl name em0:lower waneapfilter >>>       ngctl connect waneapfilter: em0: nomatch upper >>> >>>       ngctl mkpeer xl0: etf lower downstream >>>       ngctl name  xl0:lower laneapfilter >>>       ngctl connect laneapfilter:  xl0: nomatch upper >>> >>> *    ngctl connect waneapfilter laneapfilter eapout eapout* >>> >>>       ngctl msg waneapfilter: 'setfilter { matchhook="eapout" >>> ethertype=0x888e }' >>>       ngctl msg laneapfilter: 'setfilter { matchhook="eapout" >>> ethertype=0x888e }' >>> >>> When I get to the command in bold it comes back with this error: >>> >>> root@OPNsense:~ #      ngctl connect waneapfilter laneapfilter >>> eapout eapout >>> ngctl: send msg: No such file or directory >>> >>> I'm not sure how to proceed from here. >>> >>> Thanks for any help you (or others) can offer. >>> >>> --J >>> >> >> I wish I had known the full picture before.. >> then I could have added the required bits: >> >> So  think you need this: >> >> ONT]----em0]lower---downstream[eapfilter:]nomatch----vlan0[VLAN]downstream----upper[em0... >> >>                                                          eapout >>                                                              | >>                                                              | >>                                                              | >> RG]------em1]lower---------------/ >> > the following line is no longer true of course >>               ie. use an etf node on each interface. > >> >>     ngctl mkpeer igb0: etf lower downstream >>     ngctl name igb0:lower eapfilter >>     ngctl mkpeer igb0: vlan upper downstream >>     ngctl name igb0:upper vlanheader >>     ngctl msg vlanheader: addfilter '{ vlan=0 hook="vlan0" }' >>     ngctl connect vlanheader: eapfilter: vlan0 nomatch >>     ngctl connect eapfilter: igb1: eapout lower >> ngctl msg waneapfilter: 'setfilter { matchhook="eapout" >> ethertype=0x888e }' > > however having sent this I realise it may not work.. because the etf > node doesn't take into account vlan labels, because vlan labels are > them selvesm in fact a special case of ethertype.. (0x8100) > > so to know if this will work I need to know what a packet at the > netgraph insertion point looks like: > > to find this out, attach the nghook program to an inserted ngtee > node (inserted somewhere in your current graph) and see what comes > out. (with -a ). > > so we can see what the packets look like. see https://forum.pfsense.org/index.php?action=post;topic=111043.30;last_msg=798618 > > > > >> >> note the vlan node is inserted "backwards".. >> >>> >>> >>> -- >>> Sent from: >>> http://freebsd.1045724.x6.nabble.com/freebsd-net-f4005075.html >>> _______________________________________________ >>> freebsd-net@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-net >>> To unsubscribe, send any mail to >>> "freebsd-net-unsubscribe@freebsd.org" >>> >> >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> >> > > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > From owner-freebsd-net@freebsd.org Mon Apr 23 11:15:03 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 648EAFB23F3 for ; Mon, 23 Apr 2018 11:15:03 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward104j.mail.yandex.net (forward104j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C59B57F599 for ; Mon, 23 Apr 2018 11:15:02 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from mxback10g.mail.yandex.net (mxback10g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:171]) by forward104j.mail.yandex.net (Yandex) with ESMTP id 2DE5C424B5; Mon, 23 Apr 2018 14:14:51 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback10g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id B9Uyno1BYe-EoQOUKp7; Mon, 23 Apr 2018 14:14:51 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1524482091; bh=2u4zUia/Uj4w7VZ2S10WpEy8vRye8wyQbHclHky+PVg=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=W2Dtt+zmC+HQ9TaNlN9FE+ZyU8xB75tiyP/hroPsPyjwmajj8yu3q2JgUagYW4VUO mEene9jw7eaM8uehNxNZ4JaEBFA+HpWTmyL7C+O1KnZhgiBDvRQFbOS7Guim+M9ckB 0fC+IRCqm0N+UCoCjqxuxryCOy6QPZfp0tE+Uzmo= Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id yGessISd3s-EnRGYqsE; Mon, 23 Apr 2018 14:14:50 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1524482090; bh=2u4zUia/Uj4w7VZ2S10WpEy8vRye8wyQbHclHky+PVg=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=gFgYlbYgO7y5IM+Plr0kCPj0g/fykl2jySDdjzdEL0lcZqBIoRjYioksmwayTAaKK mQsM/1G6VZYdA5AB1Vtpv/3H3vV/EZTsewjjjeAAxfDq4tSqHNQ8UxQ3Me1tzc821y qOB49f+/gHa9HM60polkR1ZuVd2NzE4nedsgE+eQ= Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.ru Subject: Re: multiple if_ipsec To: Victor Gamov , freebsd-net@freebsd.org References: <5e36ac3f-39ce-72c5-cd97-dd3c4cf551a7@yandex.ru> <30d1c5f9-56e7-c67b-43e1-e6f0457360a8@otcnet.ru> <77c37ff9-8de3-dec0-176a-2b34db136bc5@otcnet.ru> From: "Andrey V. Elsukov" Openpgp: id=E6591E1B41DA1516F0C9BC0001C5EA0410C8A17A Autocrypt: addr=bu7cher@yandex.ru; prefer-encrypt=mutual; keydata= xsBNBEwBF1kBCADB9sXFhBEUy8qQ4X63Y8eBatYMHGEFWN9ypS5lI3RE6qQW2EYbxNk7qUC5 21YIIS1mMFVBEfvR7J9uc7yaYgFCEb6Sce1RSO4ULN2mRKGHP3/Sl0ijZEjWHV91hY1YTHEF ZW/0GYinDf56sYpDDehaBF5wkWIo1+QK5nmj3vl0DIDCMNd7QEiWpyLVwECgLX2eOAXByT8B bCqVhJGcG6iFP7/B9Ll6uX5gb8thM9LM+ibwErDBVDGiOgvfxqidab7fdkh893IBCXa82H9N CNwnEtcgzh+BSKK5BgvPohFMgRwjti37TSxwLu63QejRGbZWSz3OK3jMOoF63tCgn7FvABEB AAHNIkFuZHJleSBWLiBFbHN1a292IDxhZUBmcmVlYnNkLm9yZz7CwHsEEwECACUCGwMGCwkI BwMCBhUIAgkKCwQWAgMBAh4BAheABQJMB/ruAhkBAAoJEAHF6gQQyKF6MLwH/3Ri/TZl9uo0 SepYWXOnxL6EaDVXDA+dLb1eLKC4PRBBjX29ttQ0KaWapiE6y5/AfzOPmRtHLrHYHjd/aiHX GMLHcYRXD+5GvdkK8iMALrZ28X0JXyuuZa8rAxWIWmCbYHNSBy2unqWgTI04Erodk90IALgM 9JeHN9sFqTM6zalrMnTzlcmel4kcjT3lyYw3vOKgoYLtsLhKZSbJoVVVlvRlGBpHFJI5AoYJ SyfXoN0rcX6k9X7Isp2K50YjqxV4v78xluh1puhwZyC0p8IShPrmrp9Oy9JkMX90o6UAXdGU KfdExJuGJfUZOFBTtNIMNIAKfMTjhpRhxONIr0emxxDOwE0ETAEXWQEIAJ2p6l9LBoqdH/0J PEFDY2t2gTvAuzz+8zs3R03dFuHcNbOwjvWCG0aOmVpAzkRa8egn5JB4sZaFUtKPYJEQ1Iu+ LUBwgvtXf4vWpzC67zs2dDuiW4LamH5p6xkTD61aHR7mCB3bg2TUjrDWn2Jt44cvoYxj3dz4 S49U1rc9ZPgD5axCNv45j72tggWlZvpefThP7xT1OlNTUqye2gAwQravXpZkl5JG4eOqJVIU X316iE3qso0iXRUtO7OseBf0PiVmk+wCahdreHOeOxK5jMhYkPKVn7z1sZiB7W2H2TojbmcK HZC22sz7Z/H36Lhg1+/RCnGzdEcjGc8oFHXHCxUAEQEAAcLAXwQYAQIACQUCTAEXWQIbDAAK CRABxeoEEMihegkYCAC3ivGYNe2taNm/4Nx5GPdzuaAJGKWksV+w9mo7dQvU+NmI2az5w8vw 98OmX7G0OV9snxMW+6cyNqBrVFTu33VVNzz9pnqNCHxGvj5dL5ltP160JV2zw2bUwJBYsgYQ WfyJJIM7l3gv5ZS3DGqaGIm9gOK1ANxfrR5PgPzvI9VxDhlr2juEVMZYAqPLEJe+SSxbwLoz BcFCNdDAyXcaAzXsx/E02YWm1hIWNRxanAe7Vlg7OL+gvLpdtrYCMg28PNqKNyrQ87LQ49O9 50IIZDOtNFeR0FGucjcLPdS9PiEqCoH7/waJxWp6ydJ+g4OYRBYNM0EmMgy1N85JJrV1mi5i Message-ID: <92930ba6-828d-ecb5-ce37-36794ec80ef7@yandex.ru> Date: Mon, 23 Apr 2018 14:13:00 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <77c37ff9-8de3-dec0-176a-2b34db136bc5@otcnet.ru> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="LSbERtPFN0wsQAq0TWWNdbpNl8fk3Q5Ei" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 23 Apr 2018 11:15:03 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --LSbERtPFN0wsQAq0TWWNdbpNl8fk3Q5Ei Content-Type: multipart/mixed; boundary="MojZ1Byxkja8MWuf10zkndsNFEdtq8wsa"; protected-headers="v1" From: "Andrey V. Elsukov" To: Victor Gamov , freebsd-net@freebsd.org Message-ID: <92930ba6-828d-ecb5-ce37-36794ec80ef7@yandex.ru> Subject: Re: multiple if_ipsec References: <5e36ac3f-39ce-72c5-cd97-dd3c4cf551a7@yandex.ru> <30d1c5f9-56e7-c67b-43e1-e6f0457360a8@otcnet.ru> <77c37ff9-8de3-dec0-176a-2b34db136bc5@otcnet.ru> In-Reply-To: <77c37ff9-8de3-dec0-176a-2b34db136bc5@otcnet.ru> --MojZ1Byxkja8MWuf10zkndsNFEdtq8wsa Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 21.04.2018 19:16, Victor Gamov wrote: > When I change ipsec-interfaces creation order then only last created > interface worked fine again and previously configured interfaces does > not work. >=20 >=20 > And very interesting fact: when I ping from remote 10.10.98.5 for > example to FreeBSD 10.10.98.6 then no ICMP-request coming over > ipsec-interface but ICMP-reply outgoing via this ipsec-interface (but > not delivered to 10.10.98.5) >=20 >=20 > Any ideas? I'm lack of any ideas. For further debugging I need to see the output of # sysctl net. | grep ipsec # setkey -DP # setkey -D # ifconfig And probably racoon's logs. --=20 WBR, Andrey V. Elsukov --MojZ1Byxkja8MWuf10zkndsNFEdtq8wsa-- --LSbERtPFN0wsQAq0TWWNdbpNl8fk3Q5Ei Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAlrdv8AACgkQAcXqBBDI oXp0Bwf/e3Ch360VMuzK2bX+Bcbl3YLiAjDXbMzw80IMMSokXZJTblxFzCt+I9A7 JL/bOSoJIoIHaFlgFBqP6h2f/ii+GQvq+/DCjhDUk/bXD3UZcV8r1aCV1FKIj7hl elnPBj61vKiJKBOg+j1jBwdDWziLutfL+IzKf/C4JMIoOgEAcR03WxQXfoKAMdi2 G03PCrYEEx3vytQHRjmoD/lY/+6fWf3m5XPnv+LBqGKN5hGbHDPUTbvBlj6oq5Rd PMf29lmlMxz7MkIjQgX/9MTsZTDfvgRuA9fpF5TCC13vDDr+3BUh7SFYqpbbTmZf igpKXA9GjXFKAOL7/9kS7vP1Mb/JCw== =m8C1 -----END PGP SIGNATURE----- --LSbERtPFN0wsQAq0TWWNdbpNl8fk3Q5Ei-- From owner-freebsd-net@freebsd.org Mon Apr 23 12:10:41 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E8DB2FB6DEF for ; Mon, 23 Apr 2018 12:10:40 +0000 (UTC) (envelope-from vit@otcnet.ru) Received: from mail.otcnet.ru (mail.otcnet.ru [194.190.78.3]) by mx1.freebsd.org (Postfix) with ESMTP id 340186ACD8 for ; Mon, 23 Apr 2018 12:10:38 +0000 (UTC) (envelope-from vit@otcnet.ru) Received: from Victors-MacBook-Air-2.local (unknown [213.33.226.214]) by mail.otcnet.ru (Postfix) with ESMTPSA id AE3A059659F for ; Mon, 23 Apr 2018 15:10:28 +0300 (MSK) Subject: Re: multiple if_ipsec To: freebsd-net@freebsd.org References: <5e36ac3f-39ce-72c5-cd97-dd3c4cf551a7@yandex.ru> <30d1c5f9-56e7-c67b-43e1-e6f0457360a8@otcnet.ru> <77c37ff9-8de3-dec0-176a-2b34db136bc5@otcnet.ru> <92930ba6-828d-ecb5-ce37-36794ec80ef7@yandex.ru> From: Victor Gamov Organization: OTCnet Message-ID: <112ea6c0-1927-5f47-24c7-6888295496cf@otcnet.ru> Date: Mon, 23 Apr 2018 15:10:29 +0300 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <92930ba6-828d-ecb5-ce37-36794ec80ef7@yandex.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 23 Apr 2018 12:10:41 -0000 On 23/04/2018 14:13, Andrey V. Elsukov wrote: > On 21.04.2018 19:16, Victor Gamov wrote: >> When I change ipsec-interfaces creation order then only last created >> interface worked fine again and previously configured interfaces does >> not work. >> >> >> And very interesting fact: when I ping from remote 10.10.98.5 for >> example to FreeBSD 10.10.98.6 then no ICMP-request coming over >> ipsec-interface but ICMP-reply outgoing via this ipsec-interface (but >> not delivered to 10.10.98.5) >> >> >> Any ideas? > > I'm lack of any ideas. For further debugging I need to see the output of > # sysctl net. | grep ipsec > # setkey -DP > # setkey -D > # ifconfig > > And probably racoon's logs. Hi Andrey! First of all -- many thanks for your responses! Configs are followed # sysctl net. | grep ipsec ===== net.inet.ipsec.def_policy: 1 net.inet.ipsec.esp_trans_deflev: 1 net.inet.ipsec.esp_net_deflev: 1 net.inet.ipsec.ah_trans_deflev: 1 net.inet.ipsec.ah_net_deflev: 1 net.inet.ipsec.ah_cleartos: 1 net.inet.ipsec.ah_offsetmask: 0 net.inet.ipsec.dfbit: 0 net.inet.ipsec.ecn: 0 net.inet.ipsec.debug: 0 net.inet.ipsec.filtertunnel: 0 net.inet.ipsec.natt_cksum_policy: 0 net.inet.ipsec.check_policy_history: 0 net.inet.ipsec.crypto_support: 50331648 net.inet6.ipsec6.def_policy: 1 net.inet6.ipsec6.esp_trans_deflev: 1 net.inet6.ipsec6.esp_net_deflev: 1 net.inet6.ipsec6.ah_trans_deflev: 1 net.inet6.ipsec6.ah_net_deflev: 1 net.inet6.ipsec6.ecn: 0 net.inet6.ipsec6.debug: 0 net.inet6.ipsec6.filtertunnel: 0 ===== # setkey -DP | grep -A 4 '^0' ===== 0.0.0.0/0[any] 0.0.0.0/0[any] any in ipsec esp/tunnel/__Cisco_30__-__FreeBSD_IP__/unique:30 spid=1 seq=11 pid=99239 scope=ifnet ifname=ipsec30 refcnt=1 0.0.0.0/0[any] 0.0.0.0/0[any] any in ipsec esp/tunnel/__Cisco_26__-__FreeBSD_IP__/unique#16385 spid=5 seq=9 pid=99239 scope=ifnet ifname=ipsec26 refcnt=1 0.0.0.0/0[any] 0.0.0.0/0[any] any in ipsec esp/tunnel/__Cisco_25__-__FreeBSD_IP__/unique:26 spid=9 seq=7 pid=99239 scope=ifnet ifname=ipsec25 refcnt=1 0.0.0.0/0[any] 0.0.0.0/0[any] any out ipsec esp/tunnel/__FreeBSD_IP__-__Cisco_30__/unique:30 spid=2 seq=5 pid=99239 scope=ifnet ifname=ipsec30 refcnt=1 0.0.0.0/0[any] 0.0.0.0/0[any] any out ipsec esp/tunnel/__FreeBSD_IP__-__Cisco_26__/unique#16385 spid=6 seq=3 pid=99239 scope=ifnet ifname=ipsec26 refcnt=1 0.0.0.0/0[any] 0.0.0.0/0[any] any out ipsec esp/tunnel/__FreeBSD_IP__-__Cisco_25__/unique:26 spid=10 seq=1 pid=99239 scope=ifnet ifname=ipsec25 refcnt=1 ===== # setkey -D ===== __FreeBSD_IP__ __Cisco_30__ esp mode=tunnel spi=2124688285(0x7ea42b9d) reqid=26(0x0000001a) E: rijndael-cbc 6ca42c3b c24ce0ec f3f676c8 c9b9e72d fde63423 3f957b0c ee5da59d dce8a66d A: hmac-sha1 2adb7dfb 26d5de00 2fdd9a21 f63701ef 59d95a1a seq=0x00000000 replay=4 flags=0x00000000 state=mature created: Apr 23 14:02:03 2018 current: Apr 23 14:17:40 2018 diff: 937(s) hard: 3600(s) soft: 2880(s) last: hard: 0(s) soft: 0(s) current: 0(bytes) hard: 0(bytes) soft: 0(bytes) allocated: 0 hard: 0 soft: 0 sadb_seq=5 pid=95677 refcnt=1 __FreeBSD_IP__ __Cisco_25__ esp mode=tunnel spi=153891647(0x092c333f) reqid=26(0x0000001a) E: rijndael-cbc 8f9905fe 6a9cfc76 a0da354b 53a7f901 298dca43 b5feda65 3be012e7 08835553 A: hmac-sha1 aa2ec447 0e6b36e2 23ba9b27 9d0ecc05 4513af70 seq=0x00000000 replay=4 flags=0x00000000 state=mature created: Apr 23 13:40:24 2018 current: Apr 23 14:17:40 2018 diff: 2236(s) hard: 3600(s) soft: 2880(s) last: hard: 0(s) soft: 0(s) current: 0(bytes) hard: 0(bytes) soft: 0(bytes) allocated: 0 hard: 0 soft: 0 sadb_seq=4 pid=95677 refcnt=1 __Cisco_25__ __FreeBSD_IP__ esp mode=tunnel spi=21918183(0x014e71e7) reqid=26(0x0000001a) E: rijndael-cbc 43e8f54a 0bdda6b5 41a637d5 4469973d 5b3dc8d0 37022187 43c86f0c 34054df8 A: hmac-sha1 cf08a56a beead8b8 e637a14a 5fdbde3d b8c71192 seq=0x00000000 replay=4 flags=0x00000000 state=mature created: Apr 23 13:40:24 2018 current: Apr 23 14:17:40 2018 diff: 2236(s) hard: 3600(s) soft: 2880(s) last: Apr 23 13:40:25 2018 hard: 0(s) soft: 0(s) current: 46900(bytes) hard: 0(bytes) soft: 0(bytes) allocated: 719 hard: 0 soft: 0 sadb_seq=3 pid=95677 refcnt=1 __FreeBSD_IP__ __Cisco_26__ esp mode=tunnel spi=2471238029(0x934c198d) reqid=26(0x0000001a) E: rijndael-cbc 01b3235e 0fe554d3 6dbcb505 bb34d511 93f8ee6f b0b15f43 077c411a afdb1b3b A: hmac-sha1 29ab22bd 2c4f0ade e1478e19 0ecf423f ef155ff3 seq=0x00000000 replay=4 flags=0x00000000 state=mature created: Apr 23 13:42:29 2018 current: Apr 23 14:17:40 2018 diff: 2111(s) hard: 3600(s) soft: 2880(s) last: hard: 0(s) soft: 0(s) current: 0(bytes) hard: 0(bytes) soft: 0(bytes) allocated: 0 hard: 0 soft: 0 sadb_seq=2 pid=95677 refcnt=1 __Cisco_26__ __FreeBSD_IP__ esp mode=tunnel spi=103689330(0x062e2c72) reqid=26(0x0000001a) E: rijndael-cbc 27936832 275a949a a156336c dbc049e1 3a88218a 1f23351f 54eb336d 8381bf0b A: hmac-sha1 8ed4e3a6 7d3d5b25 0c167123 fc8052a5 43738cf8 seq=0x00000000 replay=4 flags=0x00000000 state=mature created: Apr 23 13:42:29 2018 current: Apr 23 14:17:40 2018 diff: 2111(s) hard: 3600(s) soft: 2880(s) last: Apr 23 13:42:33 2018 hard: 0(s) soft: 0(s) current: 27360(bytes) hard: 0(bytes) soft: 0(bytes) allocated: 456 hard: 0 soft: 0 sadb_seq=1 pid=95677 refcnt=1 __Cisco_30__ __FreeBSD_IP__ esp mode=tunnel spi=42561509(0x02896fe5) reqid=26(0x0000001a) E: rijndael-cbc a9c9d21a b09f705b fbf33201 881b27af a23ea9fa 85085847 b4b50418 54d6c739 A: hmac-sha1 7994e8dc ece0c8e7 434ac694 b0fc7952 bc1e01b0 seq=0x00000000 replay=4 flags=0x00000000 state=mature created: Apr 23 14:02:03 2018 current: Apr 23 14:17:40 2018 diff: 937(s) hard: 3600(s) soft: 2880(s) last: Apr 23 14:02:05 2018 hard: 0(s) soft: 0(s) current: 19644(bytes) hard: 0(bytes) soft: 0(bytes) allocated: 301 hard: 0 soft: 0 sadb_seq=0 pid=95677 refcnt=1 ===== # ifconfig -au ===== em0: flags=8843 metric 0 mtu 1500 description: -LAN options=9b ether 00:50:56:b0:81:ac hwaddr 00:50:56:b0:81:ac inet 192.168.10.130 netmask 0xffffff00 broadcast 192.168.10.255 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active em1: flags=8843 metric 0 mtu 1500 description: -WAN options=9b ether 00:50:56:b0:bf:de hwaddr 00:50:56:b0:bf:de inet __FreeBSD_IP__ netmask 0xffffffe0 broadcast __FreeBSD_IP_broadcast__ nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 groups: lo ipsec30: flags=8051 metric 0 mtu 1400 description: -so: Kur tunnel inet __FreeBSD_IP__ --> __Cisco_30__ inet 10.10.98.1 --> 10.10.98.2 netmask 0xfffffffc nd6 options=29 reqid: 30 groups: ipsec ipsec26: flags=8051 metric 0 mtu 1400 description: -so: Mur tunnel inet __FreeBSD_IP__ --> __Cisco_26__ inet 10.10.98.9 --> 10.10.98.10 netmask 0xfffffffc nd6 options=29 reqid: 16385 groups: ipsec ipsec25: flags=8051 metric 0 mtu 1400 description: -so: Sofy tunnel inet __FreeBSD_IP__ --> __Cisco_25__ inet 10.10.98.5 --> 10.10.98.6 netmask 0xfffffffc nd6 options=29 reqid: 26 groups: ipsec ===== Racoon launched with debug now and sometimes I've got DEBUG messages ===== racoon: DEBUG: no such a SA found: ESP/Tunnel __Cisco_30__[500]->__FreeBSD_IP__[500] spi=198258211(0xbd12e23) racoon: DEBUG: no such a SA found: ESP/Tunnel __Cisco_25__[500]->__FreeBSD_IP__[[500] spi=2471238029(0x934c198d) ===== with many FreeBSD/Cisco IP conbinations. And sometimes: ===== racoon: DEBUG: check spi(packet)=153891647 spi(db)=738738094. racoon: DEBUG: check spi(packet)=153891647 spi(db)=153891647. racoon: DEBUG: purged 1 SAs. racoon: DEBUG: purged SAs. racoon: DEBUG: pk_recv: retry[0] recv() racoon: DEBUG: DELETE message is not interesting because the message was originated by me. racoon: DEBUG: pk_recv: retry[0] recv() racoon: DEBUG: got pfkey ACQUIRE message ===== Regardless this messages ping still works fine but for last configured ipsec-interface -- CU, Victor Gamov From owner-freebsd-net@freebsd.org Mon Apr 23 12:45:12 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A05B5FB9663 for ; Mon, 23 Apr 2018 12:45:12 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward103j.mail.yandex.net (forward103j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1CE6173A6F for ; Mon, 23 Apr 2018 12:45:11 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from mxback7o.mail.yandex.net (mxback7o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::21]) by forward103j.mail.yandex.net (Yandex) with ESMTP id 1092534C14D0; Mon, 23 Apr 2018 15:45:09 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback7o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id DqEip3wzUC-j81Oi0iU; Mon, 23 Apr 2018 15:45:09 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1524487509; bh=pQwjOH39zmgBdLH7qPMG/Qur/IeAmOyAYK/rb8nyCsU=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=tCD3PyNdC4b8mH04lPfn9Ya3fWf/RFIuHQ8jed8tXgdY6JxnlLLBmIP91Ui4I0Edm D9UeTF8oR3j3dJi7TIu6nb51Q0zazJFpYPOGgKeUGNpjSLxAOXTV0yniio6OPRw87V 2sPVRZ1vYAw8Q+7UNeVawNruGrUEicXTkQy+9+0g= Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id iciH1FUORc-j2T8XFhO; Mon, 23 Apr 2018 15:45:02 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1524487502; bh=pQwjOH39zmgBdLH7qPMG/Qur/IeAmOyAYK/rb8nyCsU=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=kKrCU2mDmLhTOLjiR6i236N3BRQxUaCdc11yHzPYgX8oLLD2+u4u5p6PjG38B7szb Kmu2ACsNfdYSx3vK85aDUerUXsFlbwy1/Z0zd2cluAcMSJlsXfjuNdlYAH4ZEW2skJ g9+Lskhs7e8r89FDZxacK9XH8vFEn6LALY0mxhGE= Authentication-Results: smtp2p.mail.yandex.net; dkim=pass header.i=@yandex.ru Subject: Re: multiple if_ipsec To: Victor Gamov , freebsd-net@freebsd.org References: <5e36ac3f-39ce-72c5-cd97-dd3c4cf551a7@yandex.ru> <30d1c5f9-56e7-c67b-43e1-e6f0457360a8@otcnet.ru> <77c37ff9-8de3-dec0-176a-2b34db136bc5@otcnet.ru> <92930ba6-828d-ecb5-ce37-36794ec80ef7@yandex.ru> <112ea6c0-1927-5f47-24c7-6888295496cf@otcnet.ru> From: "Andrey V. Elsukov" Openpgp: id=E6591E1B41DA1516F0C9BC0001C5EA0410C8A17A Autocrypt: addr=bu7cher@yandex.ru; prefer-encrypt=mutual; keydata= xsBNBEwBF1kBCADB9sXFhBEUy8qQ4X63Y8eBatYMHGEFWN9ypS5lI3RE6qQW2EYbxNk7qUC5 21YIIS1mMFVBEfvR7J9uc7yaYgFCEb6Sce1RSO4ULN2mRKGHP3/Sl0ijZEjWHV91hY1YTHEF ZW/0GYinDf56sYpDDehaBF5wkWIo1+QK5nmj3vl0DIDCMNd7QEiWpyLVwECgLX2eOAXByT8B bCqVhJGcG6iFP7/B9Ll6uX5gb8thM9LM+ibwErDBVDGiOgvfxqidab7fdkh893IBCXa82H9N CNwnEtcgzh+BSKK5BgvPohFMgRwjti37TSxwLu63QejRGbZWSz3OK3jMOoF63tCgn7FvABEB AAHNIkFuZHJleSBWLiBFbHN1a292IDxhZUBmcmVlYnNkLm9yZz7CwHsEEwECACUCGwMGCwkI BwMCBhUIAgkKCwQWAgMBAh4BAheABQJMB/ruAhkBAAoJEAHF6gQQyKF6MLwH/3Ri/TZl9uo0 SepYWXOnxL6EaDVXDA+dLb1eLKC4PRBBjX29ttQ0KaWapiE6y5/AfzOPmRtHLrHYHjd/aiHX GMLHcYRXD+5GvdkK8iMALrZ28X0JXyuuZa8rAxWIWmCbYHNSBy2unqWgTI04Erodk90IALgM 9JeHN9sFqTM6zalrMnTzlcmel4kcjT3lyYw3vOKgoYLtsLhKZSbJoVVVlvRlGBpHFJI5AoYJ SyfXoN0rcX6k9X7Isp2K50YjqxV4v78xluh1puhwZyC0p8IShPrmrp9Oy9JkMX90o6UAXdGU KfdExJuGJfUZOFBTtNIMNIAKfMTjhpRhxONIr0emxxDOwE0ETAEXWQEIAJ2p6l9LBoqdH/0J PEFDY2t2gTvAuzz+8zs3R03dFuHcNbOwjvWCG0aOmVpAzkRa8egn5JB4sZaFUtKPYJEQ1Iu+ LUBwgvtXf4vWpzC67zs2dDuiW4LamH5p6xkTD61aHR7mCB3bg2TUjrDWn2Jt44cvoYxj3dz4 S49U1rc9ZPgD5axCNv45j72tggWlZvpefThP7xT1OlNTUqye2gAwQravXpZkl5JG4eOqJVIU X316iE3qso0iXRUtO7OseBf0PiVmk+wCahdreHOeOxK5jMhYkPKVn7z1sZiB7W2H2TojbmcK HZC22sz7Z/H36Lhg1+/RCnGzdEcjGc8oFHXHCxUAEQEAAcLAXwQYAQIACQUCTAEXWQIbDAAK CRABxeoEEMihegkYCAC3ivGYNe2taNm/4Nx5GPdzuaAJGKWksV+w9mo7dQvU+NmI2az5w8vw 98OmX7G0OV9snxMW+6cyNqBrVFTu33VVNzz9pnqNCHxGvj5dL5ltP160JV2zw2bUwJBYsgYQ WfyJJIM7l3gv5ZS3DGqaGIm9gOK1ANxfrR5PgPzvI9VxDhlr2juEVMZYAqPLEJe+SSxbwLoz BcFCNdDAyXcaAzXsx/E02YWm1hIWNRxanAe7Vlg7OL+gvLpdtrYCMg28PNqKNyrQ87LQ49O9 50IIZDOtNFeR0FGucjcLPdS9PiEqCoH7/waJxWp6ydJ+g4OYRBYNM0EmMgy1N85JJrV1mi5i Message-ID: <8d27fbd2-001d-dc46-3621-c44d8dad5522@yandex.ru> Date: Mon, 23 Apr 2018 15:43:16 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <112ea6c0-1927-5f47-24c7-6888295496cf@otcnet.ru> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="AxXuOxd76vGsqtvMwHxnSHFSzqkZEblVx" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 23 Apr 2018 12:45:13 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --AxXuOxd76vGsqtvMwHxnSHFSzqkZEblVx Content-Type: multipart/mixed; boundary="tHL6tgh2FvLuY7hOau2PLwqfHJSvo1t3y"; protected-headers="v1" From: "Andrey V. Elsukov" To: Victor Gamov , freebsd-net@freebsd.org Message-ID: <8d27fbd2-001d-dc46-3621-c44d8dad5522@yandex.ru> Subject: Re: multiple if_ipsec References: <5e36ac3f-39ce-72c5-cd97-dd3c4cf551a7@yandex.ru> <30d1c5f9-56e7-c67b-43e1-e6f0457360a8@otcnet.ru> <77c37ff9-8de3-dec0-176a-2b34db136bc5@otcnet.ru> <92930ba6-828d-ecb5-ce37-36794ec80ef7@yandex.ru> <112ea6c0-1927-5f47-24c7-6888295496cf@otcnet.ru> In-Reply-To: <112ea6c0-1927-5f47-24c7-6888295496cf@otcnet.ru> --tHL6tgh2FvLuY7hOau2PLwqfHJSvo1t3y Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 23.04.2018 15:10, Victor Gamov wrote: > # setkey -D > =3D=3D=3D=3D=3D > __FreeBSD_IP__ __Cisco_30__ > =C2=A0=C2=A0=C2=A0=C2=A0esp mode=3Dtunnel spi=3D2124688285(0x7ea42b9d) = reqid=3D26(0x0000001a) This must be 30 ^^^^^^^ > __FreeBSD_IP__ __Cisco_25__ > =C2=A0=C2=A0=C2=A0=C2=A0esp mode=3Dtunnel spi=3D153891647(0x092c333f) r= eqid=3D26(0x0000001a) > =C2=A0=C2=A0=C2=A0=C2=A0E: rijndael-cbc=C2=A0 8f9905fe 6a9cfc76 a0da354= b 53a7f901 298dca43 > __Cisco_25__ __FreeBSD_IP__ > =C2=A0=C2=A0=C2=A0=C2=A0esp mode=3Dtunnel spi=3D21918183(0x014e71e7) re= qid=3D26(0x0000001a) > =C2=A0=C2=A0=C2=A0=C2=A0E: rijndael-cbc=C2=A0 43e8f54a 0bdda6b5 41a637d= 5 4469973d 5b3dc8d0 > __FreeBSD_IP__ __Cisco_26__ > =C2=A0=C2=A0=C2=A0=C2=A0esp mode=3Dtunnel spi=3D2471238029(0x934c198d) = reqid=3D26(0x0000001a) This must be 16385 ^^^^^ > __Cisco_26__ __FreeBSD_IP__ > =C2=A0=C2=A0=C2=A0=C2=A0esp mode=3Dtunnel spi=3D103689330(0x062e2c72) r= eqid=3D26(0x0000001a) This must be 16385 ^^^^^ > __Cisco_30__ __FreeBSD_IP__ > =C2=A0=C2=A0=C2=A0=C2=A0esp mode=3Dtunnel spi=3D42561509(0x02896fe5) re= qid=3D26(0x0000001a) This must be 30 ^^^^^^^ > ipsec30: flags=3D8051 metric 0 mtu 14= 00 > =C2=A0=C2=A0=C2=A0=C2=A0description: -so: Kur > =C2=A0=C2=A0=C2=A0=C2=A0tunnel inet __FreeBSD_IP__ --> __Cisco_30__ > =C2=A0=C2=A0=C2=A0=C2=A0inet 10.10.98.1 --> 10.10.98.2=C2=A0 netmask 0x= fffffffc > =C2=A0=C2=A0=C2=A0=C2=A0nd6 options=3D29 > =C2=A0=C2=A0=C2=A0=C2=A0reqid: 30 > =C2=A0=C2=A0=C2=A0=C2=A0groups: ipsec > ipsec26: flags=3D8051 metric 0 mtu 14= 00 > =C2=A0=C2=A0=C2=A0=C2=A0description: -so: Mur > =C2=A0=C2=A0=C2=A0=C2=A0tunnel inet __FreeBSD_IP__ --> __Cisco_26__ > =C2=A0=C2=A0=C2=A0=C2=A0inet 10.10.98.9 --> 10.10.98.10=C2=A0 netmask 0= xfffffffc > =C2=A0=C2=A0=C2=A0=C2=A0nd6 options=3D29 > =C2=A0=C2=A0=C2=A0=C2=A0reqid: 16385 > =C2=A0=C2=A0=C2=A0=C2=A0groups: ipsec > ipsec25: flags=3D8051 metric 0 mtu 14= 00 > =C2=A0=C2=A0=C2=A0=C2=A0description: -so: Sofy > =C2=A0=C2=A0=C2=A0=C2=A0tunnel inet __FreeBSD_IP__ --> __Cisco_25__ > =C2=A0=C2=A0=C2=A0=C2=A0inet 10.10.98.5 --> 10.10.98.6=C2=A0 netmask 0x= fffffffc > =C2=A0=C2=A0=C2=A0=C2=A0nd6 options=3D29 > =C2=A0=C2=A0=C2=A0=C2=A0reqid: 26 > =C2=A0=C2=A0=C2=A0=C2=A0groups: ipsec Your security associations doesn't match your security policies. Probably you did interfaces reconfiguration without clearing old SAs. I think your configuration will work, if you first will done if_ipsec(4) configuration, then start racoon and it will generate SAs. To clear all old/stale configured SAs you can first stop racoon, then run `setkey -DF` and `setkey -DPF`. --=20 WBR, Andrey V. Elsukov --tHL6tgh2FvLuY7hOau2PLwqfHJSvo1t3y-- --AxXuOxd76vGsqtvMwHxnSHFSzqkZEblVx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAlrd1OQACgkQAcXqBBDI oXpeIgf+Jwo70efQh/NiJ8h6pAcNCxSNz5TOZsq35+8iVqTa7pniJoq32lbUVy79 qjJ2lN/rWi6f3qNrOECVTHAVmJHMynRNyjrpkUZBaEc21xKLLaWl2QdJiYBaQePk gw/gzb4wA4FSMbGIKyQrcFR0EL3Z6AH4837EhECguW28XboQnHxoRVI6fhEwd+s/ WklvNxf9YmMNRlfaxBuxNDI9vGePQRZuVSzign8/3cDXVPwKJywjRgQJCtfO2Dau 3yBWYMQThUHLBK5cMKYvGBkF1uVeth8xGtaB1gFoP/OJMz5WAyV9R7ZcHb3Crg8g 9LB5m4nzgjsi00Bvxx8oXUHReRStWw== =QcVN -----END PGP SIGNATURE----- --AxXuOxd76vGsqtvMwHxnSHFSzqkZEblVx-- From owner-freebsd-net@freebsd.org Mon Apr 23 16:12:19 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 99053FA5B20 for ; Mon, 23 Apr 2018 16:12:19 +0000 (UTC) (envelope-from johnllyon@gmail.com) Received: from mail-wr0-x233.google.com (mail-wr0-x233.google.com [IPv6:2a00:1450:400c:c0c::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 0D3C482789 for ; Mon, 23 Apr 2018 16:12:19 +0000 (UTC) (envelope-from johnllyon@gmail.com) Received: by mail-wr0-x233.google.com with SMTP id u18-v6so15594772wrg.3 for ; Mon, 23 Apr 2018 09:12:19 -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=TD3ky5A0d5u1eREGZpk12pNGIVsDVlyI9UyahQ5C5/c=; b=Cli0Tr81tpB5E3au1Wow0OE3MHs9NBC9YK5YWpnz04OipiICKUmHu7F5WiIkdX6C98 duvWa/3NtF2f0JN3TBzqWk9jWWL70PE5CD2G73ZHrQ/4wqyfyipPK77vDW6gLjkOKEZ5 4sNYQAeQYffs6SLbipVd/HlPSlSKvEEl0UiC5YonJ1R5cLHU+IM2WHw7G0RULYzwXNAd KQBGnzfXe9KVQYZ2FVPlPS/v7oLKRA/bEtnhu7nohnpWUZQuwdtgTnhJqZaLnJ4fRJXi y/ptGt37VlhkZPfryl+4xPKlqFaSermwVgHvGLSRoQQStolXKXtQPVxSiMDu4hNuoLqz zycQ== 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=TD3ky5A0d5u1eREGZpk12pNGIVsDVlyI9UyahQ5C5/c=; b=KcDeMoGoctD59w/MY+eAoujFvtp7hlrjSI3IWzEFysMY76CIq4hVgPPlTQwluR0Msc 2oUWOln+eWcGyn0Lbrs3fXAMnZyhnX/7HzG/Fz0Khgc3BtnMWGOm5Fp/j4OQB0Gxk1Xe JngGeuhMUzL8vBZObj4YZVJ045pLDWKGEgSd/IjZ29HKRJGdQ1l0YgkS0bA4HvYFYtPe 3KmLJg1QVoAGpW+3OSuXdYm3heZ1RYIDcBU420DKLHHh2HoSKffAZy8v4n2aI2SyRV6h ZMZI2xO24d4Cb0cEqZFjy+A9BT+syg7RARy9umO0dH6Ov5NISb5B42qec48THPziy9pz VBhA== X-Gm-Message-State: ALQs6tCzZ9wFMNiLIuew1Mp5QGbZi/E69xwpnB3yrKU3K4TnCB3zQudV 8d3z5txG4eT0IeaLUrH2ELIObURkzVkFByRLt0+qvA== X-Google-Smtp-Source: AIpwx48tRYvxu7cBswL5W3ZEiBE+wcmi+pUfCTtXx4KcquE/JuQjRMBnzU3+u/b30Gr9ByjZVxS/ha3quBEyG/1wjgE= X-Received: by 10.80.145.221 with SMTP id h29mr29147853eda.3.1524499937943; Mon, 23 Apr 2018 09:12:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.206.81 with HTTP; Mon, 23 Apr 2018 09:11:57 -0700 (PDT) In-Reply-To: <1524372774786-0.post@n6.nabble.com> References: <2e0525c8-2251-a5f5-45d1-fe44ebe318f7@freebsd.org> <4fee4ea6-9b35-afba-6d5d-24ecca3e28c6@freebsd.org> <3b8d46da-75e3-79f2-379c-b27a88e80733@freebsd.org> <47C0E33A-E815-4860-A25C-F29BBB8D6787@gmail.com> <1524372774786-0.post@n6.nabble.com> From: John Lyon Date: Mon, 23 Apr 2018 12:11:57 -0400 Message-ID: Subject: Re: Need Netgraph Help [fixed] To: GPz1100a Cc: freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 23 Apr 2018 16:12:19 -0000 If you found that thread, you found my answer. :-) I'm one of the posters on that particular PFSense thread. In short summary, I have a theory that should work but I haven't tested it yet due to a lack of opportunity. The netgraph code that forwards the EAP-OL traffic works. The problem is handling the fact that ATT tags all traffic as VLAN ID 0, which FreeBSD's vlan interface does not support. I filed a bug report on the matter, but was told "use Netgraph". Basically, you either have to add/remove the vlan 0 tag since you can't create a virtual interface on vlan 0 like you can in Linux. -------------------------------- John L. Lyon PGP Key Available At: https://www.dropbox.com/s/skmedtscs0tgex7/02150BFE.asc On Sun, Apr 22, 2018 at 12:52 AM, GPz1100a wrote: > @John > > Did you ever get this fully figured out? I'm trying to do what I think is > the same thing with my fiber internet connection - eliminate the need to > use > the isp provided gateway (or at least reduce its function). I'm running > *opnsense*. This thread > https://forum.pfsense.org/index.php?topic=111043.msg793292#msg793292 is > what > led me here. > > Three nics correspond to the following > > em0 - ONT (WAN) > xl0 - 3com pci - isp provided residential gateway (RG) > ue0 - usb nic - LAN > > Using Julian's code from Jan 06, 2018; 1:39pm, > > ngctl mkpeer em0: etf lower downstream > ngctl name em0:lower waneapfilter > ngctl connect waneapfilter: em0: nomatch upper > > ngctl mkpeer xl0: etf lower downstream > ngctl name xl0:lower laneapfilter > ngctl connect laneapfilter: xl0: nomatch upper > > * ngctl connect waneapfilter laneapfilter eapout eapout* > > ngctl msg waneapfilter: 'setfilter { matchhook="eapout" > ethertype=0x888e }' > ngctl msg laneapfilter: 'setfilter { matchhook="eapout" > ethertype=0x888e }' > > When I get to the command in bold it comes back with this error: > > root@OPNsense:~ # ngctl connect waneapfilter laneapfilter eapout > eapout > ngctl: send msg: No such file or directory > > I'm not sure how to proceed from here. > > Thanks for any help you (or others) can offer. > > --J > > > > > -- > Sent from: http://freebsd.1045724.x6.nabble.com/freebsd-net-f4005075.html > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > From owner-freebsd-net@freebsd.org Mon Apr 23 16:16:25 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D6984FA5C64 for ; Mon, 23 Apr 2018 16:16:24 +0000 (UTC) (envelope-from johnllyon@gmail.com) Received: from mail-wr0-x230.google.com (mail-wr0-x230.google.com [IPv6:2a00:1450:400c:c0c::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 408D383176; Mon, 23 Apr 2018 16:16:24 +0000 (UTC) (envelope-from johnllyon@gmail.com) Received: by mail-wr0-x230.google.com with SMTP id p18-v6so23704394wrm.1; Mon, 23 Apr 2018 09:16:24 -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=OXTYrdLvv233LycTTDxp4uhjidqOJCwFdCDxJ6AHJhk=; b=T3jd2FV7zFnbOu0sWeaKRA1ohNPnkWgfCTX8gjdEvkePFuUJcPmDS8EOtImU9EWS6g dLr0KcaURQsrNgjyLjbNQ5IbSuNHsbvyzo+0cA33FR2XNp2Y8IxY41zj38Kat+r1BgcT O6zLrTgGmTR+DpxY2n4+HdcTPT3kV/vCURUIVH+Arz7VAaIBjAVBnJw2srEFye5NgRNl 9Za2UVQf5tCSprJhI5D214HOOLfvcbo/s6JJirF8lVEscN4ZmQZj07JQKjseg3AwGJz3 V+K32d2RCSyzI7//y03K8QFzVwgMtB8Yqs9PUhQm/qbFjxd01K++R4pWHfEE8o17ijmi 0AiA== 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=OXTYrdLvv233LycTTDxp4uhjidqOJCwFdCDxJ6AHJhk=; b=SvlpjlNAlTct0NPVcsUDybCqRhH7t+8rGXPDb44TYW4uGmqFUI5xiNlxVG+RjE+2On mgPNSEkMoR7C/mdiO4Lucw1gCeFbCi3VyVX9ygcEtPkjV0dMWxt/2AgVv+lnpQcLKY1X ZM4SUwsCNlobCVb4tohXAREVEsgHg5eI9n7yAG6a+sfbBnQH7uIKOWhvuLk3hgydUGXe eR42MwtQRY/D2Go581RKK8tTBFWrjlKdT/SRzL7NUURjfpiI3gfKSeVUB9gcWZw+SpOG xFLkur0rbWitZ1E/nBidu8U2gSKMAHvPiKExRN3v/SR9kZG02jzGq3EdVpjl8CSvFkI8 sdgg== X-Gm-Message-State: ALQs6tDIXB0eI6TCbfKbRAEYlCaNgifaBwCOn+ZW8G9Pk9YCNDz8Txpy pLVBqsFN9JzkE1fzqNnYzBNb7LujyxQLrxKypgR+6KML X-Google-Smtp-Source: AIpwx4//zbwGrn5H8ZP9bx0O6HYcRHzdM4Knz8HJPb50sO2yYeO6vVLPvnAlq5Ri0NjPoQXKdfp2v3hVWTq9Zyt29wA= X-Received: by 10.80.145.221 with SMTP id h29mr29165817eda.3.1524500182799; Mon, 23 Apr 2018 09:16:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.206.81 with HTTP; Mon, 23 Apr 2018 09:16:02 -0700 (PDT) In-Reply-To: <1bd8c52f-1e0a-9f29-ccc4-34dd54aad384@freebsd.org> References: <2e0525c8-2251-a5f5-45d1-fe44ebe318f7@freebsd.org> <4fee4ea6-9b35-afba-6d5d-24ecca3e28c6@freebsd.org> <3b8d46da-75e3-79f2-379c-b27a88e80733@freebsd.org> <47C0E33A-E815-4860-A25C-F29BBB8D6787@gmail.com> <1524372774786-0.post@n6.nabble.com> <1bd8c52f-1e0a-9f29-ccc4-34dd54aad384@freebsd.org> From: John Lyon Date: Mon, 23 Apr 2018 12:16:02 -0400 Message-ID: Subject: Re: Need Netgraph Help [fixed] To: Julian Elischer Cc: GPz1100a , freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 23 Apr 2018 16:16:25 -0000 That's interesting. Why did you insert ng_vlan "backwards". My though is that you would want to do something like this (because the whole point is you want to remove the VID=0 tag since FreeBSD won't bind to VID=0): ONT]----em0]lower---downstream_vlan0[VLAN]------downstream [eapfilter:]nomatch--------upper[em0... eapout | | | RG]------em1]lower---------------------- -------------------------------------------/ -------------------------------- John L. Lyon PGP Key Available At: https://www.dropbox.com/s/skmedtscs0tgex7/02150BFE.asc On Mon, Apr 23, 2018 at 5:55 AM, Julian Elischer wrote: > On 22/4/18 12:52 pm, GPz1100a wrote: > >> @John >> >> Did you ever get this fully figured out? I'm trying to do what I think is >> the same thing with my fiber internet connection - eliminate the need to >> use >> the isp provided gateway (or at least reduce its function). I'm running >> *opnsense*. This thread >> https://forum.pfsense.org/index.php?topic=111043.msg793292#msg793292 is >> what >> led me here. >> >> Three nics correspond to the following >> >> em0 - ONT (WAN) >> xl0 - 3com pci - isp provided residential gateway (RG) >> ue0 - usb nic - LAN >> >> Using Julian's code from Jan 06, 2018; 1:39pm, >> >> ngctl mkpeer em0: etf lower downstream >> ngctl name em0:lower waneapfilter >> ngctl connect waneapfilter: em0: nomatch upper >> >> ngctl mkpeer xl0: etf lower downstream >> ngctl name xl0:lower laneapfilter >> ngctl connect laneapfilter: xl0: nomatch upper >> >> * ngctl connect waneapfilter laneapfilter eapout eapout* >> >> ngctl msg waneapfilter: 'setfilter { matchhook="eapout" >> ethertype=0x888e }' >> ngctl msg laneapfilter: 'setfilter { matchhook="eapout" >> ethertype=0x888e }' >> >> When I get to the command in bold it comes back with this error: >> >> root@OPNsense:~ # ngctl connect waneapfilter laneapfilter eapout >> eapout >> ngctl: send msg: No such file or directory >> >> I'm not sure how to proceed from here. >> >> Thanks for any help you (or others) can offer. >> >> --J >> >> > I wish I had known the full picture before.. > then I could have added the required bits: > > So think you need this: > > ONT]----em0]lower---downstream[eapfilter:]nomatch----vlan0[ > VLAN]downstream----upper[em0... > eapout > | > | > | > RG]------em1]lower---------------/ > > ie. use an etf node on each interface. > > ngctl mkpeer igb0: etf lower downstream > ngctl name igb0:lower eapfilter > ngctl mkpeer igb0: vlan upper downstream > ngctl name igb0:upper vlanheader > ngctl msg vlanheader: addfilter '{ vlan=0 hook="vlan0" }' > ngctl connect vlanheader: eapfilter: vlan0 nomatch > ngctl connect eapfilter: igb1: eapout lower > ngctl msg waneapfilter: 'setfilter { matchhook="eapout" ethertype=0x888e }' > > note the vlan node is inserted "backwards".. > > > >> >> -- >> Sent from: http://freebsd.1045724.x6.nabble.com/freebsd-net-f4005075.html >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> >> > From owner-freebsd-net@freebsd.org Mon Apr 23 19:36:25 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BFB8BFAA25B for ; Mon, 23 Apr 2018 19:36:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 501EF7147D for ; Mon, 23 Apr 2018 19:36:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 08D59FAA25A; Mon, 23 Apr 2018 19:36:25 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E01B1FAA259 for ; Mon, 23 Apr 2018 19:36:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6D3027145D for ; Mon, 23 Apr 2018 19:36:24 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id A4D566BEA for ; Mon, 23 Apr 2018 19:36:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3NJaNWI006202 for ; Mon, 23 Apr 2018 19:36:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3NJaNVu006201 for net@FreeBSD.org; Mon, 23 Apr 2018 19:36:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 200382] Loading netgraph via bsnmpd, etc can cause domain to be registered after domain_finalize has been called Date: Mon, 23 Apr 2018 19:36:23 +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: eugen@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Works As Intended X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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.25 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, 23 Apr 2018 19:36:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D200382 Eugene Grosbein changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Closed Resolution|--- |Works As Intended --- Comment #4 from Eugene Grosbein --- Feedback timeout. Also, we have enough ways to eliminate this cosmetic prob= lem easiest of which are netgraph_load=3D"YES" in /boot/loader.conf or kld_list=3D"netgraph" in /etc/rc.conf --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Mon Apr 23 23:33:45 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 153B3FAE0C2 for ; Mon, 23 Apr 2018 23:33:45 +0000 (UTC) (envelope-from David.Somayajulu@cavium.com) Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0085.outbound.protection.outlook.com [104.47.41.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT TLS CA 4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 651B38622A for ; Mon, 23 Apr 2018 23:33:44 +0000 (UTC) (envelope-from David.Somayajulu@cavium.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=zGLpvMW47kyyDnkMZcTvSwXZaQvknnOtdYvnleMD/u0=; b=LzI/FguIYkOZDreDfxZ9+fJZXQhdw63tMgXwkREb/ofXDoBTDPWpRe3Sxo2K3MexWrtcAEVWnKcw0+7Yxv6ja4J2M1URxzKzwnRMruGvy2zOerYkah0r6MwnZsicXs19NjZDSj7G1piVigIgOT+7YcrrVPQ9iHlsj0bpftKOauU= Received: from BN6PR07MB3122.namprd07.prod.outlook.com (10.172.105.16) by BN6PR07MB3042.namprd07.prod.outlook.com (10.172.106.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.12; Mon, 23 Apr 2018 23:33:42 +0000 Received: from BN6PR07MB3122.namprd07.prod.outlook.com ([fe80::f99c:7893:cc8e:b001]) by BN6PR07MB3122.namprd07.prod.outlook.com ([fe80::f99c:7893:cc8e:b001%12]) with mapi id 15.20.0696.017; Mon, 23 Apr 2018 23:33:42 +0000 From: "Somayajulu, David" To: "freebsd-net@freebsd.org" Subject: kldload ibcore.ko fails in snapshot: FreeBSD-12.0-CURRENT-amd64-20180329-r331740-disc1 Thread-Topic: kldload ibcore.ko fails in snapshot: FreeBSD-12.0-CURRENT-amd64-20180329-r331740-disc1 Thread-Index: AdPbWp1wYt/+96z/SpO3pQHWCSx7Pw== Date: Mon, 23 Apr 2018 23:33:42 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=David.Somayajulu@cavium.com; x-originating-ip: [198.186.1.5] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BN6PR07MB3042; 7:AFLgtdAYMQYOhZaONC5I3KFwfmXIrBclfS7IBp+mc/8G42U3mxYcmMJwtYgnkosf9GRjJzbP7njBJBzCc2CDEO3QiNoMmDSwsCKULdDOPb1MKZ0ofHHgwEiUbESmSoj5qgpEc/fzAsOBUxEvsXkxiDZtAfnO8YHJOp5to2wxEwF/FghUqRQ6UeAvpcAlSqPD3596/5leUu3afFVgMtsC1TWl0tZdarQskuuEZfpZgY8vc0Nc/MiJTBGVNKTQ3hyx x-ms-exchange-antispam-srfa-diagnostics: SOS; x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BN6PR07MB3042; x-ms-traffictypediagnostic: BN6PR07MB3042: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(21748063052155); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231232)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:BN6PR07MB3042; BCL:0; PCL:0; RULEID:; SRVR:BN6PR07MB3042; x-forefront-prvs: 06515DA04B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39380400002)(396003)(376002)(366004)(39860400002)(346002)(53754006)(6116002)(790700001)(81166006)(6506007)(74316002)(316002)(5630700001)(3846002)(72206003)(7696005)(478600001)(476003)(2900100001)(9326002)(25786009)(33656002)(5660300001)(6916009)(66066001)(99286004)(102836004)(54896002)(86362001)(5640700003)(9686003)(55016002)(53936002)(8676002)(2351001)(6306002)(6436002)(14454004)(3280700002)(3660700001)(4743002)(2501003)(26005)(8936002)(5250100002)(186003)(2906002)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3042; H:BN6PR07MB3122.namprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; MLV:ovrnspm; PTR:InfoNoRecords; received-spf: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: TGhbdaGnxmlu0xsz6vvJ0VQ75XFGhkVeVUWoltkjZs+3rjBU4umd9qaCMVb2bzJpWmlbdwe+DSIaMunkvGClpcVTo3SF8RQYD8iou7Y4hF5Gx6N5hQxjbv4uN7rRiFkgpHvQU+RMvQnFD/r53fi94PAG89wjMwYqsJJ8MxkZ2mVdrz34IEiNrLUGS0jYpsai spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: f79bd129-8fb1-46ba-6bdc-08d5a972a64a X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-Network-Message-Id: f79bd129-8fb1-46ba-6bdc-08d5a972a64a X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Apr 2018 23:33:42.0461 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3042 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 23 Apr 2018 23:33:45 -0000 Hi All, kldload ibcore.ko fails in the above snapshot with the following error. # kldload -v /usr/obj/usr/src/amd64.amd64/sys/modules/ibcore/ibcore.ko kldload: an error occurred while loading module /usr/obj/usr/src/amd64.amd6= 4/sys/modules/ibcore/ibcore.ko. Please check dmesg(8) for more details. /var/log/messages indicates the following. Apr 23 16:28:07 bsd25_12 kernel: link_elf_obj: symbol if_index undefined Apr 23 16:28:07 bsd25_12 kernel: linker_load_file: /usr/obj/usr/src/amd64.a= md64/sys/modules/ibcore/ibcore.ko - unsupported file type What am I missing? Thanks David S. From owner-freebsd-net@freebsd.org Tue Apr 24 04:59:53 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3F3F3FBA90F for ; Tue, 24 Apr 2018 04:59:53 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pf0-x236.google.com (mail-pf0-x236.google.com [IPv6:2607:f8b0:400e:c00::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B60F26FCF0 for ; Tue, 24 Apr 2018 04:59:52 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by mail-pf0-x236.google.com with SMTP id f15so11229310pfn.0 for ; Mon, 23 Apr 2018 21:59:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=8JMtg0s3OzOuwdtYBnQCDWoBqMw7ruSGwASRIQCyMtI=; b=i5Tz+RQ2IUbXtltDdOcF+au/2uD/GHY7F3ogzeP/44BqxxqD+hzowhGJd6tEg9KDQ4 Ct3uarSDkQEzzHbNqX35fYDsB6s+mxUfBfka0/CHV/vzFN/lArBD6H072J472bBtllU5 DI7cAJ8uz2ib/I+lJdxvJb+PQmQsMdLPtKsGQZZmbh6plRM16bu05VdEyNtSI4g6cPB4 PxVyFv/qz4G5xvWij4r9ZPWzDjKij/QFfqnaYJgN4LZJRvOHnsBSHwoJgovHjPUVvOAZ rU2AhvA2qHjF/LbG8POl6BEbsUjY1a1tl8n7B23QtxCaE/Nbvg4yI9MZiW6N2eJ0gH8p +7ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=8JMtg0s3OzOuwdtYBnQCDWoBqMw7ruSGwASRIQCyMtI=; b=VnnCQVp9Iwk49OKI8dhgThCP3Zmf595gL+m8CO7dHMVSHrGFS1Ax8vgkUo6ZKNdCpk zVeZv98sFgLM6vP8yppqeBYs7jO9XWr7t3SSG64zsRlT4g0pLdpEwf5ENvZf2ZMVp2Co 6pBL9qldbc/ctWHRA3vOxiJElkBBXePryuTzjgc9Fs/ndSy3aZHe1Jt/ySJmkPT7KwXc HzqN8Gdp6slz7vUBLmOJpQUOYlJxZuv6NbGvxCZr89JLsZWDCptQC1m3LHgKt/MnKCyt bZw8pzMdcdZoqLbIf0cpxDyB8RPbd6OOrfNIArJW5R2tfwOEowxIPiCk6X0ZPG/pc8/K p3gQ== X-Gm-Message-State: ALQs6tA7F/L20mzBZUgpC1eEgEWvyr5cBGb2HLaSa3A7fjR3ciaBrLyq 7ywFVCBGByDNJsK3ZCGIzLDMdQ== X-Google-Smtp-Source: AIpwx4/0tzDDVRpYp894KGdlvSyIZAGUAuCkLtuYwMRZoGchhyZTz8Kd5agtN2ysr+ESOgJQxBCg1g== X-Received: by 2002:a17:902:6045:: with SMTP id a5-v6mr23288732plt.138.1524545991825; Mon, 23 Apr 2018 21:59:51 -0700 (PDT) Received: from localhost ([58.237.141.52]) by smtp.gmail.com with ESMTPSA id r81sm28264960pfj.79.2018.04.23.21.59.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Apr 2018 21:59:50 -0700 (PDT) From: YongHyeon PYUN X-Google-Original-From: "YongHyeon PYUN" Received: by localhost (sSMTP sendmail emulation); Tue, 24 Apr 2018 13:59:46 +0900 Date: Tue, 24 Apr 2018 13:59:46 +0900 To: Dieter BSD Cc: freebsd-net@freebsd.org Subject: Re: AX88179 USB-to-Ethernet is slow and silently corrupts data Message-ID: <20180424045946.GB3123@michelle.fasterthan.co.kr> Reply-To: pyunyh@gmail.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 24 Apr 2018 04:59:53 -0000 On Tue, Apr 10, 2018 at 03:54:58PM -0700, Dieter BSD wrote: > 10.3-RELEASE > amd64 with ECC memory > VIA VL805 USB 3.0 controller > ue0 is Siig USB-to-Ethernet Chipset: AX88179 > > ugen0.7: at usbus0, cfg=0 md=HOST > spd=SUPER (5.0Gbps) pwr=ON (124mA) > > ue0: flags=8c43 metric 0 > mtu 1500 > options=8000b > inet 10.0.210.66 netmask 0xffffff00 broadcast 10.0.210.255 > nd6 options=29 > media: Ethernet autoselect (1000baseT ) > status: active > > If media is set to "1000baseT " it "works", but slowly, and > received data is silently corrupted. :-( Transmitted data is not > corrupted (tested with > 30 GB). > > ifconfig ue0 -txcsum > "works", but still gives silent data corruption > > ifconfig ue0 -rxcsum (acts the same with or without txcsum) > ping out > netstat sees packets both directions, but ping doesn't see the response: > 8 packets transmitted, 0 packets received, 100.0% packet loss > ping in > netstat sees packets in, but no responses going out > > I can see that some Ethernet controllers would not support checksum offloading, > but it seems to me that turning the checksum offloading off should always > work? (at the expense of more cpu load) > > Previously (2016 May): > # ifconfig ue0 media 100baseTX-FDX > fixed the input error problem and the data corruption problem, > at the expense of making it even slower. > > Sent data from machine A with 10Mbps Ethernet. (Netgear Ethernet switch > converts 10Mbps to 1000Mbps) Netstat did not report any input errors on > ue0 and there was no data corruption. So ue0 can handle gigabit data rate, > but gets input errors if packets arrive too frequently. > > I tried moving it to a USB-2 port. No data corruption, but USB-2 is slow. > > The chip performs a lot better for tweaktown: > http://www.tweaktown.com/reviews/7243/vantec-cb-u300gna-usb-3-gigabit-network-adapter-review/index.html > (Vantec CB-U300GNA with the same Asix AX88179 chip) > "full duplex gigabit with 952 Mbps consistently across the chart" > > http://www.vantecusa.com/products_detail.php?p_id=143&p_name=USB+3.0+Gigabit+Ethernet+Adapter&pc_id=21&pc_name=Network&pt_id=5&pt_name=Accessories > > Asix AX88179 chip: > http://www.asix.com.tw/products.php?op=pItemdetail&PItemID=131;71;112 > "Supports Jumbo frame up to 4KB" > > But ifconfig rejects any value > 1500: > ifconfig ue0 mtu 1501 > ifconfig: ioctl SIOCSIFMTU (set mtu): Invalid argument > > I tried mtu of 100, 500, 1000, 1400 but they all give > rcp: lost connection > > USB disks are fast, so the USB controller seems to work ok. > > I also tried a Tek Republic TUN-300 which has the same AX88179, > and it acts the same as the Siig. > > So, transmit works, but is slow. Receive works if the amount of traffic > is low enough (limit rate of data sent, limit Ethernet speed, or > use USB-2). But if data is received too fast it gets silently corrupted. > Setting -rxcsum does not work, and cannot set mtu other than 1500. > [Removed freebsd-usb@, freebsd-hackers@ and freebsd-drivers@ in the CC list] > Questions: > Why does -rxcsum not work? The driver implements RX checksum offloading but it seems it has some issue in RX data handling. > Why does attempting to set a larger mtu fail? Jumbo frame support was not implemented in axge(4). > Why does setting a smaller mtu make rcp fail? > Why is the chip acting slow? > How do I get it to work properly? (fast and without data corruption) In order to narrow down the issue it would be helpful to know: - Disable all H/W checksum offloading features. - Which phy driver is used for axge(4)? You can see the phy driver name below axge(4) attachment in dmesg output. - Do you use manual media configuration instead of auto-negotiation? - Does the issue happen at which media speed(10Mbps, 100Mbps or 1000Mbs)? - Does the issue happen with which USB driver(ehci(4) or xhci(4))? - Which direction of packet flow is broken(TX or RX or both)? You need two boxes(one with ue(4) and the other with good working system). If TX flow of ue(4) is broken, your good working system will report number of bad input packets. If RX flow of ue(4) is broken, you may receive corrupted data without errors. Use TCP to test for TX/RX flow. From owner-freebsd-net@freebsd.org Tue Apr 24 07:03:58 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A19A1FBE0A6 for ; Tue, 24 Apr 2018 07:03:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1DB506C6C6 for ; Tue, 24 Apr 2018 07:03:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 5FDBEFBE09B; Tue, 24 Apr 2018 07:03:49 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A1D7FBE09A for ; Tue, 24 Apr 2018 07:03:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8F76C6C4B1 for ; Tue, 24 Apr 2018 07:03: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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 0CD691473C for ; Tue, 24 Apr 2018 07:03:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3O73f8d068511 for ; Tue, 24 Apr 2018 07:03:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3O73fhE068510 for net@FreeBSD.org; Tue, 24 Apr 2018 07:03:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227720] Kernel panic in ppp server Date: Tue, 24 Apr 2018 07:03:41 +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.1-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: 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.25 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, 24 Apr 2018 07:03:58 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227720 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |net@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Tue Apr 24 07:15:52 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 779EEFBE6F7 for ; Tue, 24 Apr 2018 07:15:52 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 183D26FFBB for ; Tue, 24 Apr 2018 07:15:51 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id DE9FA2603DA; Tue, 24 Apr 2018 09:15:49 +0200 (CEST) Subject: Re: kldload ibcore.ko fails in snapshot: FreeBSD-12.0-CURRENT-amd64-20180329-r331740-disc1 To: "Somayajulu, David" , "freebsd-net@freebsd.org" References: From: Hans Petter Selasky Message-ID: <53cea7bc-c3e5-26c3-30d8-42438e67f19f@selasky.org> Date: Tue, 24 Apr 2018 09:15:43 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 24 Apr 2018 07:15:52 -0000 On 04/24/18 01:33, Somayajulu, David wrote: > Hi All, > kldload ibcore.ko > fails in the above snapshot with the following error. > > # kldload -v /usr/obj/usr/src/amd64.amd64/sys/modules/ibcore/ibcore.ko > kldload: an error occurred while loading module /usr/obj/usr/src/amd64.amd64/sys/modules/ibcore/ibcore.ko. Please check dmesg(8) for more details. > > /var/log/messages indicates the following. > > Apr 23 16:28:07 bsd25_12 kernel: link_elf_obj: symbol if_index undefined > Apr 23 16:28:07 bsd25_12 kernel: linker_load_file: /usr/obj/usr/src/amd64.amd64/sys/modules/ibcore/ibcore.ko - unsupported file type > > What am I missing? > Hi, It looks like ibcore.ko was built w/o DEBUG_FLAGS="-DVIMAGE=1" --HPS From owner-freebsd-net@freebsd.org Tue Apr 24 08:56:08 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 89956FC0763 for ; Tue, 24 Apr 2018 08:56:08 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 09FDB871B8 for ; Tue, 24 Apr 2018 08:56:08 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id BB74FFC0761; Tue, 24 Apr 2018 08:56:07 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 93ED4FC075F; Tue, 24 Apr 2018 08:56:07 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (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 EF2988718F; Tue, 24 Apr 2018 08:56:06 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id w3O8tr2c086842 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 24 Apr 2018 11:55:57 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua w3O8tr2c086842 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id w3O8trSY086841; Tue, 24 Apr 2018 11:55:53 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 24 Apr 2018 11:55:53 +0300 From: Konstantin Belousov To: current@freebsd.org Cc: net@freebsd.org, menny@mellanox.com Subject: mlx5(4) jumbo receive Message-ID: <20180424085553.GA6887@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.5 (2018-04-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 24 Apr 2018 08:56:08 -0000 Hello, the patch below is of interest for people who use Mellanox Connect-X/4 and 5 ethernet adapters and configure it for jumbo frames. The patch should improve the system behavior on low or fragmented memory situations. See the commit message for detailed description. Also, the patch should not cause performance degradation for the normal 1500 MTU by keeping the same configuration as currently unpatched driver. I am interested in hearing about regressions (or not) caused by the change. commit f25c0c624177a1ca06ca051b0adb842acb66ec11 Author: Konstantin Belousov Date: Wed Nov 22 20:14:53 2017 +0200 mlx5en: Handle jumbo frames without requiring big clusters. The scatter list is formed by the chunks of MCLBYTES each, and larger than default packets are returned to the stack as the mbuf chain. This is an improvements over the original patch by hanss@mellanox.com which solves some busdma issues and sizes WQEs scatter list to only have the minimal sufficient number of elements. In particular, for the default MTU 1500 bytes the receive queue format is not changed comparing to the unpatched driver, avoiding a reported performance regression. Issue: 1065432 Issue: 1184316 Change-Id: Ib63a5ef55abd6ef1ec9b296e2cef88e4604bbd29 Signed-off-by: Konstantin Belousov diff --git a/sys/dev/mlx5/mlx5_en/en.h b/sys/dev/mlx5/mlx5_en/en.h index b5000c32eaf..ff5ef446e34 100644 --- a/sys/dev/mlx5/mlx5_en/en.h +++ b/sys/dev/mlx5/mlx5_en/en.h @@ -80,8 +80,19 @@ #define MLX5E_PARAMS_DEFAULT_LOG_RQ_SIZE 0xa #define MLX5E_PARAMS_MAXIMUM_LOG_RQ_SIZE 0xe -/* freeBSD HW LRO is limited by 16KB - the size of max mbuf */ +#define MLX5E_MAX_RX_SEGS 7 + +#ifndef MLX5E_MAX_RX_BYTES +#define MLX5E_MAX_RX_BYTES MCLBYTES +#endif + +#if (MLX5E_MAX_RX_SEGS == 1) +/* FreeBSD HW LRO is limited by 16KB - the size of max mbuf */ #define MLX5E_PARAMS_DEFAULT_LRO_WQE_SZ MJUM16BYTES +#else +#define MLX5E_PARAMS_DEFAULT_LRO_WQE_SZ \ + MIN(65535, MLX5E_MAX_RX_SEGS * MLX5E_MAX_RX_BYTES) +#endif #define MLX5E_PARAMS_DEFAULT_RX_CQ_MODERATION_USEC 0x10 #define MLX5E_PARAMS_DEFAULT_RX_CQ_MODERATION_USEC_FROM_CQE 0x3 #define MLX5E_PARAMS_DEFAULT_RX_CQ_MODERATION_PKTS 0x20 @@ -530,6 +541,7 @@ struct mlx5e_rq { struct mtx mtx; bus_dma_tag_t dma_tag; u32 wqe_sz; + u32 nsegs; struct mlx5e_rq_mbuf *mbuf; struct ifnet *ifp; struct mlx5e_rq_stats stats; @@ -795,9 +807,12 @@ struct mlx5e_tx_wqe { struct mlx5e_rx_wqe { struct mlx5_wqe_srq_next_seg next; - struct mlx5_wqe_data_seg data; + struct mlx5_wqe_data_seg data[]; }; +/* the size of the structure above must be power of two */ +CTASSERT(powerof2(sizeof(struct mlx5e_rx_wqe))); + struct mlx5e_eeprom { int lock_bit; int i2c_addr; diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c index c2c4b0d7744..25544e561e3 100644 --- a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c @@ -33,9 +33,12 @@ #ifndef ETH_DRIVER_VERSION #define ETH_DRIVER_VERSION "3.4.1" #endif + char mlx5e_version[] = "Mellanox Ethernet driver" " (" ETH_DRIVER_VERSION ")"; +static int mlx5e_get_wqe_sz(struct mlx5e_priv *priv, u32 *wqe_sz, u32 *nsegs); + struct mlx5e_channel_param { struct mlx5e_rq_param rq; struct mlx5e_sq_param sq; @@ -810,6 +813,11 @@ mlx5e_create_rq(struct mlx5e_channel *c, int wq_sz; int err; int i; + u32 nsegs, wqe_sz; + + err = mlx5e_get_wqe_sz(priv, &wqe_sz, &nsegs); + if (err != 0) + goto done; /* Create DMA descriptor TAG */ if ((err = -bus_dma_tag_create( @@ -819,9 +827,9 @@ mlx5e_create_rq(struct mlx5e_channel *c, BUS_SPACE_MAXADDR, /* lowaddr */ BUS_SPACE_MAXADDR, /* highaddr */ NULL, NULL, /* filter, filterarg */ - MJUM16BYTES, /* maxsize */ - 1, /* nsegments */ - MJUM16BYTES, /* maxsegsize */ + nsegs * MLX5E_MAX_RX_BYTES, /* maxsize */ + nsegs, /* nsegments */ + nsegs * MLX5E_MAX_RX_BYTES, /* maxsegsize */ 0, /* flags */ NULL, NULL, /* lockfunc, lockfuncarg */ &rq->dma_tag))) @@ -834,23 +842,9 @@ mlx5e_create_rq(struct mlx5e_channel *c, rq->wq.db = &rq->wq.db[MLX5_RCV_DBR]; - if (priv->params.hw_lro_en) { - rq->wqe_sz = priv->params.lro_wqe_sz; - } else { - rq->wqe_sz = MLX5E_SW2MB_MTU(priv->ifp->if_mtu); - } - if (rq->wqe_sz > MJUM16BYTES) { - err = -ENOMEM; + err = mlx5e_get_wqe_sz(priv, &rq->wqe_sz, &rq->nsegs); + if (err != 0) goto err_rq_wq_destroy; - } else if (rq->wqe_sz > MJUM9BYTES) { - rq->wqe_sz = MJUM16BYTES; - } else if (rq->wqe_sz > MJUMPAGESIZE) { - rq->wqe_sz = MJUM9BYTES; - } else if (rq->wqe_sz > MCLBYTES) { - rq->wqe_sz = MJUMPAGESIZE; - } else { - rq->wqe_sz = MCLBYTES; - } wq_sz = mlx5_wq_ll_get_size(&rq->wq); @@ -861,7 +855,11 @@ mlx5e_create_rq(struct mlx5e_channel *c, rq->mbuf = malloc(wq_sz * sizeof(rq->mbuf[0]), M_MLX5EN, M_WAITOK | M_ZERO); for (i = 0; i != wq_sz; i++) { struct mlx5e_rx_wqe *wqe = mlx5_wq_ll_get_wqe(&rq->wq, i); +#if (MLX5E_MAX_RX_SEGS == 1) uint32_t byte_count = rq->wqe_sz - MLX5E_NET_IP_ALIGN; +#else + int j; +#endif err = -bus_dmamap_create(rq->dma_tag, 0, &rq->mbuf[i].dma_map); if (err != 0) { @@ -869,8 +867,15 @@ mlx5e_create_rq(struct mlx5e_channel *c, bus_dmamap_destroy(rq->dma_tag, rq->mbuf[i].dma_map); goto err_rq_mbuf_free; } - wqe->data.lkey = c->mkey_be; - wqe->data.byte_count = cpu_to_be32(byte_count | MLX5_HW_START_PADDING); + + /* set value for constant fields */ +#if (MLX5E_MAX_RX_SEGS == 1) + wqe->data[0].lkey = c->mkey_be; + wqe->data[0].byte_count = cpu_to_be32(byte_count | MLX5_HW_START_PADDING); +#else + for (j = 0; j < rq->nsegs; j++) + wqe->data[j].lkey = c->mkey_be; +#endif } rq->ifp = c->ifp; @@ -1809,16 +1814,51 @@ mlx5e_close_channel_wait(struct mlx5e_channel *volatile *pp) free(c, M_MLX5EN); } +static int +mlx5e_get_wqe_sz(struct mlx5e_priv *priv, u32 *wqe_sz, u32 *nsegs) +{ + u32 r, n; + + r = priv->params.hw_lro_en ? priv->params.lro_wqe_sz : + MLX5E_SW2MB_MTU(priv->ifp->if_mtu); + if (r > MJUM16BYTES) + return (-ENOMEM); + + if (r > MJUM9BYTES) + r = MJUM16BYTES; + else if (r > MJUMPAGESIZE) + r = MJUM9BYTES; + else if (r > MCLBYTES) + r = MJUMPAGESIZE; + else + r = MCLBYTES; + + /* + * n + 1 must be a power of two, because stride size must be. + * Stride size is 16 * (n + 1), as the first segment is + * control. + */ + for (n = howmany(r, MLX5E_MAX_RX_BYTES); !powerof2(n + 1); n++) + ; + + *wqe_sz = r; + *nsegs = n; + return (0); +} + static void mlx5e_build_rq_param(struct mlx5e_priv *priv, struct mlx5e_rq_param *param) { void *rqc = param->rqc; void *wq = MLX5_ADDR_OF(rqc, rqc, wq); + u32 wqe_sz, nsegs; + mlx5e_get_wqe_sz(priv, &wqe_sz, &nsegs); MLX5_SET(wq, wq, wq_type, MLX5_WQ_TYPE_LINKED_LIST); MLX5_SET(wq, wq, end_padding_mode, MLX5_WQ_END_PAD_MODE_ALIGN); - MLX5_SET(wq, wq, log_wq_stride, ilog2(sizeof(struct mlx5e_rx_wqe))); + MLX5_SET(wq, wq, log_wq_stride, ilog2(sizeof(struct mlx5e_rx_wqe) + + nsegs * sizeof(struct mlx5_wqe_data_seg))); MLX5_SET(wq, wq, log_wq_sz, priv->params.log_rq_size); MLX5_SET(wq, wq, pd, priv->pdn); diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c b/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c index fb14be43b32..5868b0a2f55 100644 --- a/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c @@ -32,21 +32,47 @@ static inline int mlx5e_alloc_rx_wqe(struct mlx5e_rq *rq, struct mlx5e_rx_wqe *wqe, u16 ix) { - bus_dma_segment_t segs[1]; + bus_dma_segment_t segs[rq->nsegs]; struct mbuf *mb; int nsegs; int err; - +#if (MLX5E_MAX_RX_SEGS != 1) + struct mbuf *mb_head; + int i; +#endif if (rq->mbuf[ix].mbuf != NULL) return (0); +#if (MLX5E_MAX_RX_SEGS == 1) mb = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, rq->wqe_sz); if (unlikely(!mb)) return (-ENOMEM); - /* set initial mbuf length */ mb->m_pkthdr.len = mb->m_len = rq->wqe_sz; +#else + mb_head = mb = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, + MLX5E_MAX_RX_BYTES); + if (unlikely(mb == NULL)) + return (-ENOMEM); + + mb->m_len = MLX5E_MAX_RX_BYTES; + mb->m_pkthdr.len = MLX5E_MAX_RX_BYTES; + for (i = 1; i < rq->nsegs; i++) { + if (mb_head->m_pkthdr.len >= rq->wqe_sz) + break; + mb = mb->m_next = m_getjcl(M_NOWAIT, MT_DATA, 0, + MLX5E_MAX_RX_BYTES); + if (unlikely(mb == NULL)) { + m_freem(mb_head); + return (-ENOMEM); + } + mb->m_len = MLX5E_MAX_RX_BYTES; + mb_head->m_pkthdr.len += MLX5E_MAX_RX_BYTES; + } + /* rewind to first mbuf in chain */ + mb = mb_head; +#endif /* get IP header aligned */ m_adj(mb, MLX5E_NET_IP_ALIGN); @@ -54,12 +80,26 @@ mlx5e_alloc_rx_wqe(struct mlx5e_rq *rq, mb, segs, &nsegs, BUS_DMA_NOWAIT); if (err != 0) goto err_free_mbuf; - if (unlikely(nsegs != 1)) { + if (unlikely(nsegs == 0)) { bus_dmamap_unload(rq->dma_tag, rq->mbuf[ix].dma_map); err = -ENOMEM; goto err_free_mbuf; } - wqe->data.addr = cpu_to_be64(segs[0].ds_addr); +#if (MLX5E_MAX_RX_SEGS == 1) + wqe->data[0].addr = cpu_to_be64(segs[0].ds_addr); +#else + wqe->data[0].addr = cpu_to_be64(segs[0].ds_addr); + wqe->data[0].byte_count = cpu_to_be32(segs[0].ds_len | + MLX5_HW_START_PADDING); + for (i = 1; i != nsegs; i++) { + wqe->data[i].addr = cpu_to_be64(segs[i].ds_addr); + wqe->data[i].byte_count = cpu_to_be32(segs[i].ds_len); + } + for (; i < rq->nsegs; i++) { + wqe->data[i].addr = 0; + wqe->data[i].byte_count = 0; + } +#endif rq->mbuf[ix].mbuf = mb; rq->mbuf[ix].data = mb->m_data; @@ -214,6 +254,9 @@ mlx5e_build_rx_mbuf(struct mlx5_cqe64 *cqe, { struct ifnet *ifp = rq->ifp; struct mlx5e_channel *c; +#if (MLX5E_MAX_RX_SEGS != 1) + struct mbuf *mb_head; +#endif int lro_num_seg; /* HW LRO session aggregated packets counter */ uint64_t tstmp; @@ -224,7 +267,26 @@ mlx5e_build_rx_mbuf(struct mlx5_cqe64 *cqe, rq->stats.lro_bytes += cqe_bcnt; } +#if (MLX5E_MAX_RX_SEGS == 1) mb->m_pkthdr.len = mb->m_len = cqe_bcnt; +#else + mb->m_pkthdr.len = cqe_bcnt; + for (mb_head = mb; mb != NULL; mb = mb->m_next) { + if (mb->m_len > cqe_bcnt) + mb->m_len = cqe_bcnt; + cqe_bcnt -= mb->m_len; + if (likely(cqe_bcnt == 0)) { + if (likely(mb->m_next != NULL)) { + /* trim off empty mbufs */ + m_freem(mb->m_next); + mb->m_next = NULL; + } + break; + } + } + /* rewind to first mbuf in chain */ + mb = mb_head; +#endif /* check if a Toeplitz hash was computed */ if (cqe->rss_hash_type != 0) { mb->m_pkthdr.flowid = be32_to_cpu(cqe->rss_hash_result); @@ -447,7 +509,10 @@ mlx5e_rx_cq_comp(struct mlx5_core_cq *mcq) int i = 0; #ifdef HAVE_PER_CQ_EVENT_PACKET - struct mbuf *mb = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, rq->wqe_sz); +#if (MHLEN < 15) +#error "MHLEN is too small" +#endif + struct mbuf *mb = m_gethdr(M_NOWAIT, MT_DATA); if (mb != NULL) { /* this code is used for debugging purpose only */ From owner-freebsd-net@freebsd.org Tue Apr 24 09:55:42 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9E2E5FC1E1C for ; Tue, 24 Apr 2018 09:55:42 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 33016762A6 for ; Tue, 24 Apr 2018 09:55:42 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id E3189FC1E1B; Tue, 24 Apr 2018 09:55:41 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CFE90FC1E19; Tue, 24 Apr 2018 09:55:41 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wr0-x229.google.com (mail-wr0-x229.google.com [IPv6:2a00:1450:400c:c0c::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4A08E762A5; Tue, 24 Apr 2018 09:55:41 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wr0-x229.google.com with SMTP id v60-v6so48966486wrc.7; Tue, 24 Apr 2018 02:55:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=kwZ1k/M1N81U2XUHmG1NDMcVWzp13Dap0jCwfFYPgKM=; b=AAtyO2J+EriwYb6LBTORjfTlbD4y5YvDAXrZL2pXF/HB584vNdzNjWD6DILxNwu2mo +ArZdE62TekhvUavch0QNMx08cfmhNOzDxfwuiLTzoM0cUPy9qDh7pD30vpEFSjjlq+r iQdrcR1p1+BVWo5apAanXrKVN8qCeBDTjh3ld2fXyMF7GUur/7Z3FFXMer4FN5FxXcON 75JlVdc6cdN5/k+lf7Kj+VOMDLgkPwpctB/qD1RYx8de4PxromRAHsPOiS8L2Qfp7EQK RbFcXHeoWwWVfl23UcT4PQdm07RWm4oeS20lTB2Lofd+8IOMlX3hXU2VqSQgFlIhdFPj 1uRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=kwZ1k/M1N81U2XUHmG1NDMcVWzp13Dap0jCwfFYPgKM=; b=jp8UO0yywl5y6ziWosJhCiSYYPPrvEM1gKIewtKLxLREdjF/+c96IilbgO0Ryxo73S gsNRpy89OOXZS37G2KHhdK7dVtcvK/sPsS182XgvVi702MgjL9ENm97CpkxXFueqff+B gfypGT0re6oeVDeYzS+xUEyrPOkc1hR3FtTp6STD0NnhzCiw5Sf4g0XJtfCC3YjyPpKJ fTaiaI2TcSmNjy/lSIh9AsYqSc9OTbL0OtUK8ubuybPlVCgwkBG4xZIV7HgbMfPdR9V0 uliSQsN286yhOzj3nbFZ4siNgqyMmcqZzKzpwiOyYm321dsN0bd2N767AcWXvLz48khf jZIg== X-Gm-Message-State: ALQs6tBfKX1auzw4UIFyVkyAviPsYPuZaPrmWnEXVfIRPVzoGJ1rKc8u wW5PntEiX9Osldc9YvrguTU= X-Google-Smtp-Source: AIpwx4/krP2QzlqEP/MqncMXeXQezpmu9BD3EM8kYHdlkyYfPzLG+tucSQk4JDNm+b3fQHyTwwRaTA== X-Received: by 2002:adf:de0c:: with SMTP id b12-v6mr12855576wrm.131.1524563740371; Tue, 24 Apr 2018 02:55:40 -0700 (PDT) Received: from bens-mac.home (LFbn-1-7077-100.w90-116.abo.wanadoo.fr. [90.116.246.100]) by smtp.gmail.com with ESMTPSA id c141sm15530241wmh.21.2018.04.24.02.55.39 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Apr 2018 02:55:39 -0700 (PDT) Content-Type: text/plain; charset=us-ascii; delsp=yes; format=flowed Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: mlx5(4) jumbo receive From: Ben RUBSON In-Reply-To: <20180424085553.GA6887@kib.kiev.ua> Date: Tue, 24 Apr 2018 11:55:38 +0200 Cc: current@freebsd.org, menny@mellanox.com, net@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <2AE60706-A9E1-4F47-AB16-AA1292405671@gmail.com> References: <20180424085553.GA6887@kib.kiev.ua> To: Konstantin Belousov X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 24 Apr 2018 09:55:42 -0000 On 24 Apr, Konstantin Belousov wrote: > Hello, > the patch below is of interest for people who use Mellanox Connect-X/4 > and 5 ethernet adapters and configure it for jumbo frames. Hi Konstantin, Good news ! Do you think your work could be easily ported to Connect-X/3 devices (mlx4 driver) ? Thank you very much, Ben For completeness regarding mlx4, some work has been started on it : https://reviews.freebsd.org/D11560 There's a discussion : https://lists.freebsd.org/pipermail/freebsd-net/2017-June/048293.html Which continues here : https://lists.freebsd.org/pipermail/freebsd-net/2017-September/048906.html From owner-freebsd-net@freebsd.org Tue Apr 24 11:11:02 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5E7C2F8B2C6 for ; Tue, 24 Apr 2018 11:11:02 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1DC7B85196 for ; Tue, 24 Apr 2018 11:11:02 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id C9158F8B2AE; Tue, 24 Apr 2018 11:11:01 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B533CF8B2AB; Tue, 24 Apr 2018 11:11:01 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (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 28DB985187; Tue, 24 Apr 2018 11:11:01 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id w3OBAojU017230 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 24 Apr 2018 14:10:53 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua w3OBAojU017230 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id w3OBAowW017229; Tue, 24 Apr 2018 14:10:50 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 24 Apr 2018 14:10:50 +0300 From: Konstantin Belousov To: Ben RUBSON Cc: current@freebsd.org, menyy@mellanox.com, net@freebsd.org Subject: Re: mlx5(4) jumbo receive Message-ID: <20180424111050.GB6887@kib.kiev.ua> References: <20180424085553.GA6887@kib.kiev.ua> <2AE60706-A9E1-4F47-AB16-AA1292405671@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2AE60706-A9E1-4F47-AB16-AA1292405671@gmail.com> User-Agent: Mutt/1.9.5 (2018-04-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 24 Apr 2018 11:11:02 -0000 On Tue, Apr 24, 2018 at 11:55:38AM +0200, Ben RUBSON wrote: > On 24 Apr, Konstantin Belousov wrote: > > > Hello, > > the patch below is of interest for people who use Mellanox Connect-X/4 > > and 5 ethernet adapters and configure it for jumbo frames. > > Hi Konstantin, > > Good news ! > Do you think your work could be easily ported to Connect-X/3 devices (mlx4 > driver) ? No, it cannot be easily ported. The port might happen, but I do not promise this. > > Thank you very much, > > Ben > > For completeness regarding mlx4, some work has been started on it : > https://reviews.freebsd.org/D11560 > There's a discussion : > https://lists.freebsd.org/pipermail/freebsd-net/2017-June/048293.html > Which continues here : > https://lists.freebsd.org/pipermail/freebsd-net/2017-September/048906.html From owner-freebsd-net@freebsd.org Tue Apr 24 13:44:35 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BED75FA4BF2 for ; Tue, 24 Apr 2018 13:44:35 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 5A92E866C8 for ; Tue, 24 Apr 2018 13:44:35 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: by mailman.ysv.freebsd.org (Postfix) id 15B50FA4BEF; Tue, 24 Apr 2018 13:44:35 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E4DCEFA4BED; Tue, 24 Apr 2018 13:44:34 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 34E37866C7; Tue, 24 Apr 2018 13:44:33 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id w3ODiO7R090978; Tue, 24 Apr 2018 06:44:24 -0700 (PDT) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id w3ODiOdA090977; Tue, 24 Apr 2018 06:44:24 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201804241344.w3ODiOdA090977@pdx.rh.CN85.dnsmgr.net> Subject: Re: mlx5(4) jumbo receive In-Reply-To: <20180424085553.GA6887@kib.kiev.ua> To: Konstantin Belousov Date: Tue, 24 Apr 2018 06:44:24 -0700 (PDT) CC: current@freebsd.org, menny@mellanox.com, net@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 24 Apr 2018 13:44:36 -0000 > Hello, > the patch below is of interest for people who use Mellanox Connect-X/4 > and 5 ethernet adapters and configure it for jumbo frames. The patch > should improve the system behavior on low or fragmented memory situations. > See the commit message for detailed description. Also, the patch should > not cause performance degradation for the normal 1500 MTU by keeping the > same configuration as currently unpatched driver. > > I am interested in hearing about regressions (or not) caused by the > change. I'll hopefully get to test this early next week, but my schedule is very full until then. I do have a fist full of sytle(9) and other comments though. You can probably ignore my nits on capitalize start of comments, it seems that this may be the style of this code.... > commit f25c0c624177a1ca06ca051b0adb842acb66ec11 > Author: Konstantin Belousov > Date: Wed Nov 22 20:14:53 2017 +0200 > > mlx5en: Handle jumbo frames without requiring big clusters. > > The scatter list is formed by the chunks of MCLBYTES each, and larger > than default packets are returned to the stack as the mbuf chain. > > This is an improvements over the original patch by hanss@mellanox.com > which solves some busdma issues and sizes WQEs scatter list to only > have the minimal sufficient number of elements. In particular, for > the default MTU 1500 bytes the receive queue format is not changed > comparing to the unpatched driver, avoiding a reported performance > regression. > > Issue: 1065432 > Issue: 1184316 > Change-Id: Ib63a5ef55abd6ef1ec9b296e2cef88e4604bbd29 > Signed-off-by: Konstantin Belousov > > diff --git a/sys/dev/mlx5/mlx5_en/en.h b/sys/dev/mlx5/mlx5_en/en.h > index b5000c32eaf..ff5ef446e34 100644 > --- a/sys/dev/mlx5/mlx5_en/en.h > +++ b/sys/dev/mlx5/mlx5_en/en.h > @@ -80,8 +80,19 @@ > #define MLX5E_PARAMS_DEFAULT_LOG_RQ_SIZE 0xa > #define MLX5E_PARAMS_MAXIMUM_LOG_RQ_SIZE 0xe > > -/* freeBSD HW LRO is limited by 16KB - the size of max mbuf */ Though it is tempting to fix spelling errors and stylish things while working on code it usually helps to sepeate those into either a pre or post commit to reduce the lines of code change that need to be looked at when reviewing a diff. This also helps diff(1) to chunk things a bit better. > +#define MLX5E_MAX_RX_SEGS 7 > + > +#ifndef MLX5E_MAX_RX_BYTES > +#define MLX5E_MAX_RX_BYTES MCLBYTES > +#endif > + > +#if (MLX5E_MAX_RX_SEGS == 1) > +/* FreeBSD HW LRO is limited by 16KB - the size of max mbuf */ > #define MLX5E_PARAMS_DEFAULT_LRO_WQE_SZ MJUM16BYTES > +#else > +#define MLX5E_PARAMS_DEFAULT_LRO_WQE_SZ \ > + MIN(65535, MLX5E_MAX_RX_SEGS * MLX5E_MAX_RX_BYTES) > +#endif > #define MLX5E_PARAMS_DEFAULT_RX_CQ_MODERATION_USEC 0x10 > #define MLX5E_PARAMS_DEFAULT_RX_CQ_MODERATION_USEC_FROM_CQE 0x3 > #define MLX5E_PARAMS_DEFAULT_RX_CQ_MODERATION_PKTS 0x20 > @@ -530,6 +541,7 @@ struct mlx5e_rq { > struct mtx mtx; > bus_dma_tag_t dma_tag; > u32 wqe_sz; > + u32 nsegs; Alphabetic order, and should just use modify the current u32 line: u32 nsegs, wqe_sz; > struct mlx5e_rq_mbuf *mbuf; > struct ifnet *ifp; > struct mlx5e_rq_stats stats; > @@ -795,9 +807,12 @@ struct mlx5e_tx_wqe { > > struct mlx5e_rx_wqe { > struct mlx5_wqe_srq_next_seg next; > - struct mlx5_wqe_data_seg data; > + struct mlx5_wqe_data_seg data[]; None standard way to declare a pointer? > }; > > +/* the size of the structure above must be power of two */ the should be The. > +CTASSERT(powerof2(sizeof(struct mlx5e_rx_wqe))); > + > struct mlx5e_eeprom { > int lock_bit; > int i2c_addr; > diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c > index c2c4b0d7744..25544e561e3 100644 > --- a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c > +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c > @@ -33,9 +33,12 @@ > #ifndef ETH_DRIVER_VERSION > #define ETH_DRIVER_VERSION "3.4.1" > #endif > + Adding white space is a style change, and actually unwanted right here as the next line is tightly coupled to the previous line. > char mlx5e_version[] = "Mellanox Ethernet driver" > " (" ETH_DRIVER_VERSION ")"; > > +static int mlx5e_get_wqe_sz(struct mlx5e_priv *priv, u32 *wqe_sz, u32 *nsegs); > + Could you move the function before use and eliminate the need for the forward declare? > struct mlx5e_channel_param { > struct mlx5e_rq_param rq; > struct mlx5e_sq_param sq; > @@ -810,6 +813,11 @@ mlx5e_create_rq(struct mlx5e_channel *c, > int wq_sz; > int err; > int i; > + u32 nsegs, wqe_sz; > + > + err = mlx5e_get_wqe_sz(priv, &wqe_sz, &nsegs); > + if (err != 0) > + goto done; > > /* Create DMA descriptor TAG */ > if ((err = -bus_dma_tag_create( > @@ -819,9 +827,9 @@ mlx5e_create_rq(struct mlx5e_channel *c, > BUS_SPACE_MAXADDR, /* lowaddr */ > BUS_SPACE_MAXADDR, /* highaddr */ > NULL, NULL, /* filter, filterarg */ > - MJUM16BYTES, /* maxsize */ > - 1, /* nsegments */ > - MJUM16BYTES, /* maxsegsize */ > + nsegs * MLX5E_MAX_RX_BYTES, /* maxsize */ > + nsegs, /* nsegments */ > + nsegs * MLX5E_MAX_RX_BYTES, /* maxsegsize */ > 0, /* flags */ > NULL, NULL, /* lockfunc, lockfuncarg */ > &rq->dma_tag))) > @@ -834,23 +842,9 @@ mlx5e_create_rq(struct mlx5e_channel *c, > > rq->wq.db = &rq->wq.db[MLX5_RCV_DBR]; > > - if (priv->params.hw_lro_en) { > - rq->wqe_sz = priv->params.lro_wqe_sz; > - } else { > - rq->wqe_sz = MLX5E_SW2MB_MTU(priv->ifp->if_mtu); > - } > - if (rq->wqe_sz > MJUM16BYTES) { > - err = -ENOMEM; > + err = mlx5e_get_wqe_sz(priv, &rq->wqe_sz, &rq->nsegs); > + if (err != 0) > goto err_rq_wq_destroy; > - } else if (rq->wqe_sz > MJUM9BYTES) { > - rq->wqe_sz = MJUM16BYTES; > - } else if (rq->wqe_sz > MJUMPAGESIZE) { > - rq->wqe_sz = MJUM9BYTES; > - } else if (rq->wqe_sz > MCLBYTES) { > - rq->wqe_sz = MJUMPAGESIZE; > - } else { > - rq->wqe_sz = MCLBYTES; > - } > > wq_sz = mlx5_wq_ll_get_size(&rq->wq); > > @@ -861,7 +855,11 @@ mlx5e_create_rq(struct mlx5e_channel *c, > rq->mbuf = malloc(wq_sz * sizeof(rq->mbuf[0]), M_MLX5EN, M_WAITOK | M_ZERO); > for (i = 0; i != wq_sz; i++) { > struct mlx5e_rx_wqe *wqe = mlx5_wq_ll_get_wqe(&rq->wq, i); > +#if (MLX5E_MAX_RX_SEGS == 1) > uint32_t byte_count = rq->wqe_sz - MLX5E_NET_IP_ALIGN; > +#else > + int j; > +#endif > > err = -bus_dmamap_create(rq->dma_tag, 0, &rq->mbuf[i].dma_map); > if (err != 0) { > @@ -869,8 +867,15 @@ mlx5e_create_rq(struct mlx5e_channel *c, > bus_dmamap_destroy(rq->dma_tag, rq->mbuf[i].dma_map); > goto err_rq_mbuf_free; > } > - wqe->data.lkey = c->mkey_be; > - wqe->data.byte_count = cpu_to_be32(byte_count | MLX5_HW_START_PADDING); > + > + /* set value for constant fields */ > +#if (MLX5E_MAX_RX_SEGS == 1) > + wqe->data[0].lkey = c->mkey_be; > + wqe->data[0].byte_count = cpu_to_be32(byte_count | MLX5_HW_START_PADDING); > +#else > + for (j = 0; j < rq->nsegs; j++) > + wqe->data[j].lkey = c->mkey_be; > +#endif > } > > rq->ifp = c->ifp; > @@ -1809,16 +1814,51 @@ mlx5e_close_channel_wait(struct mlx5e_channel *volatile *pp) > free(c, M_MLX5EN); > } > > +static int > +mlx5e_get_wqe_sz(struct mlx5e_priv *priv, u32 *wqe_sz, u32 *nsegs) > +{ > + u32 r, n; Alpah order on variables: u32 n, r; > + > + r = priv->params.hw_lro_en ? priv->params.lro_wqe_sz : > + MLX5E_SW2MB_MTU(priv->ifp->if_mtu); > + if (r > MJUM16BYTES) > + return (-ENOMEM); > + > + if (r > MJUM9BYTES) > + r = MJUM16BYTES; > + else if (r > MJUMPAGESIZE) > + r = MJUM9BYTES; > + else if (r > MCLBYTES) > + r = MJUMPAGESIZE; > + else > + r = MCLBYTES; > + > + /* > + * n + 1 must be a power of two, because stride size must be. > + * Stride size is 16 * (n + 1), as the first segment is > + * control. > + */ > + for (n = howmany(r, MLX5E_MAX_RX_BYTES); !powerof2(n + 1); n++) > + ; > + > + *wqe_sz = r; > + *nsegs = n; > + return (0); > +} > + > static void > mlx5e_build_rq_param(struct mlx5e_priv *priv, > struct mlx5e_rq_param *param) > { > void *rqc = param->rqc; > void *wq = MLX5_ADDR_OF(rqc, rqc, wq); > + u32 wqe_sz, nsegs; Variable order: nsegs, wqe_sz; > > + mlx5e_get_wqe_sz(priv, &wqe_sz, &nsegs); > MLX5_SET(wq, wq, wq_type, MLX5_WQ_TYPE_LINKED_LIST); > MLX5_SET(wq, wq, end_padding_mode, MLX5_WQ_END_PAD_MODE_ALIGN); > - MLX5_SET(wq, wq, log_wq_stride, ilog2(sizeof(struct mlx5e_rx_wqe))); > + MLX5_SET(wq, wq, log_wq_stride, ilog2(sizeof(struct mlx5e_rx_wqe) + > + nsegs * sizeof(struct mlx5_wqe_data_seg))); > MLX5_SET(wq, wq, log_wq_sz, priv->params.log_rq_size); > MLX5_SET(wq, wq, pd, priv->pdn); > > diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c b/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c > index fb14be43b32..5868b0a2f55 100644 > --- a/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c > +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c > @@ -32,21 +32,47 @@ static inline int > mlx5e_alloc_rx_wqe(struct mlx5e_rq *rq, > struct mlx5e_rx_wqe *wqe, u16 ix) > { > - bus_dma_segment_t segs[1]; > + bus_dma_segment_t segs[rq->nsegs]; This code line compiles? Or another odd pointer declare? > struct mbuf *mb; > int nsegs; > int err; > - > +#if (MLX5E_MAX_RX_SEGS != 1) > + struct mbuf *mb_head; > + int i; > +#endif > if (rq->mbuf[ix].mbuf != NULL) > return (0); > > +#if (MLX5E_MAX_RX_SEGS == 1) > mb = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, rq->wqe_sz); > if (unlikely(!mb)) > return (-ENOMEM); > > - /* set initial mbuf length */ > mb->m_pkthdr.len = mb->m_len = rq->wqe_sz; > +#else > + mb_head = mb = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, > + MLX5E_MAX_RX_BYTES); > + if (unlikely(mb == NULL)) > + return (-ENOMEM); > + > + mb->m_len = MLX5E_MAX_RX_BYTES; > + mb->m_pkthdr.len = MLX5E_MAX_RX_BYTES; > > + for (i = 1; i < rq->nsegs; i++) { > + if (mb_head->m_pkthdr.len >= rq->wqe_sz) > + break; > + mb = mb->m_next = m_getjcl(M_NOWAIT, MT_DATA, 0, > + MLX5E_MAX_RX_BYTES); > + if (unlikely(mb == NULL)) { > + m_freem(mb_head); > + return (-ENOMEM); > + } > + mb->m_len = MLX5E_MAX_RX_BYTES; > + mb_head->m_pkthdr.len += MLX5E_MAX_RX_BYTES; > + } > + /* rewind to first mbuf in chain */ > + mb = mb_head; > +#endif > /* get IP header aligned */ > m_adj(mb, MLX5E_NET_IP_ALIGN); > > @@ -54,12 +80,26 @@ mlx5e_alloc_rx_wqe(struct mlx5e_rq *rq, > mb, segs, &nsegs, BUS_DMA_NOWAIT); > if (err != 0) > goto err_free_mbuf; > - if (unlikely(nsegs != 1)) { > + if (unlikely(nsegs == 0)) { > bus_dmamap_unload(rq->dma_tag, rq->mbuf[ix].dma_map); > err = -ENOMEM; > goto err_free_mbuf; > } > - wqe->data.addr = cpu_to_be64(segs[0].ds_addr); > +#if (MLX5E_MAX_RX_SEGS == 1) > + wqe->data[0].addr = cpu_to_be64(segs[0].ds_addr); > +#else > + wqe->data[0].addr = cpu_to_be64(segs[0].ds_addr); > + wqe->data[0].byte_count = cpu_to_be32(segs[0].ds_len | > + MLX5_HW_START_PADDING); > + for (i = 1; i != nsegs; i++) { > + wqe->data[i].addr = cpu_to_be64(segs[i].ds_addr); > + wqe->data[i].byte_count = cpu_to_be32(segs[i].ds_len); > + } > + for (; i < rq->nsegs; i++) { > + wqe->data[i].addr = 0; > + wqe->data[i].byte_count = 0; > + } > +#endif > > rq->mbuf[ix].mbuf = mb; > rq->mbuf[ix].data = mb->m_data; > @@ -214,6 +254,9 @@ mlx5e_build_rx_mbuf(struct mlx5_cqe64 *cqe, > { > struct ifnet *ifp = rq->ifp; > struct mlx5e_channel *c; > +#if (MLX5E_MAX_RX_SEGS != 1) > + struct mbuf *mb_head; > +#endif > int lro_num_seg; /* HW LRO session aggregated packets counter */ > uint64_t tstmp; > > @@ -224,7 +267,26 @@ mlx5e_build_rx_mbuf(struct mlx5_cqe64 *cqe, > rq->stats.lro_bytes += cqe_bcnt; > } > > +#if (MLX5E_MAX_RX_SEGS == 1) > mb->m_pkthdr.len = mb->m_len = cqe_bcnt; > +#else > + mb->m_pkthdr.len = cqe_bcnt; > + for (mb_head = mb; mb != NULL; mb = mb->m_next) { > + if (mb->m_len > cqe_bcnt) > + mb->m_len = cqe_bcnt; > + cqe_bcnt -= mb->m_len; > + if (likely(cqe_bcnt == 0)) { > + if (likely(mb->m_next != NULL)) { > + /* trim off empty mbufs */ Trim > + m_freem(mb->m_next); > + mb->m_next = NULL; > + } > + break; > + } > + } > + /* rewind to first mbuf in chain */ Rewind > + mb = mb_head; > +#endif > /* check if a Toeplitz hash was computed */ > if (cqe->rss_hash_type != 0) { > mb->m_pkthdr.flowid = be32_to_cpu(cqe->rss_hash_result); > @@ -447,7 +509,10 @@ mlx5e_rx_cq_comp(struct mlx5_core_cq *mcq) > int i = 0; > > #ifdef HAVE_PER_CQ_EVENT_PACKET > - struct mbuf *mb = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, rq->wqe_sz); > +#if (MHLEN < 15) > +#error "MHLEN is too small" > +#endif > + struct mbuf *mb = m_gethdr(M_NOWAIT, MT_DATA); > > if (mb != NULL) { > /* this code is used for debugging purpose only */ > _______________________________________________ > 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" > -- Rod Grimes rgrimes@freebsd.org From owner-freebsd-net@freebsd.org Tue Apr 24 14:00:19 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DEB6BFA5B82 for ; Tue, 24 Apr 2018 14:00:18 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 753CC6A586 for ; Tue, 24 Apr 2018 14:00:18 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 32F56FA5B7D; Tue, 24 Apr 2018 14:00:18 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DB74FFA5B7A; Tue, 24 Apr 2018 14:00:17 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (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 1F7546A581; Tue, 24 Apr 2018 14:00:17 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id w3ODxx0t054487 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 24 Apr 2018 17:00:03 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua w3ODxx0t054487 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id w3ODxxS0054486; Tue, 24 Apr 2018 16:59:59 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 24 Apr 2018 16:59:59 +0300 From: Konstantin Belousov To: "Rodney W. Grimes" Cc: current@freebsd.org, menyy@mellanox.com, net@freebsd.org Subject: Re: mlx5(4) jumbo receive Message-ID: <20180424135959.GC6887@kib.kiev.ua> References: <20180424085553.GA6887@kib.kiev.ua> <201804241344.w3ODiOdA090977@pdx.rh.CN85.dnsmgr.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201804241344.w3ODiOdA090977@pdx.rh.CN85.dnsmgr.net> User-Agent: Mutt/1.9.5 (2018-04-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 24 Apr 2018 14:00:19 -0000 On Tue, Apr 24, 2018 at 06:44:24AM -0700, Rodney W. Grimes wrote: > > Hello, > > the patch below is of interest for people who use Mellanox Connect-X/4 > > and 5 ethernet adapters and configure it for jumbo frames. The patch > > should improve the system behavior on low or fragmented memory situations. > > See the commit message for detailed description. Also, the patch should > > not cause performance degradation for the normal 1500 MTU by keeping the > > same configuration as currently unpatched driver. > > > > I am interested in hearing about regressions (or not) caused by the > > change. > > I'll hopefully get to test this early next week, but my schedule > is very full until then. > > I do have a fist full of sytle(9) and other comments though. > > You can probably ignore my nits on capitalize start of comments, > it seems that this may be the style of this code.... > > > commit f25c0c624177a1ca06ca051b0adb842acb66ec11 > > Author: Konstantin Belousov > > Date: Wed Nov 22 20:14:53 2017 +0200 > > > > mlx5en: Handle jumbo frames without requiring big clusters. > > > > The scatter list is formed by the chunks of MCLBYTES each, and larger > > than default packets are returned to the stack as the mbuf chain. > > > > This is an improvements over the original patch by hanss@mellanox.com > > which solves some busdma issues and sizes WQEs scatter list to only > > have the minimal sufficient number of elements. In particular, for > > the default MTU 1500 bytes the receive queue format is not changed > > comparing to the unpatched driver, avoiding a reported performance > > regression. > > > > Issue: 1065432 > > Issue: 1184316 > > Change-Id: Ib63a5ef55abd6ef1ec9b296e2cef88e4604bbd29 > > Signed-off-by: Konstantin Belousov > > > > diff --git a/sys/dev/mlx5/mlx5_en/en.h b/sys/dev/mlx5/mlx5_en/en.h > > index b5000c32eaf..ff5ef446e34 100644 > > --- a/sys/dev/mlx5/mlx5_en/en.h > > +++ b/sys/dev/mlx5/mlx5_en/en.h > > @@ -80,8 +80,19 @@ > > #define MLX5E_PARAMS_DEFAULT_LOG_RQ_SIZE 0xa > > #define MLX5E_PARAMS_MAXIMUM_LOG_RQ_SIZE 0xe > > > > -/* freeBSD HW LRO is limited by 16KB - the size of max mbuf */ > Though it is tempting to fix spelling errors and stylish things > while working on code it usually helps to sepeate those into > either a pre or post commit to reduce the lines of code change > that need to be looked at when reviewing a diff. This also helps > diff(1) to chunk things a bit better. > > > +#define MLX5E_MAX_RX_SEGS 7 > > + > > +#ifndef MLX5E_MAX_RX_BYTES > > +#define MLX5E_MAX_RX_BYTES MCLBYTES > > +#endif > > + > > +#if (MLX5E_MAX_RX_SEGS == 1) > > +/* FreeBSD HW LRO is limited by 16KB - the size of max mbuf */ > > #define MLX5E_PARAMS_DEFAULT_LRO_WQE_SZ MJUM16BYTES > > +#else > > +#define MLX5E_PARAMS_DEFAULT_LRO_WQE_SZ \ > > + MIN(65535, MLX5E_MAX_RX_SEGS * MLX5E_MAX_RX_BYTES) > > +#endif > > #define MLX5E_PARAMS_DEFAULT_RX_CQ_MODERATION_USEC 0x10 > > #define MLX5E_PARAMS_DEFAULT_RX_CQ_MODERATION_USEC_FROM_CQE 0x3 > > #define MLX5E_PARAMS_DEFAULT_RX_CQ_MODERATION_PKTS 0x20 > > @@ -530,6 +541,7 @@ struct mlx5e_rq { > > struct mtx mtx; > > bus_dma_tag_t dma_tag; > > u32 wqe_sz; > > + u32 nsegs; > > Alphabetic order, and should just use modify the current u32 line: > u32 nsegs, wqe_sz; > > > struct mlx5e_rq_mbuf *mbuf; > > struct ifnet *ifp; > > struct mlx5e_rq_stats stats; > > @@ -795,9 +807,12 @@ struct mlx5e_tx_wqe { > > > > struct mlx5e_rx_wqe { > > struct mlx5_wqe_srq_next_seg next; > > - struct mlx5_wqe_data_seg data; > > + struct mlx5_wqe_data_seg data[]; > > None standard way to declare a pointer? This is not a pointer declaration. It is a flexible array member. For the style issues, I will take look later. > > > }; > > > > +/* the size of the structure above must be power of two */ > the should be The. > > > +CTASSERT(powerof2(sizeof(struct mlx5e_rx_wqe))); > > + > > struct mlx5e_eeprom { > > int lock_bit; > > int i2c_addr; > > diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c > > index c2c4b0d7744..25544e561e3 100644 > > --- a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c > > +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c > > @@ -33,9 +33,12 @@ > > #ifndef ETH_DRIVER_VERSION > > #define ETH_DRIVER_VERSION "3.4.1" > > #endif > > + > Adding white space is a style change, and actually unwanted right here > as the next line is tightly coupled to the previous line. > > > char mlx5e_version[] = "Mellanox Ethernet driver" > > " (" ETH_DRIVER_VERSION ")"; > > > > +static int mlx5e_get_wqe_sz(struct mlx5e_priv *priv, u32 *wqe_sz, u32 *nsegs); > > + > > Could you move the function before use and eliminate the need > for the forward declare? > > > struct mlx5e_channel_param { > > struct mlx5e_rq_param rq; > > struct mlx5e_sq_param sq; > > @@ -810,6 +813,11 @@ mlx5e_create_rq(struct mlx5e_channel *c, > > int wq_sz; > > int err; > > int i; > > + u32 nsegs, wqe_sz; > > + > > + err = mlx5e_get_wqe_sz(priv, &wqe_sz, &nsegs); > > + if (err != 0) > > + goto done; > > > > /* Create DMA descriptor TAG */ > > if ((err = -bus_dma_tag_create( > > @@ -819,9 +827,9 @@ mlx5e_create_rq(struct mlx5e_channel *c, > > BUS_SPACE_MAXADDR, /* lowaddr */ > > BUS_SPACE_MAXADDR, /* highaddr */ > > NULL, NULL, /* filter, filterarg */ > > - MJUM16BYTES, /* maxsize */ > > - 1, /* nsegments */ > > - MJUM16BYTES, /* maxsegsize */ > > + nsegs * MLX5E_MAX_RX_BYTES, /* maxsize */ > > + nsegs, /* nsegments */ > > + nsegs * MLX5E_MAX_RX_BYTES, /* maxsegsize */ > > 0, /* flags */ > > NULL, NULL, /* lockfunc, lockfuncarg */ > > &rq->dma_tag))) > > @@ -834,23 +842,9 @@ mlx5e_create_rq(struct mlx5e_channel *c, > > > > rq->wq.db = &rq->wq.db[MLX5_RCV_DBR]; > > > > - if (priv->params.hw_lro_en) { > > - rq->wqe_sz = priv->params.lro_wqe_sz; > > - } else { > > - rq->wqe_sz = MLX5E_SW2MB_MTU(priv->ifp->if_mtu); > > - } > > - if (rq->wqe_sz > MJUM16BYTES) { > > - err = -ENOMEM; > > + err = mlx5e_get_wqe_sz(priv, &rq->wqe_sz, &rq->nsegs); > > + if (err != 0) > > goto err_rq_wq_destroy; > > - } else if (rq->wqe_sz > MJUM9BYTES) { > > - rq->wqe_sz = MJUM16BYTES; > > - } else if (rq->wqe_sz > MJUMPAGESIZE) { > > - rq->wqe_sz = MJUM9BYTES; > > - } else if (rq->wqe_sz > MCLBYTES) { > > - rq->wqe_sz = MJUMPAGESIZE; > > - } else { > > - rq->wqe_sz = MCLBYTES; > > - } > > > > wq_sz = mlx5_wq_ll_get_size(&rq->wq); > > > > @@ -861,7 +855,11 @@ mlx5e_create_rq(struct mlx5e_channel *c, > > rq->mbuf = malloc(wq_sz * sizeof(rq->mbuf[0]), M_MLX5EN, M_WAITOK | M_ZERO); > > for (i = 0; i != wq_sz; i++) { > > struct mlx5e_rx_wqe *wqe = mlx5_wq_ll_get_wqe(&rq->wq, i); > > +#if (MLX5E_MAX_RX_SEGS == 1) > > uint32_t byte_count = rq->wqe_sz - MLX5E_NET_IP_ALIGN; > > +#else > > + int j; > > +#endif > > > > err = -bus_dmamap_create(rq->dma_tag, 0, &rq->mbuf[i].dma_map); > > if (err != 0) { > > @@ -869,8 +867,15 @@ mlx5e_create_rq(struct mlx5e_channel *c, > > bus_dmamap_destroy(rq->dma_tag, rq->mbuf[i].dma_map); > > goto err_rq_mbuf_free; > > } > > - wqe->data.lkey = c->mkey_be; > > - wqe->data.byte_count = cpu_to_be32(byte_count | MLX5_HW_START_PADDING); > > + > > + /* set value for constant fields */ > > +#if (MLX5E_MAX_RX_SEGS == 1) > > + wqe->data[0].lkey = c->mkey_be; > > + wqe->data[0].byte_count = cpu_to_be32(byte_count | MLX5_HW_START_PADDING); > > +#else > > + for (j = 0; j < rq->nsegs; j++) > > + wqe->data[j].lkey = c->mkey_be; > > +#endif > > } > > > > rq->ifp = c->ifp; > > @@ -1809,16 +1814,51 @@ mlx5e_close_channel_wait(struct mlx5e_channel *volatile *pp) > > free(c, M_MLX5EN); > > } > > > > +static int > > +mlx5e_get_wqe_sz(struct mlx5e_priv *priv, u32 *wqe_sz, u32 *nsegs) > > +{ > > + u32 r, n; > Alpah order on variables: > u32 n, r; > > > + > > + r = priv->params.hw_lro_en ? priv->params.lro_wqe_sz : > > + MLX5E_SW2MB_MTU(priv->ifp->if_mtu); > > + if (r > MJUM16BYTES) > > + return (-ENOMEM); > > + > > + if (r > MJUM9BYTES) > > + r = MJUM16BYTES; > > + else if (r > MJUMPAGESIZE) > > + r = MJUM9BYTES; > > + else if (r > MCLBYTES) > > + r = MJUMPAGESIZE; > > + else > > + r = MCLBYTES; > > + > > + /* > > + * n + 1 must be a power of two, because stride size must be. > > + * Stride size is 16 * (n + 1), as the first segment is > > + * control. > > + */ > > + for (n = howmany(r, MLX5E_MAX_RX_BYTES); !powerof2(n + 1); n++) > > + ; > > + > > + *wqe_sz = r; > > + *nsegs = n; > > + return (0); > > +} > > + > > static void > > mlx5e_build_rq_param(struct mlx5e_priv *priv, > > struct mlx5e_rq_param *param) > > { > > void *rqc = param->rqc; > > void *wq = MLX5_ADDR_OF(rqc, rqc, wq); > > + u32 wqe_sz, nsegs; > Variable order: nsegs, wqe_sz; > > > > > + mlx5e_get_wqe_sz(priv, &wqe_sz, &nsegs); > > MLX5_SET(wq, wq, wq_type, MLX5_WQ_TYPE_LINKED_LIST); > > MLX5_SET(wq, wq, end_padding_mode, MLX5_WQ_END_PAD_MODE_ALIGN); > > - MLX5_SET(wq, wq, log_wq_stride, ilog2(sizeof(struct mlx5e_rx_wqe))); > > + MLX5_SET(wq, wq, log_wq_stride, ilog2(sizeof(struct mlx5e_rx_wqe) + > > + nsegs * sizeof(struct mlx5_wqe_data_seg))); > > MLX5_SET(wq, wq, log_wq_sz, priv->params.log_rq_size); > > MLX5_SET(wq, wq, pd, priv->pdn); > > > > diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c b/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c > > index fb14be43b32..5868b0a2f55 100644 > > --- a/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c > > +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c > > @@ -32,21 +32,47 @@ static inline int > > mlx5e_alloc_rx_wqe(struct mlx5e_rq *rq, > > struct mlx5e_rx_wqe *wqe, u16 ix) > > { > > - bus_dma_segment_t segs[1]; > > + bus_dma_segment_t segs[rq->nsegs]; > This code line compiles? Or another odd pointer declare? > > > struct mbuf *mb; > > int nsegs; > > int err; > > - > > +#if (MLX5E_MAX_RX_SEGS != 1) > > + struct mbuf *mb_head; > > + int i; > > +#endif > > if (rq->mbuf[ix].mbuf != NULL) > > return (0); > > > > +#if (MLX5E_MAX_RX_SEGS == 1) > > mb = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, rq->wqe_sz); > > if (unlikely(!mb)) > > return (-ENOMEM); > > > > - /* set initial mbuf length */ > > mb->m_pkthdr.len = mb->m_len = rq->wqe_sz; > > +#else > > + mb_head = mb = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, > > + MLX5E_MAX_RX_BYTES); > > + if (unlikely(mb == NULL)) > > + return (-ENOMEM); > > + > > + mb->m_len = MLX5E_MAX_RX_BYTES; > > + mb->m_pkthdr.len = MLX5E_MAX_RX_BYTES; > > > > + for (i = 1; i < rq->nsegs; i++) { > > + if (mb_head->m_pkthdr.len >= rq->wqe_sz) > > + break; > > + mb = mb->m_next = m_getjcl(M_NOWAIT, MT_DATA, 0, > > + MLX5E_MAX_RX_BYTES); > > + if (unlikely(mb == NULL)) { > > + m_freem(mb_head); > > + return (-ENOMEM); > > + } > > + mb->m_len = MLX5E_MAX_RX_BYTES; > > + mb_head->m_pkthdr.len += MLX5E_MAX_RX_BYTES; > > + } > > + /* rewind to first mbuf in chain */ > > + mb = mb_head; > > +#endif > > /* get IP header aligned */ > > m_adj(mb, MLX5E_NET_IP_ALIGN); > > > > @@ -54,12 +80,26 @@ mlx5e_alloc_rx_wqe(struct mlx5e_rq *rq, > > mb, segs, &nsegs, BUS_DMA_NOWAIT); > > if (err != 0) > > goto err_free_mbuf; > > - if (unlikely(nsegs != 1)) { > > + if (unlikely(nsegs == 0)) { > > bus_dmamap_unload(rq->dma_tag, rq->mbuf[ix].dma_map); > > err = -ENOMEM; > > goto err_free_mbuf; > > } > > - wqe->data.addr = cpu_to_be64(segs[0].ds_addr); > > +#if (MLX5E_MAX_RX_SEGS == 1) > > + wqe->data[0].addr = cpu_to_be64(segs[0].ds_addr); > > +#else > > + wqe->data[0].addr = cpu_to_be64(segs[0].ds_addr); > > + wqe->data[0].byte_count = cpu_to_be32(segs[0].ds_len | > > + MLX5_HW_START_PADDING); > > + for (i = 1; i != nsegs; i++) { > > + wqe->data[i].addr = cpu_to_be64(segs[i].ds_addr); > > + wqe->data[i].byte_count = cpu_to_be32(segs[i].ds_len); > > + } > > + for (; i < rq->nsegs; i++) { > > + wqe->data[i].addr = 0; > > + wqe->data[i].byte_count = 0; > > + } > > +#endif > > > > rq->mbuf[ix].mbuf = mb; > > rq->mbuf[ix].data = mb->m_data; > > @@ -214,6 +254,9 @@ mlx5e_build_rx_mbuf(struct mlx5_cqe64 *cqe, > > { > > struct ifnet *ifp = rq->ifp; > > struct mlx5e_channel *c; > > +#if (MLX5E_MAX_RX_SEGS != 1) > > + struct mbuf *mb_head; > > +#endif > > int lro_num_seg; /* HW LRO session aggregated packets counter */ > > uint64_t tstmp; > > > > @@ -224,7 +267,26 @@ mlx5e_build_rx_mbuf(struct mlx5_cqe64 *cqe, > > rq->stats.lro_bytes += cqe_bcnt; > > } > > > > +#if (MLX5E_MAX_RX_SEGS == 1) > > mb->m_pkthdr.len = mb->m_len = cqe_bcnt; > > +#else > > + mb->m_pkthdr.len = cqe_bcnt; > > + for (mb_head = mb; mb != NULL; mb = mb->m_next) { > > + if (mb->m_len > cqe_bcnt) > > + mb->m_len = cqe_bcnt; > > + cqe_bcnt -= mb->m_len; > > + if (likely(cqe_bcnt == 0)) { > > + if (likely(mb->m_next != NULL)) { > > + /* trim off empty mbufs */ > Trim > > > + m_freem(mb->m_next); > > + mb->m_next = NULL; > > + } > > + break; > > + } > > + } > > + /* rewind to first mbuf in chain */ > Rewind > > > + mb = mb_head; > > +#endif > > /* check if a Toeplitz hash was computed */ > > if (cqe->rss_hash_type != 0) { > > mb->m_pkthdr.flowid = be32_to_cpu(cqe->rss_hash_result); > > @@ -447,7 +509,10 @@ mlx5e_rx_cq_comp(struct mlx5_core_cq *mcq) > > int i = 0; > > > > #ifdef HAVE_PER_CQ_EVENT_PACKET > > - struct mbuf *mb = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, rq->wqe_sz); > > +#if (MHLEN < 15) > > +#error "MHLEN is too small" > > +#endif > > + struct mbuf *mb = m_gethdr(M_NOWAIT, MT_DATA); > > > > if (mb != NULL) { > > /* this code is used for debugging purpose only */ > > _______________________________________________ > > 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" > > > > -- > Rod Grimes rgrimes@freebsd.org From owner-freebsd-net@freebsd.org Tue Apr 24 15:35:53 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 25A8EFA9657 for ; Tue, 24 Apr 2018 15:35:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A952C82803 for ; Tue, 24 Apr 2018 15:35:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 67C16FA9654; Tue, 24 Apr 2018 15:35:52 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5522EFA9653 for ; Tue, 24 Apr 2018 15:35:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E5EF2827FC for ; Tue, 24 Apr 2018 15:35:51 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 48E2018AA3 for ; Tue, 24 Apr 2018 15:35:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3OFZpI0071737 for ; Tue, 24 Apr 2018 15:35:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3OFZpNq071736 for net@FreeBSD.org; Tue, 24 Apr 2018 15:35:51 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227720] Kernel panic in ppp server Date: Tue, 24 Apr 2018 15:35:51 +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.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: eugen@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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.25 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, 24 Apr 2018 15:35:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227720 Eugene Grosbein changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eugen@freebsd.org --- Comment #3 from Eugene Grosbein --- (In reply to Matt Allanson from comment #0) Can you attach ppp configs? Does it run as server or client of forms p2p tunnel? If it's a server, how many clients does it have at max? For crashdump you will need another (virtual) disk or add big enough additi= onal partition to your nanobsd build equal to RAM size to be sure. Add it to rc.conf: dumpdev=3D"/dev/ada1" # or /dev/ada0s1b See https://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug.html#k= erneldebug-obtain for details. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Apr 25 04:54:25 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5437FBCD04 for ; Wed, 25 Apr 2018 04:54:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 464A277DAE for ; Wed, 25 Apr 2018 04:54:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 06030FBCD02; Wed, 25 Apr 2018 04:54:25 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E8F93FBCD01 for ; Wed, 25 Apr 2018 04:54:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 86B6277D91 for ; Wed, 25 Apr 2018 04:54:24 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id B7E4B22DB2 for ; Wed, 25 Apr 2018 04:54:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3P4sNZI019204 for ; Wed, 25 Apr 2018 04:54:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3P4sNAa019203 for net@FreeBSD.org; Wed, 25 Apr 2018 04:54:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227743] bxe cards require promisc for OSPF Date: Wed, 25 Apr 2018 04:54:23 +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.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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.25 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, 25 Apr 2018 04:54:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227743 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |net@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Apr 25 07:02:11 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1A781FBECEB for ; Wed, 25 Apr 2018 07:02:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A82DB736F2 for ; Wed, 25 Apr 2018 07:02:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 6B992FBECEA; Wed, 25 Apr 2018 07:02:10 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 56FFDFBECE9 for ; Wed, 25 Apr 2018 07:02:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DF26C736EA for ; Wed, 25 Apr 2018 07:02:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 3E8D623EE5 for ; Wed, 25 Apr 2018 07:02:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3P729hl048486 for ; Wed, 25 Apr 2018 07:02:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3P729gN048485 for net@FreeBSD.org; Wed, 25 Apr 2018 07:02:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227720] Kernel panic in ppp server Date: Wed, 25 Apr 2018 07:02:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status keywords 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.25 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, 25 Apr 2018 07:02:11 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227720 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open Keywords| |crash, needs-qa --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Apr 25 11:00:37 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0C28EFA05E4 for ; Wed, 25 Apr 2018 11:00:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 9BEC186D74 for ; Wed, 25 Apr 2018 11:00:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 59B44FA05E2; Wed, 25 Apr 2018 11:00:36 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 471EAFA05E0 for ; Wed, 25 Apr 2018 11:00:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D5BD886D6F for ; Wed, 25 Apr 2018 11: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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 0CB0325DC9 for ; Wed, 25 Apr 2018 11:00:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3PB0YGF036468 for ; Wed, 25 Apr 2018 11:00:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3PB0YWI036464 for net@FreeBSD.org; Wed, 25 Apr 2018 11:00:34 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 213606] [bxe] LACP not working with qlogic BCM57800 Date: Wed, 25 Apr 2018 11:00:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: eugen@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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.25 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, 25 Apr 2018 11:00:37 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213606 Eugene Grosbein changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|LACP not working with |[bxe] LACP not working with |qlogic BCM57800 |qlogic BCM57800 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Apr 25 11:21:50 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A6F69FA207F for ; Wed, 25 Apr 2018 11:21:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 3DC266AC9A for ; Wed, 25 Apr 2018 11:21:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id EAD38FA2070; Wed, 25 Apr 2018 11:21:49 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8613FA206B for ; Wed, 25 Apr 2018 11:21:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7373E6AC71 for ; Wed, 25 Apr 2018 11:21:49 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 98DD5261AA for ; Wed, 25 Apr 2018 11:21:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3PBLmtP093021 for ; Wed, 25 Apr 2018 11:21:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3PBLmTQ093020 for net@FreeBSD.org; Wed, 25 Apr 2018 11:21:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 174850] [bxe] [patch] bxe driver does not receive multicasts Date: Wed, 25 Apr 2018 11:21:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: eugen@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: 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.25 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, 25 Apr 2018 11:21:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D174850 Eugene Grosbein changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=3D2= 136 | |06 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Apr 25 11:21:49 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8ABEFFA206A for ; Wed, 25 Apr 2018 11:21:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 08BAC6AC5E for ; Wed, 25 Apr 2018 11:21:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id BC717FA2062; Wed, 25 Apr 2018 11:21:48 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A9F37FA205F for ; Wed, 25 Apr 2018 11:21:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 415DE6AC37 for ; Wed, 25 Apr 2018 11:21:48 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 7B1A8261A1 for ; Wed, 25 Apr 2018 11:21:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3PBLlaZ092961 for ; Wed, 25 Apr 2018 11:21:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3PBLlif092959 for net@FreeBSD.org; Wed, 25 Apr 2018 11:21:47 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 213606] [bxe] multicast (LACP/OSPF) not working with qlogic BCM57800 Date: Wed, 25 Apr 2018 11:21:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: eugen@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc see_also 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.25 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, 25 Apr 2018 11:21:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213606 Eugene Grosbein changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |edavis@FreeBSD.org See Also| |https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=3D1= 748 | |50 Summary|[bxe] LACP not working with |[bxe] multicast (LACP/OSPF) |qlogic BCM57800 |not working with qlogic | |BCM57800 --- Comment #19 from Eugene Grosbein --- Here is suspicious commit that might broke bxe(4) multicast processing: https://svnweb.freebsd.org/base/head/sys/dev/bxe/bxe.c?revision=3D266979&vi= ew=3Dmarkup See also older PR https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D174850 describing same problem for FreeBSD 8.x Currect bxe(4) code has some processing for IFF_ALLMULTI but it does not se= em functional: https://svnweb.freebsd.org/base/head/sys/dev/bxe/bxe.c?revision=3D266979&vi= ew=3Dmarkup#l12664 Adding edavis that may have some thoughts. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Apr 25 11:25:28 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D34DEFA22B8 for ; Wed, 25 Apr 2018 11:25:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 6C5316CBC2 for ; Wed, 25 Apr 2018 11:25:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 283C9FA22B6; Wed, 25 Apr 2018 11:25:28 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 15F6AFA22B3 for ; Wed, 25 Apr 2018 11:25:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A52046CBB8 for ; Wed, 25 Apr 2018 11:25:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 83DDD261D5 for ; Wed, 25 Apr 2018 11:25:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3PBPQAN003254 for ; Wed, 25 Apr 2018 11:25:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3PBPQNX003253 for net@FreeBSD.org; Wed, 25 Apr 2018 11:25:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 213606] [bxe] multicast (LACP/OSPF) not working with qlogic BCM57800 Date: Wed, 25 Apr 2018 11:25:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: eugen@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: davidcs@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.25 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, 25 Apr 2018 11:25:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213606 Eugene Grosbein changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|net@FreeBSD.org |davidcs@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Apr 25 11:26:16 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 52470FA22F9 for ; Wed, 25 Apr 2018 11:26:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id DE1856CC70 for ; Wed, 25 Apr 2018 11:26:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9D2AEFA22F5; Wed, 25 Apr 2018 11:26:15 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 893EBFA22F4 for ; Wed, 25 Apr 2018 11:26:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 223B36CC6D for ; Wed, 25 Apr 2018 11:26:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 7D4BE261DD for ; Wed, 25 Apr 2018 11:26:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3PBQEMJ004321 for ; Wed, 25 Apr 2018 11:26:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3PBQEMN004320 for net@FreeBSD.org; Wed, 25 Apr 2018 11:26:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227743] bxe cards require promisc for OSPF Date: Wed, 25 Apr 2018 11:26: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: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: eugen@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 25 Apr 2018 11:26:16 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227743 Eugene Grosbein changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eugen@freebsd.org Resolution|--- |DUPLICATE Status|New |Closed --- Comment #1 from Eugene Grosbein --- This is known problem with bxe(4) driver that has broken incoming multicast processing. Closing this as duplicate of the PR 213606 that has more detail= s. Meantime, you may try to fix the driver yourself as driver author seems to = be unresponsible or switch to another NIC. *** This bug has been marked as a duplicate of bug 213606 *** --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Apr 25 11:46:32 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 05A06FA2A60 for ; Wed, 25 Apr 2018 11:46:32 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 989B66FD86 for ; Wed, 25 Apr 2018 11:46:31 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (220-253-154-11.dyn.iinet.net.au [220.253.154.11]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id w3PBkL2U070581 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 25 Apr 2018 04:46:26 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: Need Netgraph Help [fixed] To: John Lyon , GPz1100a Cc: freebsd-net@freebsd.org References: <2e0525c8-2251-a5f5-45d1-fe44ebe318f7@freebsd.org> <4fee4ea6-9b35-afba-6d5d-24ecca3e28c6@freebsd.org> <3b8d46da-75e3-79f2-379c-b27a88e80733@freebsd.org> <47C0E33A-E815-4860-A25C-F29BBB8D6787@gmail.com> <1524372774786-0.post@n6.nabble.com> From: Julian Elischer Message-ID: <0616c85e-217f-fc95-646a-e53fcdc21392@freebsd.org> Date: Wed, 25 Apr 2018 19:46:13 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 25 Apr 2018 11:46:32 -0000 On 24/4/18 12:11 am, John Lyon wrote: > If you found that thread, you found my answer. :-) I'm one of the posters > on that particular PFSense thread. > > In short summary, I have a theory that should work but I haven't tested it > yet due to a lack of opportunity. The netgraph code that forwards the > EAP-OL traffic works. The problem is handling the fact that ATT tags all > traffic as VLAN ID 0, which FreeBSD's vlan interface does not support. I > filed a bug report on the matter, but was told "use Netgraph". Basically, > you either have to add/remove the vlan 0 tag since you can't create a > virtual interface on vlan 0 like you can in Linux. ok so here's what you need to do disable hw vlan so that vlan headers are visible to netgraph pass BOTH interfaces directly into a vlan0 netgraph node, oriented so the tagged side faces the interface and teh untagged side faces the  (single) eap filter. The NON eap traffic is sent to the "upper" hook of the main interface..  The second interface has nothing attached to its upper hook  (as in teh diagram  sent). The question is whether ALL traffic is vlan 0 or just traffic direct to the RG? As I said it may be a neat feature to teach the etf node about vlans and even Q-in-Q. > > > -------------------------------- > John L. Lyon > PGP Key Available At: > https://www.dropbox.com/s/skmedtscs0tgex7/02150BFE.asc > > On Sun, Apr 22, 2018 at 12:52 AM, GPz1100a wrote: > >> @John >> >> Did you ever get this fully figured out? I'm trying to do what I think is >> the same thing with my fiber internet connection - eliminate the need to >> use >> the isp provided gateway (or at least reduce its function). I'm running >> *opnsense*. This thread >> https://forum.pfsense.org/index.php?topic=111043.msg793292#msg793292 is >> what >> led me here. >> >> Three nics correspond to the following >> >> em0 - ONT (WAN) >> xl0 - 3com pci - isp provided residential gateway (RG) >> ue0 - usb nic - LAN >> >> Using Julian's code from Jan 06, 2018; 1:39pm, >> >> ngctl mkpeer em0: etf lower downstream >> ngctl name em0:lower waneapfilter >> ngctl connect waneapfilter: em0: nomatch upper >> >> ngctl mkpeer xl0: etf lower downstream >> ngctl name xl0:lower laneapfilter >> ngctl connect laneapfilter: xl0: nomatch upper >> >> * ngctl connect waneapfilter laneapfilter eapout eapout* >> >> ngctl msg waneapfilter: 'setfilter { matchhook="eapout" >> ethertype=0x888e }' >> ngctl msg laneapfilter: 'setfilter { matchhook="eapout" >> ethertype=0x888e }' >> >> When I get to the command in bold it comes back with this error: >> >> root@OPNsense:~ # ngctl connect waneapfilter laneapfilter eapout >> eapout >> ngctl: send msg: No such file or directory >> >> I'm not sure how to proceed from here. >> >> Thanks for any help you (or others) can offer. >> >> --J >> >> >> >> >> -- >> Sent from: http://freebsd.1045724.x6.nabble.com/freebsd-net-f4005075.html >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > From owner-freebsd-net@freebsd.org Wed Apr 25 11:48:11 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 48A1DFA2B83 for ; Wed, 25 Apr 2018 11:48:11 +0000 (UTC) (envelope-from vit@otcnet.ru) Received: from mail.otcnet.ru (mail.otcnet.ru [194.190.78.3]) by mx1.freebsd.org (Postfix) with ESMTP id CFC9B6FEBE for ; Wed, 25 Apr 2018 11:48:10 +0000 (UTC) (envelope-from vit@otcnet.ru) Received: from Victors-MacBook-Air-2.local (unknown [213.33.226.214]) by mail.otcnet.ru (Postfix) with ESMTPSA id D31BD59664F for ; Wed, 25 Apr 2018 14:48:02 +0300 (MSK) Subject: Re: multiple if_ipsec To: freebsd-net@freebsd.org References: <5e36ac3f-39ce-72c5-cd97-dd3c4cf551a7@yandex.ru> <30d1c5f9-56e7-c67b-43e1-e6f0457360a8@otcnet.ru> <77c37ff9-8de3-dec0-176a-2b34db136bc5@otcnet.ru> <92930ba6-828d-ecb5-ce37-36794ec80ef7@yandex.ru> <112ea6c0-1927-5f47-24c7-6888295496cf@otcnet.ru> <8d27fbd2-001d-dc46-3621-c44d8dad5522@yandex.ru> From: Victor Gamov Organization: OTCnet Message-ID: <9f94133e-bc7f-7979-72de-e6907f68a254@otcnet.ru> Date: Wed, 25 Apr 2018 14:48:07 +0300 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <8d27fbd2-001d-dc46-3621-c44d8dad5522@yandex.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 25 Apr 2018 11:48:11 -0000 On 23/04/2018 15:43, Andrey V. Elsukov wrote: > > Your security associations doesn't match your security policies. > Probably you did interfaces reconfiguration without clearing old SAs. > > I think your configuration will work, if you first will done if_ipsec(4) > configuration, then start racoon and it will generate SAs. > > To clear all old/stale configured SAs you can first stop racoon, then > run `setkey -DF` and `setkey -DPF`. Hi Andrey Thanks for your advise: I found typo in my rc.conf and now ipsec interfaces created with properly reqid. After all ipsec-interfaces created I have many SPD entries configured like '0.0.0.0/0[any] 0.0.0.0/0[any] any' with properly configured ifname=ipsec[25|26|30] But now I'm sure I have racoon misconfiguration: If I use one "sainfo anonymous" then all created SA binds to last configured ipsec-interface. So I need sainfo-entry for every remote-entry. But I still cann't understand how to bind SPD automatically created by 'ifconfig ipsec30 reqid 30 ...' to SA configured like ===== remote __Cisco_IP_30__ { my_identifier address __FreeBSD_IP__; peers_identifier address __Cisco_IP_30__; ph1id 30; } sainfo ??? { remoteid 30; } ===== If I configure sainfo address __FreeBSD_IP__ any address __Cisco_IP_30 any { remoteid 30; ..... } then I've got following error ===== racoon: DEBUG: getsainfo params: loc='0.0.0.0/0' rmt='0.0.0.0/0' peer='__Cisco_IP_30__' client='__Cisco_IP_30__' id=30 racoon: DEBUG: evaluating sainfo: loc='__FreeBSD_IP__', rmt='__Cisco_IP_30__', peer='ANY', id=30 racoon: DEBUG: check and compare ids : value mismatch (IPv4_address) racoon: DEBUG: cmpid target: '0.0.0.0/0' racoon: DEBUG: cmpid source: '__FreeBSD_IP__' racoon: DEBUG: IV freed ===== Can you please explain me how sainfo (or something else) must be properly configured? Thanks! -- CU, Victor Gamov From owner-freebsd-net@freebsd.org Wed Apr 25 12:53:30 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CEF9AFA556E for ; Wed, 25 Apr 2018 12:53:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 621FF7E879 for ; Wed, 25 Apr 2018 12:53:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 22C80FA556A; Wed, 25 Apr 2018 12:53:30 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 107E0FA5568 for ; Wed, 25 Apr 2018 12:53:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A25D67E876 for ; Wed, 25 Apr 2018 12:53: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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 02A5726DEF for ; Wed, 25 Apr 2018 12:53:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3PCrSsA024315 for ; Wed, 25 Apr 2018 12:53:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3PCrSOo024314 for net@FreeBSD.org; Wed, 25 Apr 2018 12:53:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 213606] [bxe] multicast (LACP/OSPF) not working with qlogic BCM57800 Date: Wed, 25 Apr 2018 12:53:29 +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: 11.0-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rgrimes@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: davidcs@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.25 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, 25 Apr 2018 12:53:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213606 Rodney W. Grimes changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |net@FreeBSD.org --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Wed Apr 25 13:53:24 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F7A6FA6A6D for ; Wed, 25 Apr 2018 13:53:24 +0000 (UTC) (envelope-from darkfiberiru@gmail.com) Received: from mail-oi0-x235.google.com (mail-oi0-x235.google.com [IPv6:2607:f8b0:4003:c06::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 3073C6A50E for ; Wed, 25 Apr 2018 13:53:24 +0000 (UTC) (envelope-from darkfiberiru@gmail.com) Received: by mail-oi0-x235.google.com with SMTP id y15-v6so12963982oia.13 for ; Wed, 25 Apr 2018 06:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=h8OP6g1bhov94jKEXp0p2Bw/Z2v4h9ujs8Gp0Ju0Hdc=; b=tM6eysZ4TSehUTsC0M+NPZvxs1qsnPz1lF7iZVJUOS91AP+FRJ5S1huyq+nB6PWGpS kxIA3QKq3pOJYyZIF2CSKnwYZfh27LvGzbV2tuvZjnEjOUFpUokRL41Tlxf5ayTMv939 uY2aIdXoIaPl/A1pnPJ82boDl/kQfnD7oJO0RDVhRjqchwfkTDvAnOoO1R1GfqUuEFgn KQXbE0z1wW5A63PmQDx9Slkyn+yZX7A9ZIb+Fq868XE/5D9rZK62YIpTsphLwmcw3IhG rNsF0b1lb400ga4pNuIHGA+w1A5BArL2sr+orsEXrbbmpiLmsuOdk8ErJDVFnaF+eVBN 7Z9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=h8OP6g1bhov94jKEXp0p2Bw/Z2v4h9ujs8Gp0Ju0Hdc=; b=JP2W7NLvoU34uuQzjNTmWjMNx8b2b1YsRYlOZNMsl494Dup3kNQexzNn+/7kBGeArS eKV7Yq7upGozNwZsC63sEuMM+Apu0srsBlYrYpgHr2RtHztgNDTL9dUhX7hsbfJ51SAJ UbhX7A2ddACqgK+Kgm2VdIFfEvbzVIuaNXy/kPA/wKJN6PrdOFlNlPnVbDVK5BC2VDN+ zx5K8e5bULsOUY8kLG/YgOzdx6vh4BtiGaJAYVQRMBxdxFaL3gUtZ1j5Xbu2eCU6l8mC 1LHbIHUB3SJ/uE/lK+cRxPexrYBTVTsrmoZM9RHydDY+r7HoY8qLRhD5Tti41lHRmO8S VJSA== X-Gm-Message-State: ALQs6tBe0SdSE2tUVGhET3jecuKeAvZ6nh7uZXqEKVptwr7vziLPcwkQ jvnvQsuNmQnITXs4H0BO1gjN9XRHRcOktGTKgN0= X-Google-Smtp-Source: AB8JxZoJKVy+Re7WL5U4AxIviEvpTQO0ou88imB1oJSN9a4cziZrusjvvYB1BDioOtSXZ3/kK/qzYTGDZd3dTprk/9k= X-Received: by 2002:aca:130e:: with SMTP id e14-v6mr9645766oii.33.1524664403291; Wed, 25 Apr 2018 06:53:23 -0700 (PDT) MIME-Version: 1.0 References: <20180416082736.GB48822@tom-desk.erg.abdn.ac.uk> In-Reply-To: From: Nick Wolff Date: Wed, 25 Apr 2018 13:53:12 +0000 Message-ID: Subject: Re: QOS/TOS in carp/freebsd in general To: Lee Brown Cc: freebsd-net Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 25 Apr 2018 13:53:24 -0000 On Mon, Apr 16, 2018, 6:55 PM Lee Brown wrote: > On Mon, Apr 16, 2018 at 1:27 AM, Tom Jones wrote: > > > On Sun, Apr 15, 2018 at 04:30:45PM -0400, Nick Wolff wrote: > > > Hi, > > > > > > I currently have a review in to make carp use dscp values on outgoing > > > packets. This will make it easier to preform QOS on modern switches as > we > > > have been able to drive carp insane on 10g links while throwing storage > > > traffic at it.On an interesting side note apparently after 64k mac > > address > > > moves for a single mac address in the cam table arista 7050t seems to > > with > > > out warning give up and stop moving address but leaves it in the table > > > where ever it last was. > > > > > > I was originally going to just toggle between cs7 and the old TOS low > > delay > > > setting. But it was requested that I just make it a settable Integer > > value. > > > In this case I'm planning to do 0-63 to match dscp with a default of 54 > > > (CS7) (Network Control) but you could still set the old value by > setting > > > the sysctl to 4. Anything larger then 64 would be truncated as two > shifts > > > are needed to align with the field leading. > > > > > > Does anybody do anything anywhere with the old TOS values like low > delay > > in > > > there networking infrastructure? Should this be updated in other places > > in > > > kernel and userland? It's been 20 years since TOS was deprecated and > > > replaced with DSCP. > > > > > > Any other comments or thought are always welcome. > > > > You can already do this with ipfw? > > setdscp cs7 from me to 224.0.0.18 > _______________________________________________ > 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" > You can do this in ipfw but not in pf as far as I'm aware. While having the ability in firewalls is great to me that is an administrative flexibility tool. I think it's important that we have the right code paths to handle this without workarounds. This is also a update of current code paths that brings us up to date with 20 years ago and adds the functionality for IPv6 where it was never implemented. > From owner-freebsd-net@freebsd.org Wed Apr 25 13:55:10 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 754E2FA6B0C for ; Wed, 25 Apr 2018 13:55:10 +0000 (UTC) (envelope-from sonsechang@gmail.com) Received: from mail-qk0-x229.google.com (mail-qk0-x229.google.com [IPv6:2607:f8b0:400d:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 089E66A5F0 for ; Wed, 25 Apr 2018 13:55:10 +0000 (UTC) (envelope-from sonsechang@gmail.com) Received: by mail-qk0-x229.google.com with SMTP id x22so4828412qkb.12 for ; Wed, 25 Apr 2018 06:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:date:subject:from:to:message-id:thread-topic :mime-version; bh=UZH2TXg5lIRe8mIR/sLcA5tvbe3zIPUlm9j1EFbYePs=; b=L9JCXYPH/32iMXTmvGHld4ztnHc0yxvzBUDejyyGZHI7v4YK2aEXJzPZqV50CiBFzw O13r8TipmJqPOjMJHPgFpfke94OBUgN7bmYlE2VBrXfKMy3FhqdXrNTWgCJc1lqNlEtp 7LWMRhQvpnt8j+O2n4vggOpar+1KKnxcIGgjv+MQMbCbeR1KrXu8kjHdi46eQqxepGXI YFdKL3LkzO32IyNjuA6rmS9WNI4viHVyygNMF9up1pCObBaIGWtsJ9GSwhCGzfSXYba2 vMXnoc4osD5/lSukzSK5kVKpe2iVZqzG6jRp4lQ2TVXoyeAqtt8Iz7NubhEQ2OBgaGgl MMZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:date:subject:from:to:message-id :thread-topic:mime-version; bh=UZH2TXg5lIRe8mIR/sLcA5tvbe3zIPUlm9j1EFbYePs=; b=GtgwTBSXXmMGF3YbUSB/U31ejIf5g9h1zU1GKti4h9LcIGVNP2FTmqZruouTn2YyDR W8CRyiHxC+O1r47ZDYobNOpK2RNtt6LAJjqW2Ou94dV1y7lnF/1oVotsx2bsjWrQc+PY TQWhrdqSkccTRIUbjq2v5Cm+B0MqmsA14ixtyFnBEUEg4A1H6FMSyo2Mxdc8oZ+ihSCL DnJ3uaGRJZvjz5wofMCkl2aubOKQ5iUv0m/qTI6NXyzZ7xX8Gny16eUNYqjAsLSaukXR 99MPU9hKkXTXCwZeM8gNT1sL33PDBrqZOUMhFzJiFQW9F8gOOImCO4Pu9zY5SFBeZBhZ FXmg== X-Gm-Message-State: ALQs6tAUvzrk7MrcQXEEDO2gggfKv1r16gIZJFB5vkYnXk0iofbXormB DVwUtnhITx4561z2N5IQHl3ndw== X-Google-Smtp-Source: AB8JxZrit2eGd/LR+8QclkZjSfoR8UECNNTnM7ThQEJFtvExEvKcgBAfoQ2KqElq47ijFpMmJUkGcQ== X-Received: by 10.55.33.24 with SMTP id h24mr30076442qkh.431.1524664509364; Wed, 25 Apr 2018 06:55:09 -0700 (PDT) Received: from [10.63.223.168] ([216.240.30.5]) by smtp.gmail.com with ESMTPSA id m28-v6sm10739138qta.67.2018.04.25.06.55.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Apr 2018 06:55:08 -0700 (PDT) User-Agent: Microsoft-MacOutlook/10.c.0.180410 Date: Wed, 25 Apr 2018 09:55:07 -0400 Subject: Use of radix_node_head From: Sechang Son To: freebsd-net Message-ID: Thread-Topic: Use of radix_node_head Mime-version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 25 Apr 2018 13:55:10 -0000 Hi, Some of routing data structures were modified in BSD 11. Especially radix_node_head is sort of replaced by rib_head. Can somebody explain what this change is for? Also, radix_node_head is still defined and is used by some. What is the use of this old data structure and how it should be used? Thank you! -- Sechang Son From owner-freebsd-net@freebsd.org Wed Apr 25 14:09:18 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C04A7FA6F4A for ; Wed, 25 Apr 2018 14:09:18 +0000 (UTC) (envelope-from srs0=rhof=ho=sigsegv.be=kristof@codepro.be) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3CEF66F427 for ; Wed, 25 Apr 2018 14:09:17 +0000 (UTC) (envelope-from srs0=rhof=ho=sigsegv.be=kristof@codepro.be) Received: from [172.28.128.1] (ptr-8ripyyeo30l1ufg7nwu.18120a2.ip6.access.telenet.be [IPv6:2a02:1811:2419:4e02:11cf:31d3:8a76:40ce]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id 677FD2E821; Wed, 25 Apr 2018 16:09:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sigsegv.be; s=mail; t=1524665356; bh=jA8L26ZHhO/HdYNxqUXuxKPXMyrGXpf0ls5yFAdtkXE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=fpULC2uwIhHP5g3VK0dR4y3iaQVYZwCFjEQbwgqFt7yo2Hj3D/1w7T5+UIdWpFb9p fnZWI98uxTyytaPQ3K0bPl1qxJKMFgpRXjn97HHibEDLqU+bO2RPoPS0AWG9fk6cLI 0VaPyKWfQTGQfP1QnKhzl2ztQ8UYIbxF+lHEq5eo= From: "Kristof Provost" To: "Nick Wolff" Cc: "Lee Brown" , freebsd-net Subject: Re: QOS/TOS in carp/freebsd in general Date: Wed, 25 Apr 2018 16:09:14 +0200 X-Mailer: MailMate (2.0BETAr6110) Message-ID: <30947CBE-7931-4F8D-9C78-98D9624712EA@sigsegv.be> In-Reply-To: References: <20180416082736.GB48822@tom-desk.erg.abdn.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 25 Apr 2018 14:09:19 -0000 On 25 Apr 2018, at 15:53, Nick Wolff wrote: > On Mon, Apr 16, 2018, 6:55 PM Lee Brown wrote: >> setdscp cs7 from me to 224.0.0.18 >> > > You can do this in ipfw but not in pf as far as I'm aware. You can do this in pf too. set-tos ⟨string⟩ | ⟨number⟩ Enforces a TOS for matching IP packets. TOS may be given as one of critical, inetcontrol, lowdelay, netcontrol, throughput, reliability, or one of the DiffServ Code Points: ef, af11 ... af43, cs0 ... cs7; or as either hex or decimal. (Although right now only for IPv4. I’ll hopefully commit the v6 bits soon.) Regards, Kristof From owner-freebsd-net@freebsd.org Wed Apr 25 14:12:24 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CC660FA7159 for ; Wed, 25 Apr 2018 14:12:24 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6529A6FDA8 for ; Wed, 25 Apr 2018 14:12:24 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (220-253-154-11.dyn.iinet.net.au [220.253.154.11]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id w3PECEWJ071168 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 25 Apr 2018 07:12:18 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: kldload ibcore.ko fails in snapshot: FreeBSD-12.0-CURRENT-amd64-20180329-r331740-disc1 To: Hans Petter Selasky , "Somayajulu, David" , "freebsd-net@freebsd.org" References: <53cea7bc-c3e5-26c3-30d8-42438e67f19f@selasky.org> From: Julian Elischer Message-ID: <32be98b1-4abe-3de4-ec62-c3282bc3cad2@freebsd.org> Date: Wed, 25 Apr 2018 22:12:09 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <53cea7bc-c3e5-26c3-30d8-42438e67f19f@selasky.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 25 Apr 2018 14:12:25 -0000 On 24/4/18 3:15 pm, Hans Petter Selasky wrote: > On 04/24/18 01:33, Somayajulu, David wrote: >> Hi All, >> kldload ibcore.ko >> fails in the above snapshot with the following error. >> >> # kldload -v /usr/obj/usr/src/amd64.amd64/sys/modules/ibcore/ibcore.ko >> kldload: an error occurred while loading module >> /usr/obj/usr/src/amd64.amd64/sys/modules/ibcore/ibcore.ko. Please >> check dmesg(8) for more details. >> >> /var/log/messages indicates the following. >> >> Apr 23 16:28:07 bsd25_12 kernel: link_elf_obj: symbol if_index >> undefined >> Apr 23 16:28:07 bsd25_12 kernel: linker_load_file: >> /usr/obj/usr/src/amd64.amd64/sys/modules/ibcore/ibcore.ko - >> unsupported file type >> >> What am I missing? >> > > Hi, > > It looks like ibcore.ko was built w/o DEBUG_FLAGS="-DVIMAGE=1" that shouldn't be in debug flags..   Not sure WHERE it should be, but I think that isn't it. (may work though) > > --HPS > > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > From owner-freebsd-net@freebsd.org Wed Apr 25 14:40:35 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D1EA8FA7BEA for ; Wed, 25 Apr 2018 14:40:34 +0000 (UTC) (envelope-from reshadpatuck1@gmail.com) Received: from mail-pf0-x22a.google.com (mail-pf0-x22a.google.com [IPv6:2607:f8b0:400e:c00::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 447FC7424E for ; Wed, 25 Apr 2018 14:40:34 +0000 (UTC) (envelope-from reshadpatuck1@gmail.com) Received: by mail-pf0-x22a.google.com with SMTP id z9so15411072pfe.6 for ; Wed, 25 Apr 2018 07:40:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=nxXYQ1BDoSYN1cvmHzI02r0lOTcJ0tcY5sq3k27zObA=; b=fR/Yx15LyDDIhZdJ3QSxPg3CvTjEM+7JPhWPvFq6p9puMzR+O/pTY+k5mzOSlC0Yp5 G74thsZX2fJ1aiCe2R24uiRTXOuJoTTCL+RvFer6Ey4FlI76tcsNPN7NRVn1YIQoFUte xw7aQqRNjTF51VvOrDHdwGPK12THAfToD2f+p6JIFe4DoBllGWx/DSbI3R2lfyq035/G wyJqO1NaNCGbTdk2DRSulmiosQltPhSQFkzCrroSrZ7beh0itXrpfRGLgykCO/+U7+UW ArnLTzcQq9ddGEHe3VIEuKlZUegbyg8pSZSrSO/G8EbDnNaItvR4Zq/cluVeJMQOQ3uq 0geQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=nxXYQ1BDoSYN1cvmHzI02r0lOTcJ0tcY5sq3k27zObA=; b=EBtFHuc1cYSCukOkvkW+XnuFMWK874eVrSKKU0I/A9+8elasZRF+K8pvgbgO/62qwW 5NpJEY561/TqDJQ7hzEf6ESm3oCejj7YKjvXyb9Lu66DcR+t3P63EQMNOSzTKA9rD4ne xCde4GTsHY9TrMwHNtrhF9GgORzBboqabG3Tl+b8DUUPHlJ/m7DIDo2xh4jkA1BxQc2E OLlZ7CF225KHa55lKcAbllSq1gMaVwS89BibFQRrd5emlzqNhAtei5OCIWO8KdJvaFNN KCmx1UBOWymKeQ9lptue8SqZCzhQhviBSANPR4GKwAp+EOBJhklUuvmRVLxiBWZrBsjh vvbA== X-Gm-Message-State: ALQs6tCuwf/JGtPC24AbfOqg9rVZ/q7i7MpNNwSw88TElNem9NhbKDad aRfMwmFJUVl1A6RQ0EqxhR8QlJvH X-Google-Smtp-Source: AB8JxZqwq8DhaHkkyPrPJn+tTphgjFXX37R+V7OOVqNxWFjg1DEIglVqBhsAzo1LeLs0uDhkA/MXpQ== X-Received: by 10.101.64.3 with SMTP id f3mr983622pgp.359.1524667233205; Wed, 25 Apr 2018 07:40:33 -0700 (PDT) Received: from ?IPv6:2402:3a80:692:53f6:5702:d4cf:57d:6cae? ([2402:3a80:692:53f6:5702:d4cf:57d:6cae]) by smtp.gmail.com with ESMTPSA id 85sm32206715pfz.155.2018.04.25.07.40.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Apr 2018 07:40:32 -0700 (PDT) Date: Wed, 25 Apr 2018 20:10:28 +0530 User-Agent: K-9 Mail for Android In-Reply-To: <5AC118E8.1020800@grosbein.net> References: <5AC118E8.1020800@grosbein.net> MIME-Version: 1.0 Subject: Re: [netgraph] ng_bpf filter large list of IP addresses To: Eugene Grosbein ,freebsd-net@freebsd.org From: Reshad Patuck Message-ID: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 25 Apr 2018 14:40:35 -0000 Hey, =E2=80=8B I have tried to write some c code to add a bpf filter to my ng_bpf node, b= ut its just segfaulting=2E My c is not good enough to debug this=2E =E2=80=8B What baffles me is that when I load a filter for 250 IP addresses using th= e command in this link https://paste=2Eee/d/BHOoG/3 it loads fine=2E If I use 'ngctl -f' with the file in this link https://paste=2Eee/d/BHOoG/= 2 I get an error saying 'ngctl: send msg: Invalid argument; ngctl: line 1: = error in file' The BPF filter and arguments in that command are exactly the same=2E =E2=80=8B My problem is that I need to load thousands of IP addresses in a blocking = filter, which I am not able to pass over a command line because the list be= comes too long and I hit either the kern=2Eargmax limit of 262144 bytes or = the LINE_MAX (2048) for ngctl=2E =E2=80=8B I can share the c code I am using to attempt this using NgSendAsciiMsg(), = but I don't think that would be too useful=2E =E2=80=8B I am open to hiring someone as a consultant to help write a program/script= preferably in python or c to accomplish this=2E If anyone can help with this or knows someone who can, please feel free to= contact me=2E =E2=80=8B Best regards, =E2=80=8B Reshad On 1 April 2018 11:07:44 PM IST, Eugene Grosbein wr= ote: >31=2E03=2E2018 20:46, Reshad Patuck wrote: > =E2=80=8B >> Please let me know what I am doing wrong with the ngctl config file >and >> if there is another way, maybe something more direct to load a binary >bpf filter directly into ng_bpf=2E > >There is also netgraph(3) - Netgraph User Library=2E You can use it >within your C code >to send binary or text (ASCII) control messages directly to ng_bpf >without limitations >of ngctl's own parser=2E > >You can get an example of NgSendAsciiMsg() usage in ngctl's sources: > >https://svnweb=2Efreebsd=2Eorg/base/head/usr=2Esbin/ngctl/msg=2Ec?view=3D= markup From owner-freebsd-net@freebsd.org Wed Apr 25 14:50:55 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 54A06FA823A for ; Wed, 25 Apr 2018 14:50:55 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 E1B92766BB; Wed, 25 Apr 2018 14:50:54 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 9F4B7260122; Wed, 25 Apr 2018 16:50:46 +0200 (CEST) Subject: Re: kldload ibcore.ko fails in snapshot: FreeBSD-12.0-CURRENT-amd64-20180329-r331740-disc1 To: Julian Elischer , "Somayajulu, David" , "freebsd-net@freebsd.org" References: <53cea7bc-c3e5-26c3-30d8-42438e67f19f@selasky.org> <32be98b1-4abe-3de4-ec62-c3282bc3cad2@freebsd.org> From: Hans Petter Selasky Message-ID: Date: Wed, 25 Apr 2018 16:50:38 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <32be98b1-4abe-3de4-ec62-c3282bc3cad2@freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 25 Apr 2018 14:50:55 -0000 On 04/25/18 16:12, Julian Elischer wrote: > On 24/4/18 3:15 pm, Hans Petter Selasky wrote: >> On 04/24/18 01:33, Somayajulu, David wrote: >>> Hi All, >>> kldload ibcore.ko >>> fails in the above snapshot with the following error. >>> >>> # kldload -v /usr/obj/usr/src/amd64.amd64/sys/modules/ibcore/ibcore.ko >>> kldload: an error occurred while loading module >>> /usr/obj/usr/src/amd64.amd64/sys/modules/ibcore/ibcore.ko. Please >>> check dmesg(8) for more details. >>> >>> /var/log/messages indicates the following. >>> >>> Apr 23 16:28:07 bsd25_12 kernel: link_elf_obj: symbol if_index undefined >>> Apr 23 16:28:07 bsd25_12 kernel: linker_load_file: >>> /usr/obj/usr/src/amd64.amd64/sys/modules/ibcore/ibcore.ko - >>> unsupported file type >>> >>> What am I missing? >>> >> >> Hi, >> >> It looks like ibcore.ko was built w/o DEBUG_FLAGS="-DVIMAGE=1" > > that shouldn't be in debug flags..   Not sure WHERE it should be, but I > think that isn't it. > (may work though) > If you build outside the "buildkernel WITH_OFED=YES" target these flags must be specified manually in my experience. --HPS From owner-freebsd-net@freebsd.org Wed Apr 25 14:55:47 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5E2EDFA84C3 for ; Wed, 25 Apr 2018 14:55:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E95F578D27 for ; Wed, 25 Apr 2018 14:55:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id A8154FA84C2; Wed, 25 Apr 2018 14:55:46 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 951F0FA84C1 for ; Wed, 25 Apr 2018 14:55:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 15A4278D24 for ; Wed, 25 Apr 2018 14:55:46 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 60ABB27E1C for ; Wed, 25 Apr 2018 14:55:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3PEtjF3037359 for ; Wed, 25 Apr 2018 14:55:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3PEtjBk037358 for net@FreeBSD.org; Wed, 25 Apr 2018 14:55:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227720] Kernel panic in ppp server Date: Wed, 25 Apr 2018 14:55:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: matt.allanson@trimedx.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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.25 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, 25 Apr 2018 14:55:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227720 --- Comment #4 from Matt Allanson --- Created attachment 192809 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D192809&action= =3Dedit Client and server config Waiting for the next crash to get the stack trace, attached are client and server ppp configs. It is really simple; just pushing over tcp. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Apr 25 14:56:52 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A63B2FA850C for ; Wed, 25 Apr 2018 14:56:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 3BB0578DCA for ; Wed, 25 Apr 2018 14:56:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id F33DAFA850A; Wed, 25 Apr 2018 14:56:51 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DF283FA8509 for ; Wed, 25 Apr 2018 14:56:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 74C6778DC7 for ; Wed, 25 Apr 2018 14:56:51 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 998AE27E1F for ; Wed, 25 Apr 2018 14:56:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3PEuo9S038808 for ; Wed, 25 Apr 2018 14:56:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3PEuoZL038804 for net@FreeBSD.org; Wed, 25 Apr 2018 14:56:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227720] Kernel panic in ppp server Date: Wed, 25 Apr 2018 14:56:50 +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.1-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: matt.allanson@trimedx.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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.25 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, 25 Apr 2018 14:56:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227720 --- Comment #5 from Matt Allanson --- (In reply to Eugene Grosbein from comment #3) The machine that's failing is the server. We have 18 tunnels at max, curren= tly. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Apr 25 15:15:22 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D4F96FA8A24 for ; Wed, 25 Apr 2018 15:15:22 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (unknown [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 579607BE62 for ; Wed, 25 Apr 2018 15:15:21 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w3PFFFAJ022963 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 25 Apr 2018 17:15:15 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: reshadpatuck1@gmail.com Received: from [10.58.0.4] (dadv@[10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w3PFF4v1015052 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 25 Apr 2018 22:15:04 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: [netgraph] ng_bpf filter large list of IP addresses To: Reshad Patuck , freebsd-net@freebsd.org References: <5AC118E8.1020800@grosbein.net> From: Eugene Grosbein Message-ID: <5AE09B77.3090607@grosbein.net> Date: Wed, 25 Apr 2018 22:15:03 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 25 Apr 2018 15:15:23 -0000 25.04.2018 21:40, Reshad Patuck пишет: > Hey, > ​ > I have tried to write some c code to add a bpf filter to my ng_bpf node, but its just segfaulting. > My c is not good enough to debug this. > ​ > What baffles me is that when I load a filter for 250 IP addresses using the command in this link https://paste.ee/d/BHOoG/3 it loads fine. > If I use 'ngctl -f' with the file in this link https://paste.ee/d/BHOoG/2 I get an error saying 'ngctl: send msg: Invalid argument; ngctl: line 1: error in file' > The BPF filter and arguments in that command are exactly the same. > ​ > My problem is that I need to load thousands of IP addresses in a blocking filter, which I am not able to pass over a command line because the list becomes too long and I hit either the kern.argmax limit of 262144 bytes or the LINE_MAX (2048) for ngctl. > ​ > I can share the c code I am using to attempt this using NgSendAsciiMsg(), but I don't think that would be too useful. Have you tried changing limits in ngctl's sources and recompile it? From owner-freebsd-net@freebsd.org Wed Apr 25 16:09:48 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 33E05FA9AB1 for ; Wed, 25 Apr 2018 16:09:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 69A2A8664E for ; Wed, 25 Apr 2018 16:09:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 1DA15FA9AB0; Wed, 25 Apr 2018 16:09:47 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 090BEFA9AAF for ; Wed, 25 Apr 2018 16:09:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 871EF8664D for ; Wed, 25 Apr 2018 16:09:46 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 975EA7DB for ; Wed, 25 Apr 2018 16:09:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3PG9jcQ012386 for ; Wed, 25 Apr 2018 16:09:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3PG9jh5012385 for net@FreeBSD.org; Wed, 25 Apr 2018 16:09:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227720] Kernel panic in ppp server Date: Wed, 25 Apr 2018 16:09:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: eugen@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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.25 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, 25 Apr 2018 16:09:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227720 --- Comment #6 from Eugene Grosbein --- (In reply to Matt Allanson from comment #4) Kernel crashdump will be much more useful if kernel config file has: options KDB options KDB_TRACE options KDB_UNATTENDED options INVARIANTS options INVARIANT_SUPPORT options WITHNESS options WITNESS_SKIPSPIN --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Apr 25 20:04:16 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AFE50FAEC05 for ; Wed, 25 Apr 2018 20:04:16 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 40E717AAC5 for ; Wed, 25 Apr 2018 20:04:16 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id EF15AFAEC03; Wed, 25 Apr 2018 20:04:15 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DCCF6FAEC01; Wed, 25 Apr 2018 20:04:15 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-lf0-x230.google.com (mail-lf0-x230.google.com [IPv6:2a00:1450:4010:c07::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 549D77AAA3; Wed, 25 Apr 2018 20:04:15 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: by mail-lf0-x230.google.com with SMTP id q5-v6so27248595lff.12; Wed, 25 Apr 2018 13:04:15 -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=3sCM6E5N4KvBh7rCULFbBykZcPC8ujEmMoOZncpve1E=; b=rvNgNFRINHHCMF8YX2TNllAXuL/L1C6r1j6txuUCIA6ZNCozh+OJoxTxlcPgjKN51E r1/j0D5zRuFn/+mmR7geapji+uoglv+rcGmtZKgDRuafy1VIC4xU/zIOhCDKALBlKIiB O7bvAB+VPip9wuO8YnEM+w1KVfpRw3mnOTjYT70AKdyL1yY5Qxk7pbKwNPOJF9kRD/kp Dw4cDFP25au9cMQZHXOjDsgmn6ItYenXxNrektPnFhf0gSOYGB8oCjlWf0cYA4X1t65i IwW9eKi7j/r8UInANnwXc0s671pjrjxRpHDugqr25of9cvMfv6h4by52HlGLKZr7yxPX M5Xw== 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=3sCM6E5N4KvBh7rCULFbBykZcPC8ujEmMoOZncpve1E=; b=Ei5Pfc1zEtZJxLb0+w3e0VDL3+xENDirtz/D6nek+evGRkCB1oigbl1SRZg3vMPSAq w7gmqcXzRxgCrgd1Y9GJfRtbUL47iv1GH5fw1/s+932d96KKuOri1zCo08fCoW6dXpIT 0a2jCWajSc2hUo0prTCPMrfNQexr3sZaPmCc5bbk35KXekf/nNBwmeFfnkhA2RTCZ+dg 2putlkz3H/WPTRbbwbKs5am4I1LiTt9rvZ4YxoQ13sQPGWnEhgmnK/HfyKoWjKTQcHc8 gSHlMBndAdoRraJKlXjh0PKc6cHvrTAFW1o5pFX/jtSiMvORXtQrCfiV2SC++TXgxTAO QJSw== X-Gm-Message-State: ALQs6tCiqikWIl63lII6qPihFJkfjvg9ouheQYjgkqlvPk1RVAUZ8FfA Zh7RM5+tvitXFvZ0vnDJKfWL4QaT/DOflTyafiqgQw== X-Google-Smtp-Source: AIpwx49b9udlSrZuQjIneuDnTsSUZMEzf05LCvbETc1cvEISt2IYhTS+VEJoPVnXsauvuVZ9rSo/p8uJRuT/Hfczwi4= X-Received: by 10.46.150.85 with SMTP id z21mr14873442ljh.127.1524686653917; Wed, 25 Apr 2018 13:04:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.135.75 with HTTP; Wed, 25 Apr 2018 13:04:13 -0700 (PDT) In-Reply-To: <20180424085553.GA6887@kib.kiev.ua> References: <20180424085553.GA6887@kib.kiev.ua> From: Ryan Stone Date: Wed, 25 Apr 2018 16:04:13 -0400 Message-ID: Subject: Re: mlx5(4) jumbo receive To: Konstantin Belousov Cc: FreeBSD Current , menny@mellanox.com, FreeBSD Net Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 25 Apr 2018 20:04:16 -0000 On Tue, Apr 24, 2018 at 4:55 AM, Konstantin Belousov wrote: > +#ifndef MLX5E_MAX_RX_BYTES > +#define MLX5E_MAX_RX_BYTES MCLBYTES > +#endif Why do you use a 2KB buffer rather than a PAGE_SIZE'd buffer? MJUMPAGESIZE should offer significantly better performance for jumbo frames without increasing the risk of memory fragmentation. From owner-freebsd-net@freebsd.org Wed Apr 25 22:21:47 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7B679FB1CC6 for ; Wed, 25 Apr 2018 22:21:47 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1961378968 for ; Wed, 25 Apr 2018 22:21:46 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: by mailman.ysv.freebsd.org (Postfix) id C9A67FB1CBD; Wed, 25 Apr 2018 22:21:45 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8A8CAFB1CBB; Wed, 25 Apr 2018 22:21:45 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-QB1-obe.outbound.protection.outlook.com (mail-eopbgr660054.outbound.protection.outlook.com [40.107.66.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT TLS CA 4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1D12D78960; Wed, 25 Apr 2018 22:21:44 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from YQBPR0101MB1042.CANPRD01.PROD.OUTLOOK.COM (52.132.66.153) by YQBPR0101MB0897.CANPRD01.PROD.OUTLOOK.COM (52.132.66.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.715.18; Wed, 25 Apr 2018 22:21:43 +0000 Received: from YQBPR0101MB1042.CANPRD01.PROD.OUTLOOK.COM ([fe80::893c:efc2:d71f:945a]) by YQBPR0101MB1042.CANPRD01.PROD.OUTLOOK.COM ([fe80::893c:efc2:d71f:945a%13]) with mapi id 15.20.0715.018; Wed, 25 Apr 2018 22:21:43 +0000 From: Rick Macklem To: Ryan Stone , Konstantin Belousov CC: FreeBSD Current , "menny@mellanox.com" , FreeBSD Net Subject: Re: mlx5(4) jumbo receive Thread-Topic: mlx5(4) jumbo receive Thread-Index: AQHT3NCdClq8g0H1WkiFu85ReYNX16QSDLEp Date: Wed, 25 Apr 2018 22:21:43 +0000 Message-ID: References: <20180424085553.GA6887@kib.kiev.ua>, In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=rmacklem@uoguelph.ca; x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; YQBPR0101MB0897; 7:CyvMySIgonstN1+bHIQ37R8cTLaibTVBFHfSoJASehLM87egVEc01UMhzzKKlcaIcmmzN8YInNn1wWS7Cp7lVTGySfslbuuM+kZtKxujN8oRk3yjOmxl8vEhvaYStbixezmDJBEgRRZm8FvtDCfQrEPYCT116LDgwwEq0IimpQQOhpjyf25UURndOD72/9usKxOtczZYRko3uUh76Nd6GL/bPWDLNOc65iMUcgl8llg2Hr8Vshb6aJlZ2xLDvYId x-ms-exchange-antispam-srfa-diagnostics: SOS; x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989080)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(8990040)(2017052603328)(7153060)(7193020); SRVR:YQBPR0101MB0897; x-ms-traffictypediagnostic: YQBPR0101MB0897: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(85827821059158); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3231232)(944501410)(52105095)(3002001)(6041310)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281529075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011); SRVR:YQBPR0101MB0897; BCL:0; PCL:0; RULEID:; SRVR:YQBPR0101MB0897; x-forefront-prvs: 06530126A4 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(346002)(396003)(376002)(39860400002)(39380400002)(199004)(189003)(305945005)(229853002)(2906002)(2900100001)(59450400001)(3280700002)(9686003)(53936002)(55016002)(3660700001)(786003)(86362001)(99286004)(26005)(486006)(11346002)(316002)(102836004)(7696005)(6506007)(186003)(76176011)(476003)(68736007)(54906003)(446003)(110136005)(8936002)(81166006)(5250100002)(81156014)(8676002)(97736004)(106356001)(33656002)(74482002)(39060400002)(4326008)(105586002)(25786009)(6246003)(6436002)(5660300001)(74316002)(14454004)(478600001); DIR:OUT; SFP:1101; SCL:1; SRVR:YQBPR0101MB0897; H:YQBPR0101MB1042.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: uoguelph.ca does not designate permitted sender hosts) x-microsoft-antispam-message-info: fVqqgwQGcL4uONKMbnDsW3NdInPUopTg2DUHQ2GaZp1odsc5NmvYZFq3ZXxiBK/OVJnQyXHjTC3LUSUMbkR0VlfWhIWf5yXoRfAAnhMKPZN4l1yjlasBRDZrrJu9Rv6ridB4L8eisIHYeO8LXyRl+VWr4W9GUu0yEkiqn33BaWdSNPIWXGtLnyJibf0HNGCu spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 64862c4f-1c94-4c4b-c3f4-08d5aafaecc6 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-Network-Message-Id: 64862c4f-1c94-4c4b-c3f4-08d5aafaecc6 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Apr 2018 22:21:43.3007 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQBPR0101MB0897 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 25 Apr 2018 22:21:47 -0000 Ryan Stone wrote: >On Tue, Apr 24, 2018 at 4:55 AM, Konstantin Belousov >>wrote: >> +#ifndef MLX5E_MAX_RX_BYTES >> +#define MLX5E_MAX_RX_BYTES MCLBYTES >> +#endif > >Why do you use a 2KB buffer rather than a PAGE_SIZE'd buffer? >MJUMPAGESIZE should offer significantly better performance for jumbo >frames without increasing the risk of memory fragmentation. Actually, when I was playing with using jumbo mbuf clusters for NFS, I was = able to get it to fragment to the point where allocations failed when mixing 2K = and 4K mbuf clusters. Admittedly I was using a 256Mbyte i386 and it wasn't easily reproduced, but it was possible. --> Using a mix of 2K and 4K mbuf clusters can result in fragmentation, alt= hough I suspect that it isn't nearly as serious as what can happen when usi= ng 9K mbuf clusters. rick= From owner-freebsd-net@freebsd.org Thu Apr 26 06:43:02 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D7E6EFA291E for ; Thu, 26 Apr 2018 06:43:01 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 649136C50A for ; Thu, 26 Apr 2018 06:43:01 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 19924FA291C; Thu, 26 Apr 2018 06:43:01 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CB89BFA2919; Thu, 26 Apr 2018 06:43:00 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wr0-x22d.google.com (mail-wr0-x22d.google.com [IPv6:2a00:1450:400c:c0c::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4AD066C507; Thu, 26 Apr 2018 06:43:00 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wr0-x22d.google.com with SMTP id p5-v6so27749938wre.12; Wed, 25 Apr 2018 23:43:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=kVgABVOp/EFIAlV+m0iQ2340GYLALiZEpjF1ulJ4rqc=; b=cEJ50ODjAxvmk/XoxjV7ZHNfeyedEzbt0j1RbWMDjrlw5O3D9zqaEFP9pEz+59+WcV iMwLxFsVucCO7YrUe68Mxs9rBVO1gEZbm0/j5mMD2VGzm8EbkooxVUmOwfYHW0VlwU5m EgowbjoJ5Z1xgWWUU0aa+OTdGt0C6geKWaiW0nZ+GJGzi2J4omeBB+F+gVQFxfHHO/no 9VCkaNEPYEaU4zh4EdKi9/egvvvdEo8GrilTWnNtjwaiyDp6RD9l8rR977fSwTW9cN/T Xtplf3nPYMvrkS7IwIrPDf6EO+3KbliPzhGzGyUr0hb52E4BEsFbfjSd6aFpE9jI228r 2nSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=kVgABVOp/EFIAlV+m0iQ2340GYLALiZEpjF1ulJ4rqc=; b=lPIhglHuSrYANv0Mspsvi4qxWDTyzrkHOWI12p4EWv97Hn3Vbvjg3x/3Q7VVTcBFYB mJrL2k1Y5UFh+H+q0ioPccciaqEz3JalN0KiAPp6WksPBZ+j6tolTnhu5KaQ6QPzY5PK zAj8J1meX76MrJXT8GLKa1NWh9VAs8PxHk9L4MiPpTC4UP5eZ6+7JImnUFMaOQVeXtAR zjVRPpDUZIVJ7N5HGFNlVsQe/KhmfzHyQdD+Yxf5BN8vckrwW0kH4j2ESJHQiyE8ec+3 dHNbgOUy2lMwtczI7fCySUf32TAnkzfgDuXlgbBMyOQJLhhjQbOc1Ksms5jCVQhAkXSx 9mwA== X-Gm-Message-State: ALQs6tBGVkezKfaw5muXatzsQO5FNYr537IPWagT1hGciafnOizqDq/A MXOW1XZ9ScZS5fbWvIFgOE8= X-Google-Smtp-Source: AIpwx4/4jnNhpZQaT4KzNiDX3tUofDS9TZcleDxGW3oeDjsz8WKtjT6Nptdb2ScpxJ7cBzDwhvoDsA== X-Received: by 2002:adf:b741:: with SMTP id n1-v6mr26629144wre.203.1524724979326; Wed, 25 Apr 2018 23:42:59 -0700 (PDT) Received: from bens-mac.home (LFbn-1-7077-100.w90-116.abo.wanadoo.fr. [90.116.246.100]) by smtp.gmail.com with ESMTPSA id q34-v6sm18526218wrb.27.2018.04.25.23.42.58 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Apr 2018 23:42:58 -0700 (PDT) Content-Type: text/plain; charset=us-ascii; delsp=yes; format=flowed Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: mlx5(4) jumbo receive From: Ben RUBSON In-Reply-To: Date: Thu, 26 Apr 2018 08:43:01 +0200 Cc: Ryan Stone , Konstantin Belousov , FreeBSD Current , FreeBSD Net , Meny Yossefi Content-Transfer-Encoding: 7bit Message-Id: References: <20180424085553.GA6887@kib.kiev.ua> To: Rick Macklem X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 26 Apr 2018 06:43:02 -0000 On 26 Apr 2018, Rick Macklem wrote: > Ryan Stone wrote: >> On Tue, Apr 24, 2018 at 4:55 AM, Konstantin Belousov >> >>wrote: >>> +#ifndef MLX5E_MAX_RX_BYTES >>> +#define MLX5E_MAX_RX_BYTES MCLBYTES >>> +#endif >> >> Why do you use a 2KB buffer rather than a PAGE_SIZE'd buffer? >> MJUMPAGESIZE should offer significantly better performance for jumbo >> frames without increasing the risk of memory fragmentation. > Actually, when I was playing with using jumbo mbuf clusters for NFS, I > was able > to get it to fragment to the point where allocations failed when mixing > 2K and > 4K mbuf clusters. > Admittedly I was using a 256Mbyte i386 and it wasn't easily reproduced, but > it was possible. > --> Using a mix of 2K and 4K mbuf clusters can result in fragmentation, > although > I suspect that it isn't nearly as serious as what can happen when using 9K > mbuf clusters. I used to face the fragmentation issue easily with MTU set to 9000 (x86_64 / 64GB / Connect-X/3). I then decreased the MTU until 9K mbufs are not more used, to 4072 bytes then. The other used interface of this 2-ports card is set with a 1500 MTU. Until now (about a year later), no more issue. # vmstat -z | grep mbuf ITEM SIZE LIMIT USED FREE REQ FAIL SLEEP mbuf_packet: 256, 26080155, 16400, 9652, 999757417, 0, 0 mbuf: 256, 26080155, 16419, 11349, 85322301444, 0, 0 mbuf_cluster: 2048, 4075022, 26052, 550, 1059817, 0, 0 mbuf_jumbo_page: 4096, 2037511, 16400, 9522, 45863599682, 0, 0 mbuf_jumbo_9k: 9216, 603707, 0, 0, 0, 0, 0 mbuf_jumbo_16k: 16384, 339585, 0, 0, 0, 0, 0 Here's my experience :) Ben From owner-freebsd-net@freebsd.org Thu Apr 26 08:03:11 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB7CFFA5296 for ; Thu, 26 Apr 2018 08:03:11 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 586517C6E8 for ; Thu, 26 Apr 2018 08:03:11 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 12EC1FA5293; Thu, 26 Apr 2018 08:03:11 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F30B6FA5291; Thu, 26 Apr 2018 08:03:10 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (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 65A757C6C5; Thu, 26 Apr 2018 08:03:10 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id w3Q82xWi023845 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 26 Apr 2018 11:03:02 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua w3Q82xWi023845 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id w3Q82w9l023844; Thu, 26 Apr 2018 11:02:58 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 26 Apr 2018 11:02:58 +0300 From: Konstantin Belousov To: Ryan Stone Cc: FreeBSD Current , menyy@mellanox.com, FreeBSD Net Subject: Re: mlx5(4) jumbo receive Message-ID: <20180426080258.GI6887@kib.kiev.ua> References: <20180424085553.GA6887@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 26 Apr 2018 08:03:11 -0000 On Wed, Apr 25, 2018 at 04:04:13PM -0400, Ryan Stone wrote: > On Tue, Apr 24, 2018 at 4:55 AM, Konstantin Belousov > wrote: > > +#ifndef MLX5E_MAX_RX_BYTES > > +#define MLX5E_MAX_RX_BYTES MCLBYTES > > +#endif > > Why do you use a 2KB buffer rather than a PAGE_SIZE'd buffer? > MJUMPAGESIZE should offer significantly better performance for jumbo > frames without increasing the risk of memory fragmentation. Part of the answer is that the patch was not written in one go (even not by one person), but evolved, and this is how it shaped. Another part is that indeed, as Rick stated, I am not sure about mixing the different sizes for mbuf allocator. This might be more FUD than factual-based considerations, but still. I believe that the patch as is provides the important improvements. If developing mlx4(4) change of the same nature, I will probably take this into the exp stage from the beginning. For mlx5(4), I think that the patch should be applied as is, then I might experiment with PAGE_SIZE as the later step. From owner-freebsd-net@freebsd.org Thu Apr 26 16:54:13 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6CDE0FB2A83 for ; Thu, 26 Apr 2018 16:54:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id F3FB27357F for ; Thu, 26 Apr 2018 16:54:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B843BFB2A82; Thu, 26 Apr 2018 16:54:12 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A7199FB2A81 for ; Thu, 26 Apr 2018 16:54:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 450107355D for ; Thu, 26 Apr 2018 16:54:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 4958C174B4 for ; Thu, 26 Apr 2018 16:54:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3QGsBnV016272 for ; Thu, 26 Apr 2018 16:54:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3QGsBRV016271 for net@FreeBSD.org; Thu, 26 Apr 2018 16:54:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227603] [panic] r323477: Sleeping thread owns a non-sleepable lock Date: Thu, 26 Apr 2018 16:54:10 +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: 11.1-STABLE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: shurd@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: shurd@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.25 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, 26 Apr 2018 16:54:13 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227603 --- Comment #4 from Stephen Hurd --- How's it looking? --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Thu Apr 26 17:02:10 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B4D2CFB2EF6 for ; Thu, 26 Apr 2018 17:02:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 6F60F745DF for ; Thu, 26 Apr 2018 17:02:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2B347FB2EEE; Thu, 26 Apr 2018 17:02:10 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 18E4DFB2EED for ; Thu, 26 Apr 2018 17:02:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A99C7745D6 for ; Thu, 26 Apr 2018 17:02:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 67208175F4 for ; Thu, 26 Apr 2018 17:02:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3QH28cQ048462 for ; Thu, 26 Apr 2018 17:02:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3QH28uk048460 for net@FreeBSD.org; Thu, 26 Apr 2018 17:02:08 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227603] [panic] r323477: Sleeping thread owns a non-sleepable lock Date: Thu, 26 Apr 2018 17:02:07 +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: 11.1-STABLE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: eugen@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: shurd@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 26 Apr 2018 17:02:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227603 Eugene Grosbein changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|In Progress |Closed --- Comment #5 from Eugene Grosbein --- (In reply to Stephen Hurd from comment #4) No problems at all with r332734 applied. Thank you! --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Thu Apr 26 17:58:30 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A96E6FB3F4D for ; Thu, 26 Apr 2018 17:58:30 +0000 (UTC) (envelope-from ab.tariq90@gmail.com) Received: from mail-it0-x233.google.com (mail-it0-x233.google.com [IPv6:2607:f8b0:4001:c0b::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 3E3E281BEE for ; Thu, 26 Apr 2018 17:58:30 +0000 (UTC) (envelope-from ab.tariq90@gmail.com) Received: by mail-it0-x233.google.com with SMTP id m134-v6so25446991itb.3 for ; Thu, 26 Apr 2018 10:58:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=0TToTFEtbK9GrBIIN2QRVh0Pyn5D41TqwPSJ37xpCy0=; b=rI6bOVnjktuEn3iSQSU4PTk2dzeTXRgkYHqDOzM5QaP1T3eqKyx04B6br35QB0Qz/I 4dOs/u5vmgaIN31+bQ0eVTS5msZCz3G9gmeZPtnYvqWn2q5Yz5I0JOVDZmGGrcVYPNg9 ZaebwIqAek+IL8HO92IIEYBE5hnGOEk0GScLUZW0zyhLArhx6g0RvYDBKmUtciLM/OwX Vm5DBIpByUpDpLpYdEZ4zH0dcd+LoSXUnZq06OvRrbmAS3FEKD+JQh/dNyNeTPPMwDMJ 3+H+JwfhDhw6VZ0zyQ/2RsrzzkWPMgYkP8K+yTR0Ih1zBwJi+U9Gj+2lNOsVtMbySXbg bLew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0TToTFEtbK9GrBIIN2QRVh0Pyn5D41TqwPSJ37xpCy0=; b=GoY5WGlFsZlZFordR3Y49DPHQ0G/Sd/VhYnyhgfPsOPfxtMOj8ODbavu2iqid2hBsI ZjeSf2DRiCScsa4agIAW9rMNDtXOoZ1PN2tEMdD37gMPLUpjJu8Dzheo/4YzpOlBZyHl TTlcQUmn2r3fnWVa2+8ZCsnAg5mcvN5cb9zo70UrGky/0sKOL43m+4MSA9GhpU5buC14 VZZhXaCHxFyPP/ePp+omwVYERsTOkhyEgAi5Wy1X02U7VrUOPOjebjLDChaaf793BqAV 3em3s7/ylHVIXW4kKDtd6uf8eyaYcykQvCvIUIbAcRyjWT6j4v+8x6YQH87ziDt9772X 2cuA== X-Gm-Message-State: ALQs6tBBafwwwMK0iMfCh9X+afo1ZraT6hvTa6HS1OvogQNoSeNpA/iP 21MfjaucOGNmALBc6S3qJVMNprskFcb2YC2xuZpdqA== X-Google-Smtp-Source: AB8JxZrQR3f7wvgt+bcssfaW88vzghz6HhSU8SkibU9rShueFW4969WSdBdpP1OgVYRqDaqMpMg/Ua/kzldsD5nGJUA= X-Received: by 2002:a24:a342:: with SMTP id p63-v6mr25580311ite.146.1524765509495; Thu, 26 Apr 2018 10:58:29 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:4a93:0:0:0:0:0 with HTTP; Thu, 26 Apr 2018 10:58:28 -0700 (PDT) From: Abdullah Tariq Date: Thu, 26 Apr 2018 22:58:28 +0500 Message-ID: Subject: NETGRAPH- bridge vlans using netgraph help To: freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 26 Apr 2018 17:58:31 -0000 I am trying to make 2 systems connected to freebsd box directly to be able to communicated with each other. Explanation diagram is attached ifconfig vlan2 create vlan 5 vlandev igb5 ifconfig vlan3 create vlan 5 vlandev igb6 ifconfig bridge10 create addm vlan2 addm vlan3 up as explained to me on freebsd forums PC1 would send packets without any vlan tags attached (so they belong to > the "DEFAULT" vlan aka vlan 1). igb0 on FreeBSD would receive the packet, > compare the vlan tag to what it's configured to use (1 <--> 5), see they > are not equal, and would drop the packet. > Same for PC2. It would send untagged packets (aka vlan tag 1) to igb1. > FreeBSD would compare vlan tags, see they don't match what's set on igb1, > and drop the packets. > If you configure PC1 and PC2 to also use tagged vlan 5, then the bridge > configuration using tagged vlan 5 interfaces would work. Which turns me to netgraph. The documentation is very very scarce. So i want to know if what i am trying to achieve is possible and if anyone can please guide me. Rhanks From owner-freebsd-net@freebsd.org Thu Apr 26 18:14:03 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7C1F1FB488E for ; Thu, 26 Apr 2018 18:14:03 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (unknown [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9576785C81 for ; Thu, 26 Apr 2018 18:14:02 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w3QIDqKK037793 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Apr 2018 20:13:53 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: ab.tariq90@gmail.com Received: from [10.58.0.4] (dadv@[10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w3QIDmeg028867 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 27 Apr 2018 01:13:48 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Abdullah Tariq , freebsd-net@freebsd.org References: From: Eugene Grosbein Message-ID: <5AE216DC.7010905@grosbein.net> Date: Fri, 27 Apr 2018 01:13:48 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=4.4 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_48_96, LOCAL_FROM,RDNS_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * 2.2 DATE_IN_FUTURE_48_96 Date: is 48 to 96 hours after Received: date * -0.0 SPF_PASS SPF: sender matches SPF record * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Level: **** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 26 Apr 2018 18:14:03 -0000 27.04.2018 0:58, Abdullah Tariq wrote: > I am trying to make 2 systems connected to freebsd box directly to be able > to communicated with each other. Explanation diagram is attached > > ifconfig vlan2 create vlan 5 vlandev igb5 > ifconfig vlan3 create vlan 5 vlandev igb6 > ifconfig bridge10 create addm vlan2 addm vlan3 up > > as explained to me on freebsd forums > >> PC1 would send packets without any vlan tags attached (so they belong to >> the "DEFAULT" vlan aka vlan 1). igb0 on FreeBSD would receive the packet, >> compare the vlan tag to what it's configured to use (1 <--> 5), see they >> are not equal, and would drop the packet. >> Same for PC2. It would send untagged packets (aka vlan tag 1) to igb1. >> FreeBSD would compare vlan tags, see they don't match what's set on igb1, >> and drop the packets. >> If you configure PC1 and PC2 to also use tagged vlan 5, then the bridge >> configuration using tagged vlan 5 interfaces would work. > > > > Which turns me to netgraph. The documentation is very very scarce. So i > want to know if what i am trying to achieve is possible and if anyone can > please guide me. > Rhanks If you want to bridge untagged frames between igb5 and igb6, you do not need to dive into netgraph structures. Just create another bridgeX and add both of igb5 and igb6 to that bridge. From owner-freebsd-net@freebsd.org Thu Apr 26 18:19:41 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1314DFB4A88 for ; Thu, 26 Apr 2018 18:19:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 9D06385E34 for ; Thu, 26 Apr 2018 18:19:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 5563FFB4A87; Thu, 26 Apr 2018 18:19:40 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 42E89FB4A86 for ; Thu, 26 Apr 2018 18:19:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C13EB85E30 for ; Thu, 26 Apr 2018 18:19:39 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id F063517F8D for ; Thu, 26 Apr 2018 18:19:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3QIJclr014991 for ; Thu, 26 Apr 2018 18:19:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3QIJcfv014990 for net@FreeBSD.org; Thu, 26 Apr 2018 18:19:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227720] Kernel panic in ppp server Date: Thu, 26 Apr 2018 18:19:39 +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.1-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: matt.allanson@trimedx.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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.25 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, 26 Apr 2018 18:19:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227720 --- Comment #7 from Matt Allanson --- #1 0xffffffff804c06b5 in mi_switch () #2 0xffffffff804ff2da in sleepq_wait () #3 0xffffffff804c0231 in _sleep () #4 0xffffffff80504211 in taskqueue_thread_loop () #5 0xffffffff804844e5 in fork_exit () #6 Here is the stack trace from the most recent reboot. I have additional information (from crashinfo) if it'd be helpful. Unfortunately, this kernel doesn't have debuginfo built in, but I can rebuild if absolutely necessary. Note that since this is a production server, putting a debug kernel on it w= ould require change control and Wednesday (5/2) would be the earliest I could do= it. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Thu Apr 26 19:24:59 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1426AFB68D5 for ; Thu, 26 Apr 2018 19:24:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8C6466FE5F for ; Thu, 26 Apr 2018 19:24:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 42DA9FB68D4; Thu, 26 Apr 2018 19:24:58 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2EE97FB68D3 for ; Thu, 26 Apr 2018 19:24:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BC4CA6FE46 for ; Thu, 26 Apr 2018 19:24:57 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id F305218914 for ; Thu, 26 Apr 2018 19:24:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3QJOuq5085169 for ; Thu, 26 Apr 2018 19:24:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3QJOuEK085168 for net@FreeBSD.org; Thu, 26 Apr 2018 19:24:56 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227720] Kernel panic in ppp server Date: Thu, 26 Apr 2018 19:24:56 +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.1-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: eugen@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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.25 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, 26 Apr 2018 19:24:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227720 --- Comment #8 from Eugene Grosbein --- (In reply to Matt Allanson from comment #7) This is not very useful. You should have kernel.debug in the kernel build directory, do you? It is used to obtain kgdb backtrace. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Thu Apr 26 20:45:13 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B2311FB7F4A for ; Thu, 26 Apr 2018 20:45:13 +0000 (UTC) (envelope-from David.Somayajulu@cavium.com) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0062.outbound.protection.outlook.com [104.47.36.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT TLS CA 4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1D29780909; Thu, 26 Apr 2018 20:45:12 +0000 (UTC) (envelope-from David.Somayajulu@cavium.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=DDxAT45T4xA6Ul4QW/ElDzdLwkxJ0O6CzPJ/Ge4Le6g=; b=WFpIupWvYuGHkCkh8TonXmS64nt7TzkBy6BnxldevYvG6ziebwlNHcIfM18Z+veanuOC+WpF7FIIr8qbbHSWAcseWwaVXXhJp0qnFw2fQEbTlIMOiabb5wu8xrpO4+w/AJWcoRsCKk7cJC3prq0pZ7VKKQXmlxICnhMAJjZM10Y= Received: from CY4PR07MB3125.namprd07.prod.outlook.com (10.172.115.15) by CY4SPR00MB102.namprd07.prod.outlook.com (10.171.217.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.18; Thu, 26 Apr 2018 20:45:11 +0000 Received: from CY4PR07MB3125.namprd07.prod.outlook.com ([fe80::5836:66f7:b2b8:4225]) by CY4PR07MB3125.namprd07.prod.outlook.com ([fe80::5836:66f7:b2b8:4225%18]) with mapi id 15.20.0696.017; Thu, 26 Apr 2018 20:45:10 +0000 From: "Somayajulu, David" To: Hans Petter Selasky , Julian Elischer , "freebsd-net@freebsd.org" CC: "davidcs@freebsd.org" Subject: RE: kldload ibcore.ko fails in snapshot: FreeBSD-12.0-CURRENT-amd64-20180329-r331740-disc1 Thread-Topic: kldload ibcore.ko fails in snapshot: FreeBSD-12.0-CURRENT-amd64-20180329-r331740-disc1 Thread-Index: AQHT25wV+h0PDP5NH0GG/f+K3U4yYKQRh5OAgAAKwQCAAe/OIA== Date: Thu, 26 Apr 2018 20:45:10 +0000 Message-ID: References: <53cea7bc-c3e5-26c3-30d8-42438e67f19f@selasky.org> <32be98b1-4abe-3de4-ec62-c3282bc3cad2@freebsd.org> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=David.Somayajulu@cavium.com; x-originating-ip: [198.186.1.5] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; CY4SPR00MB102; 7:7oYqJ0yyV8Ov4MCVUYUmqwUD+Nu5R4xyt4W+XkfwRNuV8d8Kt2Ts3nDoBV9E18FnTuBT+7547p7HAWElqR9qvvwmTElO2Nsyw1zo7PH2vXcAhnreJPgHPcp2xhGYhDl7RRNNJsey4OabLL90UhdW1D96MB7KWWKnrQveOV0tc6n/RBRThdPQxXVWPCMcgyHW7Td0p9Sg2qFTnet5RA9EdD5pTPVgVlFfCtquXirGAZRtwUXmRpwF8zNNidukJeQv x-ms-exchange-antispam-srfa-diagnostics: SOS; x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:CY4SPR00MB102; x-ms-traffictypediagnostic: CY4SPR00MB102: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(3231232)(944501410)(52105095)(10201501046)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:CY4SPR00MB102; BCL:0; PCL:0; RULEID:; SRVR:CY4SPR00MB102; x-forefront-prvs: 0654257CF5 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(366004)(376002)(39380400002)(346002)(39860400002)(51444003)(199004)(189003)(13464003)(53754006)(229853002)(93886005)(7696005)(478600001)(2900100001)(99286004)(76176011)(7736002)(186003)(72206003)(9686003)(4326008)(25786009)(86362001)(14454004)(97736004)(26005)(66066001)(53546011)(6506007)(102836004)(110136005)(33656002)(316002)(6436002)(59450400001)(106356001)(105586002)(11346002)(446003)(5250100002)(486006)(2906002)(305945005)(2501003)(53936002)(5660300001)(3660700001)(74316002)(476003)(8676002)(81166006)(8936002)(55016002)(81156014)(6116002)(3846002)(3280700002)(68736007)(6246003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4SPR00MB102; H:CY4PR07MB3125.namprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: F+tIVtXGWZiWNZ/q1lIpd/zadIdtIo2pBV6c/9xKjJ5EUhQWM3emDYywq5+qQr0LfXdzt4uMGSwfGzHduvgGRxWsOCvk3znE4zHB2a+OOfDHEDJ4xYf9X5sugalAP5jypS07ZEiFJmideRZWrTwCjzAa1NPROXIrwdYB9MwgwuVH6of4IL3wl2PjTrEroFqf spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 01f9da97-c113-4052-b431-08d5abb69a7c X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01f9da97-c113-4052-b431-08d5abb69a7c X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Apr 2018 20:45:10.5179 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4SPR00MB102 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 26 Apr 2018 20:45:13 -0000 VGhhbmtzIEhhbnMgYW5kIEp1bGlhbi4NCkkgZGlkIHRoZSBmb2xsb3dpbmcgYW5kIHN0aWxsIHNl ZSB0aGUgcHJvYmxlbQ0KDQojY2QgL3Vzci9zcmMNCiNtYWtlIGJ1aWxkd29ybGQgV0lUSF9PRkVE PXllcw0KI21ha2UgaW5zdGFsbHdvcmxkIFdJVEhfT0ZFRD15ZXMNCiNyZWJvb3QNCiNjZCAvdXNy L3NyYw0KI21ha2UgYnVpbGRrZXJuZWwgV0lUSF9PRkVEPXllcyBLRVJOQ09ORj1NWUtFUk5FTCAg ICAgICAgICAgICAgICAgICAgICA7IE1ZS0VSTkVMIGNvbnRlbnQgaXMgc2hvd24gYmVsb3cgaW4g Y2FzZSBpdCBpcyBhIGNhdXNlDQojbWFrZSBpbnN0YWxsa2VybmVsIFdJVEhfT0ZFRD15ZXMgIEtF Uk5DT05GPU1ZS0VSTkVMDQojcmVib290DQojY2QgL3Vzci9zcmMvc3lzL21vZHVsZXMvbGludXhr cGkNCiNtYWtlIGNsZWFuICYmIG1ha2UgV0lUSF9PRkVEPXllcw0KI2NkIC91c3Ivc3JjL3N5cy9t b2R1bGVzL2liY29yZQ0KI21ha2UgY2xlYW4gJiYgbWFrZSBXSVRIX09GRUQ9eWVzDQoja2xkbG9h ZCAtdiAvdXNyL29iai91c3Ivc3JjL2FtZDY0LmFtZDY0L3N5cy9tb2R1bGVzL2xpbnV4a3BpL2xp bnV4a3BpLmtvDQoja2xkbG9hZCAtdiAvdXNyL29iai91c3Ivc3JjL2FtZDY0LmFtZDY0L3N5cy9t b2R1bGVzL2liY29yZS9pYmNvcmUua28NCg0KbGludXhrcGkua28gbG9hZHMgZmluZS4gDQpIb3dl dmVyIEkgc2VlIHRoZSBzYW1lIGVycm9yIHdoZW4gSSBsb2FkIGliY29yZS5rbw0KPT09PT09PT09 PT09PT09PQ0KCWxpbmtfZWxmX29iajogc3ltYm9sIGlmX2luZGV4IHVuZGVmaW5lZA0KCWxpbmtl cl9sb2FkX2ZpbGU6IC91c3Ivb2JqL3Vzci9zcmMvYW1kNjQuYW1kNjQvc3lzL21vZHVsZXMvaWJj b3JlL2liY29yZS5rbyAtIHVuc3VwcG9ydGVkIGZpbGUgdHlwZQ0KPT09PT09PT09PT09PT09PQ0K DQpJIGRvbid0IHNlZSBhbnkgc3VjaCBwcm9ibGVtcyB3aXRoIEZyZWVCU0QxMS4xIG9yIDExLjAg S2VybmVscy4NCg0KV291bGQgYXBwcmVjaWF0ZSBhbnkgaGVscC4NCg0KQ2hlZXJzDQpEYXZpZCBT LiAoZGF2aWRjc0BmcmVlYnNkLm9yZykNCg0KPT09PSBNWUtFUk5FTCBGSUxFIENPTlRFTlQgQkVH SU4gPT09PT09PT09DQppbmNsdWRlICAgICAgICAgR0VORVJJQw0KaWRlbnQgICAgICAgICAgIE1Z S0VSTkVMDQoNCm1ha2VvcHRpb25zICAgICBNT0RVTEVTX09WRVJSSURFPSJieGUgY3hnYiBjeGdi ZSBldCBpcG1pIG14Z2UgbmV0Z3JhcGggbnVsbGZzIG54Z2Ugb2NlIHFseGdiIHZ4Z2UgbWx4NCBp eGwiDQpub2RldmljZSAgICAgICAgYnhlDQpub2RldmljZSAgICAgICAgY3hnYg0Kbm9kZXZpY2Ug ICAgICAgIGN4Z2JlDQojbm9kZXZpY2UgICAgICAgIGVtDQpub2RldmljZSAgICAgICAgZXQNCiNu b2RldmljZSAgICAgICAgaWdiDQpub2RldmljZSAgICAgICAgaXhnYmUNCm5vZGV2aWNlICAgICAg ICBteGdlDQpub2RldmljZSAgICAgICAgbnhnZQ0Kbm9kZXZpY2UgICAgICAgIG9jZQ0Kbm9kZXZp Y2UgICAgICAgIHFseGdiDQpub2RldmljZSAgICAgICAgcWx4Z2JlDQpub2RldmljZSAgICAgICAg aXNwDQpub2RldmljZSAgICAgICAgbWx4DQpub2RldmljZSAgICAgICAgbWx4NQ0KI25vZGV2aWNl ICAgICAgICBtbHhlbg0KI25vZGV2aWNlICAgICAgIGl4bA0KI29wdGlvbnMgICAgICAgICAgICAg ICAgUkFURUxJTUlUDQojIERlYnVnZ2luZyBzdXBwb3J0LiAgQWx3YXlzIG5lZWQgdGhpczoNCm5v b3B0aW9ucyAgICAgICBLREIgICAgICAgICAgICAgICAgICAgICAjIEVuYWJsZSBrZXJuZWwgZGVi dWdnZXIgc3VwcG9ydC4NCiMgbm9vcHRpb25zICAgICBLREJfVFJBQ0UgICAgICAgICAgICAgICAj IFByaW50IGEgc3RhY2sgdHJhY2UgZm9yIGEgcGFuaWMuDQojIEZvciBmdWxsIGRlYnVnZ2VyIHN1 cHBvcnQgdXNlICh0dXJuIG9mZiBpbiBzdGFibGUgYnJhbmNoKToNCm5vb3B0aW9ucyAgICAgICBE REIgICAgICAgICAgICAgICAgICAgICAjIFN1cHBvcnQgRERCLg0Kbm9vcHRpb25zICAgICAgIEdE QiAgICAgICAgICAgICAgICAgICAgICMgU3VwcG9ydCByZW1vdGUgR0RCLg0Kbm9vcHRpb25zICAg ICAgIERFQURMS1JFUyAgICAgICAgICAgICAgICMgRW5hYmxlIHRoZSBkZWFkbG9jayByZXNvbHZl cg0Kbm9vcHRpb25zICAgICAgIElOVkFSSUFOVFMgICAgICAgICAgICAgICMgRW5hYmxlIGNhbGxz IG9mIGV4dHJhIHNhbml0eSBjaGVja2luZw0Kbm9vcHRpb25zICAgICAgIElOVkFSSUFOVF9TVVBQ T1JUICAgICAgICMgRXh0cmEgc2FuaXR5IGNoZWNrcyBvZiBpbnRlcm5hbCBzdHJ1Y3R1cmVzLCBy ZXF1aXJlZCBieSBJTlZBUklBTlRTDQpub29wdGlvbnMgICAgICAgV0lUTkVTUyAgICAgICAgICAg ICAgICAgIyBFbmFibGUgY2hlY2tzIHRvIGRldGVjdCBkZWFkbG9ja3MgYW5kIGN5Y2xlcw0Kbm9v cHRpb25zICAgICAgIFdJVE5FU1NfU0tJUFNQSU4gICAgICAgICMgRG9uJ3QgcnVuIHdpdG5lc3Mg b24gc3BpbmxvY2tzIGZvciBzcGVlZA0KI21ha2VvcHRpb25zICAgICBERUJVRz0tZyAgICAgICAg ICAgICAgICAjIEJ1aWxkIGtlcm5lbCB3aXRoIGdkYigxKSBkZWJ1ZyBzeW1ib2xzDQptYWtlb3B0 aW9ucyAgICAgREVCVUcrPS1mbm8taW5saW5lICAgICAgIyBIZWxwcyBEVHJhY2UgYW5kIEhXUE1D IHByb2R1Y2UNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIyBiZXR0 ZXIgc3RhY2sgdHJhY2VzDQojbWFrZW9wdGlvbnMgICAgIFdJVEhfQ1RGPTEgICAgICAgICAgICAg ICMgUnVuIGN0ZmNvbnZlcnQoMSkgZm9yIERUcmFjZSBzdXBwb3J0DQoNCg0KIyBGb3IgcG1jc3Rh dA0KZGV2aWNlIGh3cG1jDQojb3B0aW9ucyBIV1BNQ19IT09LUw0KDQoNCj09PT09PT09PT0gTVlL RVJORUwgRklMRSBDT05URU5UIEVORD09PT09PT09PT09PQ0KDQotLS0tLU9yaWdpbmFsIE1lc3Nh Z2UtLS0tLQ0KRnJvbTogSGFucyBQZXR0ZXIgU2VsYXNreSBbbWFpbHRvOmhwc0BzZWxhc2t5Lm9y Z10gDQpTZW50OiBXZWRuZXNkYXksIEFwcmlsIDI1LCAyMDE4IDc6NTEgQU0NClRvOiBKdWxpYW4g RWxpc2NoZXIgPGp1bGlhbkBmcmVlYnNkLm9yZz47IFNvbWF5YWp1bHUsIERhdmlkIDxEYXZpZC5T b21heWFqdWx1QGNhdml1bS5jb20+OyBmcmVlYnNkLW5ldEBmcmVlYnNkLm9yZw0KU3ViamVjdDog UmU6IGtsZGxvYWQgaWJjb3JlLmtvIGZhaWxzIGluIHNuYXBzaG90OiBGcmVlQlNELTEyLjAtQ1VS UkVOVC1hbWQ2NC0yMDE4MDMyOS1yMzMxNzQwLWRpc2MxDQoNCk9uIDA0LzI1LzE4IDE2OjEyLCBK dWxpYW4gRWxpc2NoZXIgd3JvdGU6DQo+IE9uIDI0LzQvMTggMzoxNSBwbSwgSGFucyBQZXR0ZXIg U2VsYXNreSB3cm90ZToNCj4+IE9uIDA0LzI0LzE4IDAxOjMzLCBTb21heWFqdWx1LCBEYXZpZCB3 cm90ZToNCj4+PiBIaSBBbGwsDQo+Pj4ga2xkbG9hZCBpYmNvcmUua28NCj4+PiBmYWlscyBpbiB0 aGUgYWJvdmUgc25hcHNob3Qgd2l0aCB0aGUgZm9sbG93aW5nIGVycm9yLg0KPj4+DQo+Pj4gIyBr bGRsb2FkIC12IA0KPj4+IC91c3Ivb2JqL3Vzci9zcmMvYW1kNjQuYW1kNjQvc3lzL21vZHVsZXMv aWJjb3JlL2liY29yZS5rbw0KPj4+IGtsZGxvYWQ6IGFuIGVycm9yIG9jY3VycmVkIHdoaWxlIGxv YWRpbmcgbW9kdWxlIA0KPj4+IC91c3Ivb2JqL3Vzci9zcmMvYW1kNjQuYW1kNjQvc3lzL21vZHVs ZXMvaWJjb3JlL2liY29yZS5rby4gUGxlYXNlIA0KPj4+IGNoZWNrIGRtZXNnKDgpIGZvciBtb3Jl IGRldGFpbHMuDQo+Pj4NCj4+PiAvdmFyL2xvZy9tZXNzYWdlcyBpbmRpY2F0ZXMgdGhlIGZvbGxv d2luZy4NCj4+Pg0KPj4+IEFwciAyMyAxNjoyODowNyBic2QyNV8xMiBrZXJuZWw6IGxpbmtfZWxm X29iajogc3ltYm9sIGlmX2luZGV4IA0KPj4+IHVuZGVmaW5lZCBBcHIgMjMgMTY6Mjg6MDcgYnNk MjVfMTIga2VybmVsOiBsaW5rZXJfbG9hZF9maWxlOg0KPj4+IC91c3Ivb2JqL3Vzci9zcmMvYW1k NjQuYW1kNjQvc3lzL21vZHVsZXMvaWJjb3JlL2liY29yZS5rbyAtIA0KPj4+IHVuc3VwcG9ydGVk IGZpbGUgdHlwZQ0KPj4+DQo+Pj4gV2hhdCBhbSBJIG1pc3Npbmc/DQo+Pj4NCj4+DQo+PiBIaSwN Cj4+DQo+PiBJdCBsb29rcyBsaWtlIGliY29yZS5rbyB3YXMgYnVpbHQgdy9vIERFQlVHX0ZMQUdT PSItRFZJTUFHRT0xIg0KPiANCj4gdGhhdCBzaG91bGRuJ3QgYmUgaW4gZGVidWcgZmxhZ3MuLsKg wqAgTm90IHN1cmUgV0hFUkUgaXQgc2hvdWxkIGJlLCBidXQgDQo+IEkgdGhpbmsgdGhhdCBpc24n dCBpdC4NCj4gKG1heSB3b3JrIHRob3VnaCkNCj4gDQoNCklmIHlvdSBidWlsZCBvdXRzaWRlIHRo ZSAiYnVpbGRrZXJuZWwgV0lUSF9PRkVEPVlFUyIgdGFyZ2V0IHRoZXNlIGZsYWdzIG11c3QgYmUg c3BlY2lmaWVkIG1hbnVhbGx5IGluIG15IGV4cGVyaWVuY2UuDQoNCi0tSFBTDQoNCg== From owner-freebsd-net@freebsd.org Thu Apr 26 22:28:03 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 072C8FB9ECA for ; Thu, 26 Apr 2018 22:28:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 9375A7991D for ; Thu, 26 Apr 2018 22:28:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 57995FB9EC7; Thu, 26 Apr 2018 22:28:02 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4502AFB9EC6 for ; Thu, 26 Apr 2018 22:28:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D2B79798FE for ; Thu, 26 Apr 2018 22:28:01 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 1C9751A1A2 for ; Thu, 26 Apr 2018 22:28:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3QMS0VH028125 for ; Thu, 26 Apr 2018 22:28:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3QMS0SR028124 for net@FreeBSD.org; Thu, 26 Apr 2018 22:28:00 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227770] [run] run(4) driver does not support modifying the txpower level using ifconfig(8) Date: Thu, 26 Apr 2018 22:28:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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.25 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, 26 Apr 2018 22:28:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227770 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|ports-bugs@FreeBSD.org |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 26 22:28:18 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5B074FB9F16 for ; Thu, 26 Apr 2018 22:28:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C27B579B93 for ; Thu, 26 Apr 2018 22:28:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 75DD4FB9F13; Thu, 26 Apr 2018 22:28:17 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 63350FB9F11 for ; Thu, 26 Apr 2018 22:28:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EFE4979B69 for ; Thu, 26 Apr 2018 22:28:16 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 2E22C1A1A4 for ; Thu, 26 Apr 2018 22:28:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3QMSGYE028449 for ; Thu, 26 Apr 2018 22:28:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3QMSGbM028448 for net@FreeBSD.org; Thu, 26 Apr 2018 22:28:16 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227760] Race condition in syncache_lookup and syncache_insert in TCP Handshake Date: Thu, 26 Apr 2018 22:28:16 +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: 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.25 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, 26 Apr 2018 22:28:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227760 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |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 27 07:06:26 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3A27EFC2551 for ; Fri, 27 Apr 2018 07:06:26 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 BB383857F1; Fri, 27 Apr 2018 07:06:25 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 33C352600F5; Fri, 27 Apr 2018 09:06:18 +0200 (CEST) Subject: Re: kldload ibcore.ko fails in snapshot: FreeBSD-12.0-CURRENT-amd64-20180329-r331740-disc1 To: "Somayajulu, David" , Julian Elischer , "freebsd-net@freebsd.org" Cc: "davidcs@freebsd.org" References: <53cea7bc-c3e5-26c3-30d8-42438e67f19f@selasky.org> <32be98b1-4abe-3de4-ec62-c3282bc3cad2@freebsd.org> From: Hans Petter Selasky Message-ID: Date: Fri, 27 Apr 2018 09:06:11 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 27 Apr 2018 07:06:26 -0000 On 04/26/18 22:45, Somayajulu, David wrote: > Thanks Hans and Julian. > I did the following and still see the problem > > #cd /usr/src > #make buildworld WITH_OFED=yes > #make installworld WITH_OFED=yes > #reboot > #cd /usr/src > #make buildkernel WITH_OFED=yes KERNCONF=MYKERNEL ; MYKERNEL content is shown below in case it is a cause > #make installkernel WITH_OFED=yes KERNCONF=MYKERNEL > #reboot > #cd /usr/src/sys/modules/linuxkpi > #make clean && make WITH_OFED=yes Hi, WITH_OFED=YES is only valid for buildworld. Please add DEBUG_FLAGS="-DVIMAGE=1" whenever you are building modules outside buildworld. --HPS From owner-freebsd-net@freebsd.org Fri Apr 27 14:35:15 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B4BA2FA929E for ; Fri, 27 Apr 2018 14:35:15 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (unknown [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2F7DD82DB4 for ; Fri, 27 Apr 2018 14:35:15 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w3REZ8w9048950 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Apr 2018 16:35:08 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: ab.tariq90@gmail.com Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w3REZ4a2039537 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 27 Apr 2018 21:35:04 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Abdullah Tariq References: <5AE216DC.7010905@grosbein.net> From: Eugene Grosbein Cc: "freebsd-net@freebsd.org" Message-ID: <5AE33513.1000001@grosbein.net> Date: Fri, 27 Apr 2018 21:34:59 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -0.0 SPF_PASS SPF: sender matches SPF record * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS * 2.6 LOCAL_FROM From my domains X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 27 Apr 2018 14:35:15 -0000 27.04.2018 21:28, Abdullah Tariq wrote: > No, i am trying to bridge untagged frames between vlans of these interfaces. Is it doable? Sure. If you need to accept untagged frames from igb5, add tag 5 and send over igb6, just create a bridge and add igb5 and vlan2 (vlan 5 vlandev igb6) to the bridge. From owner-freebsd-net@freebsd.org Fri Apr 27 14:43:48 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1579EFA9626 for ; Fri, 27 Apr 2018 14:43:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A229885D44 for ; Fri, 27 Apr 2018 14:43:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 66207FA9625; Fri, 27 Apr 2018 14:43:47 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 51916FA9624 for ; Fri, 27 Apr 2018 14:43:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CC67485D3D for ; Fri, 27 Apr 2018 14:43:46 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 26CD422738 for ; Fri, 27 Apr 2018 14:43:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3REhkZp088831 for ; Fri, 27 Apr 2018 14:43:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3REhkNi088830 for net@FreeBSD.org; Fri, 27 Apr 2018 14:43:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 222065] security/ipsec-tools: racoon initiates phase 1 to wrong port Date: Fri, 27 Apr 2018 14:43:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: longwitz@incore.de X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vanhu@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? 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.25 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, 27 Apr 2018 14:43:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222065 longwitz@incore.de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |longwitz@incore.de --- Comment #2 from longwitz@incore.de --- The problem in this bug report may be the same as described in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D192774#c4 --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Fri Apr 27 15:09:19 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9D399FA9CFC for ; Fri, 27 Apr 2018 15:09:19 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (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 369336BD17 for ; Fri, 27 Apr 2018 15:09:19 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1fC4a6-0006oL-U0; Fri, 27 Apr 2018 17:42:38 +0300 Date: Fri, 27 Apr 2018 17:42:38 +0300 From: Slawa Olhovchenkov To: Eugene Grosbein Cc: Abdullah Tariq , freebsd-net@freebsd.org Subject: Re: NETGRAPH- bridge vlans using netgraph help Message-ID: <20180427144238.GA80496@zxy.spb.ru> References: <5AE216DC.7010905@grosbein.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5AE216DC.7010905@grosbein.net> User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 27 Apr 2018 15:09:19 -0000 On Fri, Apr 27, 2018 at 01:13:48AM +0700, Eugene Grosbein wrote: > 27.04.2018 0:58, Abdullah Tariq wrote: > > > I am trying to make 2 systems connected to freebsd box directly to be able > > to communicated with each other. Explanation diagram is attached > > > > ifconfig vlan2 create vlan 5 vlandev igb5 > > ifconfig vlan3 create vlan 5 vlandev igb6 > > ifconfig bridge10 create addm vlan2 addm vlan3 up > > > > as explained to me on freebsd forums > > > >> PC1 would send packets without any vlan tags attached (so they belong to > >> the "DEFAULT" vlan aka vlan 1). igb0 on FreeBSD would receive the packet, > >> compare the vlan tag to what it's configured to use (1 <--> 5), see they > >> are not equal, and would drop the packet. > >> Same for PC2. It would send untagged packets (aka vlan tag 1) to igb1. > >> FreeBSD would compare vlan tags, see they don't match what's set on igb1, > >> and drop the packets. > >> If you configure PC1 and PC2 to also use tagged vlan 5, then the bridge > >> configuration using tagged vlan 5 interfaces would work. > > > > > > > > Which turns me to netgraph. The documentation is very very scarce. So i > > want to know if what i am trying to achieve is possible and if anyone can > > please guide me. > > Rhanks > > If you want to bridge untagged frames between igb5 and igb6, you do not need > to dive into netgraph structures. Just create another bridgeX and add both of > igb5 and igb6 to that bridge. I am use next script for bridge vr0 and wlan0: kldload -v ng_eiface ng_ether ng_bridge ngctl mkpeer . eiface hook ether ifconfig ngeth0 ether 00:40:63:c1:87:02 ngctl mkpeer ngeth0: bridge ether link0 ngctl name ngeth0:ether br0 ngctl connect wlan0: br0: lower link1 ngctl msg wlan0: setpromisc 1 ngctl msg wlan0: setautosrc 0 ngctl connect vr0: br0: lower link2 ngctl msg vr0: setpromisc 1 ngctl msg vr0: setautosrc 0 From owner-freebsd-net@freebsd.org Fri Apr 27 15:42:03 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3B82EFAB118 for ; Fri, 27 Apr 2018 15:42:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id CAC6E73921 for ; Fri, 27 Apr 2018 15:42:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 8E1AFFAB117; Fri, 27 Apr 2018 15:42:02 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7B372FAB116 for ; Fri, 27 Apr 2018 15:42:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1601C7391B for ; Fri, 27 Apr 2018 15:42:02 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 3E91A22F9A for ; Fri, 27 Apr 2018 15:42:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3RFg14s012531 for ; Fri, 27 Apr 2018 15:42:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3RFg17L012529 for net@FreeBSD.org; Fri, 27 Apr 2018 15:42:01 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 222065] security/ipsec-tools: racoon initiates phase 1 to wrong port Date: Fri, 27 Apr 2018 15:42:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: eugen@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vanhu@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: attachments.created 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.25 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, 27 Apr 2018 15:42:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222065 --- Comment #3 from Eugene Grosbein --- Created attachment 192849 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D192849&action= =3Dedit proposed fix Dear submitter, please save attached patch as /usr/ports/security/ipsec-tools/patch-isakmpinit and rebuild and reinstall = the port to see if it solves your problem. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Fri Apr 27 15:53:09 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5D0BFAB40D for ; Fri, 27 Apr 2018 15:53:09 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (unknown [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 30E5E76760 for ; Fri, 27 Apr 2018 15:53:08 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w3RFr1Sn049572 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Apr 2018 17:53:02 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: ab.tariq90@gmail.com Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w3RFqwOh049428 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 27 Apr 2018 22:52:58 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Abdullah Tariq , "freebsd-net@freebsd.org" References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> From: Eugene Grosbein Message-ID: <5AE34754.6040905@grosbein.net> Date: Fri, 27 Apr 2018 22:52:52 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -0.0 SPF_PASS SPF: sender matches SPF record * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS * 2.6 LOCAL_FROM From my domains X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 27 Apr 2018 15:53:09 -0000 27.04.2018 21:39, Abdullah Tariq wrote: > > No, i am trying to bridge untagged frames between vlans of these interfaces. Is it doable? > > Sure. If you need to accept untagged frames from igb5, add tag 5 and send over igb6, > just create a bridge and add igb5 and vlan2 (vlan 5 vlandev igb6) to the bridge. > ok sounds good but when i use following config > > ifconfig vlan2 create vlan 5 vlandev igb5 > ifconfig vlan3 create vlan 5 vlandev igb6 > ifconfig bridge10 create addm vlan2 addm vlan3 up| > > then it doesnt work.. 2 vlans with same tag dont work? They do but that's not what you need. You deal with untagged frames on igb5, so do not create any vlan on top on igb5 but use it directly: ifconfig bridge10 create addm igb5 addm vlan3 up And please do not top-post and reply to the list, not privately. Thank you. From owner-freebsd-net@freebsd.org Fri Apr 27 15:57:59 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9A11BFAB9EE for ; Fri, 27 Apr 2018 15:57:59 +0000 (UTC) (envelope-from ab.tariq90@gmail.com) Received: from mail-it0-x22d.google.com (mail-it0-x22d.google.com [IPv6:2607:f8b0:4001:c0b::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 060A27875E for ; Fri, 27 Apr 2018 15:57:56 +0000 (UTC) (envelope-from ab.tariq90@gmail.com) Received: by mail-it0-x22d.google.com with SMTP id 71-v6so2402357ith.2 for ; Fri, 27 Apr 2018 08:57:56 -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=ke5JgO9zWrBtixGQB6dwHUCNqP89S/rNTExOz7N2M3M=; b=bsRdYtACIRz/4dPTgyEdcpnk9GzaU5vMUcso0qsaHauy4Ss9rxduT7yqTFENE/c73q alkTvHsYGWnS+ZKGcp2ImlYlqynkrIcFH9TFj3lajqy31CkHcs9A1W9XyF0330/aK2qd iBMxPJZ0+HYYpGuGYrQyLe93BGLX31D4aQq09gzV1Ohv7tN7ctnZhk001DEZ3lFVNI3N rDH/ZZyAKt4Pf9jaJpzSeXWtgRY1CliMH8p+txPYxzYquk89Vj3/tSEk+WP0vgadWhnG 7dsVf4uHN16Ac3DbYWUN5X55nUmXeq+l2N2FslLKqhaUj1xFgLtA8i84Uc4fKB7WyKoU KZdA== 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=ke5JgO9zWrBtixGQB6dwHUCNqP89S/rNTExOz7N2M3M=; b=Kx3ZVueSLNANFhHbnxGo4QXYhzWiGbuLvQdur4YnrriBRmG0zTLoCPQ18eh2/v1dBK rTzk3Hg7UZoRLA9xTAJTF1XD9VEa0XkdRFNDAIaxV7Xw5R+mmqESRHR36FO8apsJqVYU U1O4e0lvUOZ/wLxzqP4HaL8xvH56EMKJLxjA2BkQQmK1vKkLqcwbTpIpazZShWIku4x4 xV9W33TEKRk4chj8X4Twl94skkul//ZTTlcg7PbAXElHz+iHe9+jEdVn/U6RZgxsCdWr MxXqPgJJp6Sd0f+jjSY7jKgfpzHDNFXkIawYba7bbQn8mK9pvFFS7DEmLpAmB5mbFbJ0 YPvw== X-Gm-Message-State: ALQs6tC0uFnJLQvd1cUTF9EowxHo/4rwdOT/4wHzl0ZUzARL8klYLk8V lo/VOa8/hT6/tZ6zYyChZvnmltHawlDXEmacM6sx+g== X-Google-Smtp-Source: AB8JxZrMLkTdPEIou+igY1nqKn94/8U7hf7xcnmlGWu29PHDIcRCiVNa1poesh4oNh6raLRGJWibNkPTKuQzdalrs5Y= X-Received: by 2002:a24:a342:: with SMTP id p63-v6mr2460867ite.146.1524844676232; Fri, 27 Apr 2018 08:57:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:4a93:0:0:0:0:0 with HTTP; Fri, 27 Apr 2018 08:57:55 -0700 (PDT) In-Reply-To: <5AE34754.6040905@grosbein.net> References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> <5AE34754.6040905@grosbein.net> From: Abdullah Tariq Date: Fri, 27 Apr 2018 20:57:55 +0500 Message-ID: Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Eugene Grosbein Cc: "freebsd-net@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 27 Apr 2018 15:57:59 -0000 > > And please do not top-post and reply to the list, not privately. Thank you. sorry for that. > > They do but that's not what you need. You deal with untagged frames on > igb5, > so do not create any vlan on top on igb5 but use it directly: > ifconfig bridge10 create addm igb5 addm vlan3 up so if i need 2 ports with same vlan tags to communicate with each other i create 2 bridges ifconfig vlan2 create vlan 5 vlandev igb5 ifconfig vlan3 create vlan 5 vlandev igb6 ifconfig bridge10 create addm igb5 addm vlan3 up ifconfig bridge11 create addm igb6 addm vlan2 up is this the right way? On Fri, Apr 27, 2018 at 8:52 PM, Eugene Grosbein wrote: > 27.04.2018 21:39, Abdullah Tariq wrote: > > > > No, i am trying to bridge untagged frames between vlans of these > interfaces. Is it doable? > > > > Sure. If you need to accept untagged frames from igb5, add tag 5 and > send over igb6, > > just create a bridge and add igb5 and vlan2 (vlan 5 vlandev igb6) to > the bridge. > > > ok sounds good but when i use following config > > > > ifconfig vlan2 create vlan 5 vlandev igb5 > > ifconfig vlan3 create vlan 5 vlandev igb6 > > ifconfig bridge10 create addm vlan2 addm vlan3 up| > > > > then it doesnt work.. 2 vlans with same tag dont work? > > They do but that's not what you need. You deal with untagged frames on > igb5, > so do not create any vlan on top on igb5 but use it directly: > > ifconfig bridge10 create addm igb5 addm vlan3 up > > And please do not top-post and reply to the list, not privately. Thank you. > > From owner-freebsd-net@freebsd.org Fri Apr 27 16:08:55 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 62C67FABFBB for ; Fri, 27 Apr 2018 16:08:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id F139C7B299 for ; Fri, 27 Apr 2018 16:08:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B29AFFABFBA; Fri, 27 Apr 2018 16:08:54 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9FD7DFABFB9 for ; Fri, 27 Apr 2018 16:08:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 352867B297 for ; Fri, 27 Apr 2018 16:08: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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 77A1123280 for ; Fri, 27 Apr 2018 16:08:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3RG8rkM089434 for ; Fri, 27 Apr 2018 16:08:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3RG8rjL089433 for net@FreeBSD.org; Fri, 27 Apr 2018 16:08:53 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 222065] security/ipsec-tools: racoon initiates phase 1 to wrong port Date: Fri, 27 Apr 2018 16:08:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: eugen@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vanhu@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? 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.25 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, 27 Apr 2018 16:08:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222065 --- Comment #4 from Eugene Grosbein --- (In reply to Eugene Grosbein from comment #3) Sorry, correct patch should be /usr/ports/security/ipsec-tools/files/patch-isakmpinit --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Fri Apr 27 16:17:22 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A06F4FAC33F for ; Fri, 27 Apr 2018 16:17:22 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (unknown [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 04BEB7DEEE for ; Fri, 27 Apr 2018 16:17:21 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w3RGHCUa050474 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Apr 2018 18:17:13 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: ab.tariq90@gmail.com Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w3RGH4EO049932 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 27 Apr 2018 23:17:04 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Abdullah Tariq References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> <5AE34754.6040905@grosbein.net> Cc: "freebsd-net@freebsd.org" From: Eugene Grosbein Message-ID: <5AE34CFA.7000207@grosbein.net> Date: Fri, 27 Apr 2018 23:16:58 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -0.0 SPF_PASS SPF: sender matches SPF record * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS * 2.6 LOCAL_FROM From my domains X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 27 Apr 2018 16:17:22 -0000 27.04.2018 22:57, Abdullah Tariq wrote: > And please do not top-post and reply to the list, not privately. Thank you. > > sorry for that. > > > They do but that's not what you need. You deal with untagged frames on igb5, > so do not create any vlan on top on igb5 but use it directly: > ifconfig bridge10 create addm igb5 addm vlan3 up > > > so if i need 2 ports with same vlan tags to communicate with each other > i create 2 bridges > ifconfig vlan2 create vlan 5 vlandev igb5 > ifconfig vlan3 create vlan 5 vlandev igb6 > ifconfig bridge10 create addm igb5 addm vlan3 up > ifconfig bridge11 create addm igb6 addm vlan2 up > > is this the right way? No. If you have two ports that should carry untagged frames and form single vlan and this vlan has no other ports carrying tagged frames, then this vlan effectively has *no* tag number, or better say, its tag number does not matter. In that case, do not create any vlan interfaces for the vlan at all but bridge ports directly: ifconfig bridge10 addm igb5 addm igb6 From owner-freebsd-net@freebsd.org Fri Apr 27 18:40:49 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BD4DAFAF5BC for ; Fri, 27 Apr 2018 18:40:48 +0000 (UTC) (envelope-from David.Somayajulu@cavium.com) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0044.outbound.protection.outlook.com [104.47.36.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT TLS CA 4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1F4DB7E6D3; Fri, 27 Apr 2018 18:40:47 +0000 (UTC) (envelope-from David.Somayajulu@cavium.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=B5sBM3tmqyWxrnlmG+JapczFS0/LjZ/W0ns81qfuMR4=; b=m7eKCH4gbD/ElwQG3O0JPdiWzLr82YMQTjzTxRP4lDzo62oexftgxr+F51yUlENL6cGL3YXPH52Qvgmyr5d7v67r9WHSYzgItH+3TKITSYzh+Ov3arcw9TiXQK3ZVTQOxqxmQSigsrR4/nl47tmdcTMuga45UVP/J6YYFicRR0A= Received: from MWHPR07MB3135.namprd07.prod.outlook.com (10.172.95.17) by MWHPR07MB3613.namprd07.prod.outlook.com (10.164.192.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Fri, 27 Apr 2018 18:40:46 +0000 Received: from MWHPR07MB3135.namprd07.prod.outlook.com ([fe80::75da:25e5:5d66:5b1]) by MWHPR07MB3135.namprd07.prod.outlook.com ([fe80::75da:25e5:5d66:5b1%17]) with mapi id 15.20.0696.020; Fri, 27 Apr 2018 18:40:46 +0000 From: "Somayajulu, David" To: Hans Petter Selasky , Julian Elischer , "freebsd-net@freebsd.org" CC: "davidcs@freebsd.org" Subject: RE: kldload ibcore.ko fails in snapshot: FreeBSD-12.0-CURRENT-amd64-20180329-r331740-disc1 Thread-Topic: kldload ibcore.ko fails in snapshot: FreeBSD-12.0-CURRENT-amd64-20180329-r331740-disc1 Thread-Index: AQHT25wV+h0PDP5NH0GG/f+K3U4yYKQRh5OAgAAKwQCAAe/OIIAAsxeAgADB/yA= Date: Fri, 27 Apr 2018 18:40:45 +0000 Message-ID: References: <53cea7bc-c3e5-26c3-30d8-42438e67f19f@selasky.org> <32be98b1-4abe-3de4-ec62-c3282bc3cad2@freebsd.org> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=David.Somayajulu@cavium.com; x-originating-ip: [198.186.1.5] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; MWHPR07MB3613; 7:oCVBVD4eP/f76EWF9BwbpgloOgFrZXj4HRipbYAIVIjw2ty2uKkKUisi3FViUgCSJ+pYnxBofPXfeW2jmcnyY1kY7byvk9AIeGfOC4Jw/rLdna2sbhJXjACh1fBeFRydv0wVQzaGmS6mscrmtObI+/6lIUwujD+0atkJKOdJByZg3c5UEjdw2h/0894A3cM+xqZke0OsHo1gOaEZ606j+5HX0i8Ng3mxQ2Y5VPPGLXuAMM13hNrRGznTYonoyO58 x-ms-exchange-antispam-srfa-diagnostics: SOS; x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:MWHPR07MB3613; x-ms-traffictypediagnostic: MWHPR07MB3613: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231232)(944501410)(52105095)(10201501046)(93006095)(93001095)(3002001)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:MWHPR07MB3613; BCL:0; PCL:0; RULEID:; SRVR:MWHPR07MB3613; x-forefront-prvs: 0655F9F006 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(346002)(376002)(39850400004)(366004)(39380400002)(13464003)(189003)(199004)(6246003)(53936002)(5250100002)(8936002)(229853002)(9686003)(110136005)(102836004)(4326008)(2906002)(33656002)(76176011)(7696005)(305945005)(66066001)(81156014)(7736002)(186003)(93886005)(74316002)(8676002)(81166006)(55016002)(53546011)(316002)(2501003)(6506007)(486006)(14454004)(6436002)(68736007)(99286004)(97736004)(476003)(86362001)(3846002)(105586002)(6116002)(2900100001)(5660300001)(106356001)(25786009)(26005)(3660700001)(3280700002)(11346002)(446003)(478600001)(72206003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3613; H:MWHPR07MB3135.namprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: H7ttKEryjuLor9pTQIZVrLDlAb7wD4UW6xbCr6SjCnWDETuNRq4l+gPt1BaXtGv0uU4XHuuY18GUEzWOtvshu0Gi+2T5TXENqn0vpDlBebodrPMQTexXtECfmer2aG4dsBdBRCuoDnNbEJKK8ekklKKIRR/UbetYR4hGfwHoo7Yz7LDoFfvXKNvYOGpjw50H spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 0b5d6e4a-f288-4b92-37ef-08d5ac6e639d X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0b5d6e4a-f288-4b92-37ef-08d5ac6e639d X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Apr 2018 18:40:45.8077 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3613 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 27 Apr 2018 18:40:49 -0000 VGhhbmtzIEhhbnMuIEl0IHdvcmtzLg0KQ2hlZXJzDQpEYXZpZCBTLg0KDQotLS0tLU9yaWdpbmFs IE1lc3NhZ2UtLS0tLQ0KRnJvbTogSGFucyBQZXR0ZXIgU2VsYXNreSBbbWFpbHRvOmhwc0BzZWxh c2t5Lm9yZ10gDQpTZW50OiBGcmlkYXksIEFwcmlsIDI3LCAyMDE4IDEyOjA2IEFNDQpUbzogU29t YXlhanVsdSwgRGF2aWQgPERhdmlkLlNvbWF5YWp1bHVAY2F2aXVtLmNvbT47IEp1bGlhbiBFbGlz Y2hlciA8anVsaWFuQGZyZWVic2Qub3JnPjsgZnJlZWJzZC1uZXRAZnJlZWJzZC5vcmcNCkNjOiBk YXZpZGNzQGZyZWVic2Qub3JnDQpTdWJqZWN0OiBSZToga2xkbG9hZCBpYmNvcmUua28gZmFpbHMg aW4gc25hcHNob3Q6IEZyZWVCU0QtMTIuMC1DVVJSRU5ULWFtZDY0LTIwMTgwMzI5LXIzMzE3NDAt ZGlzYzENCg0KT24gMDQvMjYvMTggMjI6NDUsIFNvbWF5YWp1bHUsIERhdmlkIHdyb3RlOg0KPiBU aGFua3MgSGFucyBhbmQgSnVsaWFuLg0KPiBJIGRpZCB0aGUgZm9sbG93aW5nIGFuZCBzdGlsbCBz ZWUgdGhlIHByb2JsZW0NCj4gDQo+ICNjZCAvdXNyL3NyYw0KPiAjbWFrZSBidWlsZHdvcmxkIFdJ VEhfT0ZFRD15ZXMNCj4gI21ha2UgaW5zdGFsbHdvcmxkIFdJVEhfT0ZFRD15ZXMNCj4gI3JlYm9v dA0KPiAjY2QgL3Vzci9zcmMNCj4gI21ha2UgYnVpbGRrZXJuZWwgV0lUSF9PRkVEPXllcyBLRVJO Q09ORj1NWUtFUk5FTCAgICAgICAgICAgICAgICAgICAgICA7IE1ZS0VSTkVMIGNvbnRlbnQgaXMg c2hvd24gYmVsb3cgaW4gY2FzZSBpdCBpcyBhIGNhdXNlDQo+ICNtYWtlIGluc3RhbGxrZXJuZWwg V0lUSF9PRkVEPXllcyAgS0VSTkNPTkY9TVlLRVJORUwgI3JlYm9vdCAjY2QgDQo+IC91c3Ivc3Jj L3N5cy9tb2R1bGVzL2xpbnV4a3BpICNtYWtlIGNsZWFuICYmIG1ha2UgV0lUSF9PRkVEPXllcw0K DQpIaSwNCg0KV0lUSF9PRkVEPVlFUyBpcyBvbmx5IHZhbGlkIGZvciBidWlsZHdvcmxkLg0KDQpQ bGVhc2UgYWRkIERFQlVHX0ZMQUdTPSItRFZJTUFHRT0xIiB3aGVuZXZlciB5b3UgYXJlIGJ1aWxk aW5nIG1vZHVsZXMgb3V0c2lkZSBidWlsZHdvcmxkLg0KDQotLUhQUw0K From owner-freebsd-net@freebsd.org Fri Apr 27 22:22:38 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C7727FB3584 for ; Fri, 27 Apr 2018 22:22:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4B5256C6B1 for ; Fri, 27 Apr 2018 22:22:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id F351BFB3582; Fri, 27 Apr 2018 22:22:38 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E1309FB3581 for ; Fri, 27 Apr 2018 22:22:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6CDCD6C6B0 for ; Fri, 27 Apr 2018 22:22: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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 8251D26771 for ; Fri, 27 Apr 2018 22:22:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3RMMaUg094077 for ; Fri, 27 Apr 2018 22:22:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3RMMa4V094073 for net@FreeBSD.org; Fri, 27 Apr 2018 22:22:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 222065] security/ipsec-tools: racoon initiates phase 1 to wrong port Date: Fri, 27 Apr 2018 22:22:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: longwitz@incore.de X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vanhu@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? 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.25 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, 27 Apr 2018 22:22:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222065 --- Comment #5 from longwitz@incore.de --- I can report that your proposed fix patch-isakmpinit works correct in the situation I have described in Bug 192774. If this patch will be committed I will use it instead of my simple workaround in pfkey.c. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Sat Apr 28 05:49:58 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 541BAFC13E6 for ; Sat, 28 Apr 2018 05:49:58 +0000 (UTC) (envelope-from ab.tariq90@gmail.com) Received: from mail-it0-x22d.google.com (mail-it0-x22d.google.com [IPv6:2607:f8b0:4001:c0b::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C615683AD0 for ; Sat, 28 Apr 2018 05:49:57 +0000 (UTC) (envelope-from ab.tariq90@gmail.com) Received: by mail-it0-x22d.google.com with SMTP id 19-v6so4284800itw.3 for ; Fri, 27 Apr 2018 22:49:57 -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=C196ntBdMGRwZRJUJ/bj0ILXPJL/w4qqQU1Lyln53s4=; b=UvydqSG33gRimuTgplV57q6cMOwK2lU9BAidRu7jGNmceRjSwsuT3MxKaG++aGrlll L5D5WwEwFOkn0lT+cBJJqkrt3l7Ng1UDUl+4MiPtF74fVeob0Y7Zm0C0VxSuNqEgcJZS kOv3ot6RtsobQ5KJSfkkBJkdotHZhBfEcaPjctgQoT0W5xnnzRLpffB5m1jNKcE2k9K1 YscTtcIljoegWq6sJqa9jYmz8D6kE9N3BZihkHXUSRq5yzEGtRt8lKCbLEWJKuFgM+as J1Md8FdAdy48K9rhwgNtrLhuG0JQGo7r/JK8fQZw2bG45Gq0o2VrHSCOdOcf0G6F83Zg cjvg== 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=C196ntBdMGRwZRJUJ/bj0ILXPJL/w4qqQU1Lyln53s4=; b=DmcEqdGBGM30PyZOnV/Zi6LDNmbp3E9nYrRa8rbrzsgowmQO1qRkgabW25ADa0H1tp 5upwsBQ19UEjctgQF97ux7qgJNdV3xBumczWb6VYotsagSz6NDOvLTS6DU3V0ai4I4BT N5LzuPTmAUioPcV4C0D6JgJRY5pkFuIJF/d3X5sfNo5mf65oU7qiybJof/biElNjbCud kG9ciPiA6yPDMl4t9fVU1PYhEUpKBoaVLbCM2Ow2lr88QEsX/+wMT3zFGh+/bbmAM9IR GVgCFKKBuzpB/+sxqTCRU0RvtpHyJS0E4JIVYbf7MGUFxcLObT6fYWwSZB1F9ElXr2QL 4yBA== X-Gm-Message-State: ALQs6tBYCWcEDegzuOwadUMECHkmMgLubEr8gNyU23Bz65az01cnDimA Doz8NpOHPw6RxzpABMovYMhU4MQWdRqOv1MMp44EdQ== X-Google-Smtp-Source: AB8JxZo6KRsnWF0oF2RKpXRZQdAf7lOVZ5IeEK2aaBhIpbWmvf/bVMhWxlv5QcXGmaFemdxnk631IWeLvc1V4/gZNS0= X-Received: by 2002:a24:4e8d:: with SMTP id r135-v6mr4258287ita.143.1524894597218; Fri, 27 Apr 2018 22:49:57 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:4a93:0:0:0:0:0 with HTTP; Fri, 27 Apr 2018 22:49:56 -0700 (PDT) In-Reply-To: <5AE34CFA.7000207@grosbein.net> References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> <5AE34754.6040905@grosbein.net> <5AE34CFA.7000207@grosbein.net> From: Abdullah Tariq Date: Sat, 28 Apr 2018 10:49:56 +0500 Message-ID: Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Eugene Grosbein Cc: "freebsd-net@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2018 05:49:58 -0000 So it is not possible to replicate behaviour of standard L2 switches using freebsd where we have different VLANs, access and trunk ports? On Fri, Apr 27, 2018 at 9:16 PM, Eugene Grosbein wrote: > 27.04.2018 22:57, Abdullah Tariq wrote: > > > And please do not top-post and reply to the list, not privately. > Thank you. > > > > sorry for that. > > > > > > They do but that's not what you need. You deal with untagged frames > on igb5, > > so do not create any vlan on top on igb5 but use it directly: > > ifconfig bridge10 create addm igb5 addm vlan3 up > > > > > > so if i need 2 ports with same vlan tags to communicate with each other > > i create 2 bridges > > ifconfig vlan2 create vlan 5 vlandev igb5 > > ifconfig vlan3 create vlan 5 vlandev igb6 > > ifconfig bridge10 create addm igb5 addm vlan3 up > > ifconfig bridge11 create addm igb6 addm vlan2 up > > > > is this the right way? > > No. If you have two ports that should carry untagged frames and form > single vlan > and this vlan has no other ports carrying tagged frames, then > this vlan effectively has *no* tag number, or better say, its tag number > does not matter. > > In that case, do not create any vlan interfaces for the vlan at all but > bridge ports directly: > > ifconfig bridge10 addm igb5 addm igb6 > > > From owner-freebsd-net@freebsd.org Sat Apr 28 07:51:33 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 62479FC6668 for ; Sat, 28 Apr 2018 07:51:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id EE89C7F170 for ; Sat, 28 Apr 2018 07:51:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id AD8C9FC6664; Sat, 28 Apr 2018 07:51:32 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9B4F0FC6663 for ; Sat, 28 Apr 2018 07:51:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 36AF17F16E for ; Sat, 28 Apr 2018 07:51:32 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 680D23B4C for ; Sat, 28 Apr 2018 07:51:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3S7pVNB089977 for ; Sat, 28 Apr 2018 07:51:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3S7pVXL089976 for net@FreeBSD.org; Sat, 28 Apr 2018 07:51:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 221676] arp: invalid json output from libxo when bridge is present Date: Sat, 28 Apr 2018 07:51:29 +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.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: wes@wezm.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2018 07:51:33 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221676 Wesley Moore changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wes@wezm.net --- Comment #3 from Wesley Moore --- I just hit the same issue. Looking at the current code in head[1] it looks = like the patch still needs to be applied. Anything I can do to help make that happen? [1]: https://svnweb.freebsd.org/base/head/usr.sbin/arp/arp.c?revision=3D331714&v= iew=3Dmarkup#l670 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Sat Apr 28 08:59:00 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CB2A6FA70BC for ; Sat, 28 Apr 2018 08:58:59 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (unknown [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 58E586BBBB for ; Sat, 28 Apr 2018 08:58:59 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w3S8woSm030084 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 28 Apr 2018 10:58:50 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: ab.tariq90@gmail.com Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w3S8wkEr060448 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sat, 28 Apr 2018 15:58:46 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Abdullah Tariq References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> <5AE34754.6040905@grosbein.net> <5AE34CFA.7000207@grosbein.net> Cc: "freebsd-net@freebsd.org" From: Eugene Grosbein Message-ID: <5AE437C1.8010706@grosbein.net> Date: Sat, 28 Apr 2018 15:58:41 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -0.0 SPF_PASS SPF: sender matches SPF record * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2018 08:59:00 -0000 28.04.2018 12:49, Abdullah Tariq wrote: You still top-posting. Please don't. > > And please do not top-post and reply to the list, not privately. Thank you. > > sorry for that. > > They do but that's not what you need. You deal with untagged frames on igb5, > > so do not create any vlan on top on igb5 but use it directly: > > ifconfig bridge10 create addm igb5 addm vlan3 up > > so if i need 2 ports with same vlan tags to communicate with each other > > i create 2 bridges > > ifconfig vlan2 create vlan 5 vlandev igb5 > > ifconfig vlan3 create vlan 5 vlandev igb6 > > ifconfig bridge10 create addm igb5 addm vlan3 up > > ifconfig bridge11 create addm igb6 addm vlan2 up > > is this the right way? > No. If you have two ports that should carry untagged frames and form single vlan > and this vlan has no other ports carrying tagged frames, then > this vlan effectively has *no* tag number, or better say, its tag number does not matter. > In that case, do not create any vlan interfaces for the vlan at all but bridge ports directly: > ifconfig bridge10 addm igb5 addm igb6 > So it is not possible to replicate behaviour of standard L2 switches > using freebsd where we have different VLANs, access and trunk ports? It is possible to replicate *behaviour* but not configuration style. Unless you have real embedded switching chip in your system like many ARM or MIPS-based routers do, in which case you can use etherswitch(4) and etherswitchcfg(8) to create vlans and configure ports of such chip similar to L2 switches. From owner-freebsd-net@freebsd.org Sat Apr 28 09:26:43 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69E67FA846D for ; Sat, 28 Apr 2018 09:26:43 +0000 (UTC) (envelope-from b.hawks123@gmail.com) Received: from mail-qt0-x235.google.com (mail-qt0-x235.google.com [IPv6:2607:f8b0:400d:c0d::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 046BB6FD75 for ; Sat, 28 Apr 2018 09:26:42 +0000 (UTC) (envelope-from b.hawks123@gmail.com) Received: by mail-qt0-x235.google.com with SMTP id l11-v6so5431164qtj.10 for ; Sat, 28 Apr 2018 02:26:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=m1QU+E8CYG88H50EjluZE/8PKxpNNI9vJ01a+gnTBxo=; b=Z5RySxACCvhQ9FS/BoYNXcR7G1Sx9QY/IhGdDq9mHpmimG9F+6Fhswycd5CLZtximR ek092/xXQoQhAjy+c07dShmK31hNXXaBjJwy0fUsGx3Z8qdB8qqCJHMiCUrB1gPJa/x1 kTdRplC4qz0Dca6MhBdrxjKXUZciWL+1znzkP55kjHgQ/1/5gNEyxDv35FQ7Z9uvlt+8 7s8ZkQL34Gt4siau/VvTci8X/ghBqsovnD0IembHQD/M2kvS1/24DVRg+UEC1VAUKK74 Gq/7ztvMlU9GZ2w1XsVoj9thgOvTSn4oM1QFIFGP6Q7zdvQ54ynggTSwTYyLB55TSSeG qGUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=m1QU+E8CYG88H50EjluZE/8PKxpNNI9vJ01a+gnTBxo=; b=MCXUsKtqhXQOxcgVWq2WpXgvOjNkIDeMhBpA2+aNhB05AEIgBRcahsrRoJMqXw81qo 0fLM639OzE1lJhBFoVPppMM8vC6V0VdYQV11e25xfhg1kxlxEivV6Wqq7gBwDnYaQk+L ze9YLd2nqezssAQx2JuGAJ95OGCY9aOvciYwakNBvEWGVxe+eOTWwGjyezNnphVqkvo8 ku4bGD7QzccDlDTj0OzyZsynetRldTHtJXG0+iXkAoWcKvIXZY/uYlr/twmBk/LgCuhd cQLSO45xmg82Pd+ynBbAIU8ApH1jhTdFm4fPuo8mAcOc6/IGFd/J39bzgSQaed9Z+36C XaiA== X-Gm-Message-State: ALQs6tDiXbA1m/s5278dCY2UVOSuqK0djRFjDAaCGJfi7dxhmPAyVw8g +IbxLP2eCBcu7nPHIPrWjNLSbWw0PJ4KXTX+n8166g== X-Google-Smtp-Source: AB8JxZqlVZZVlS/sx6UKWpgfB8IzKBw0jYcfBBMgKnHAET5VD5Rpp3UPmEalNkOseRemmLXF9XkmT5q0QE/4H5eg9gQ= X-Received: by 2002:a0c:8856:: with SMTP id 22-v6mr2252511qvm.79.1524907602472; Sat, 28 Apr 2018 02:26:42 -0700 (PDT) MIME-Version: 1.0 References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> <5AE34754.6040905@grosbein.net> <5AE34CFA.7000207@grosbein.net> <5AE437C1.8010706@grosbein.net> In-Reply-To: <5AE437C1.8010706@grosbein.net> From: Abdullah Date: Sat, 28 Apr 2018 09:26:31 +0000 Message-ID: Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Eugene Grosbein Cc: freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2018 09:26:43 -0000 Configuration style doesn't really matter. I am trying to figure out how to make tagged traffic talk in a bridge. I have always had good support from bsd people over the last 4 5 years since i started using it, maybe it's time to add something to it :) What gives me hope is that linux (cumulus linux, openswitch, ONL) are doing so, i dont see why BSD can't do it. I haven't searched much other bsd flavors though. Regards Abdullah On Sat, Apr 28, 2018, 13:59 Eugene Grosbein wrote: > 28.04.2018 12:49, Abdullah Tariq wrote: > > You still top-posting. Please don't. > > > > And please do not top-post and reply to the list, not > privately. Thank you. > > > sorry for that. > > > They do but that's not what you need. You deal with untagged > frames on igb5, > > > so do not create any vlan on top on igb5 but use it directly: > > > ifconfig bridge10 create addm igb5 addm vlan3 up > > > so if i need 2 ports with same vlan tags to communicate with each > other > > > i create 2 bridges > > > ifconfig vlan2 create vlan 5 vlandev igb5 > > > ifconfig vlan3 create vlan 5 vlandev igb6 > > > ifconfig bridge10 create addm igb5 addm vlan3 up > > > ifconfig bridge11 create addm igb6 addm vlan2 up > > > is this the right way? > > No. If you have two ports that should carry untagged frames and form > single vlan > > and this vlan has no other ports carrying tagged frames, then > > this vlan effectively has *no* tag number, or better say, its tag > number does not matter. > > In that case, do not create any vlan interfaces for the vlan at all > but bridge ports directly: > > ifconfig bridge10 addm igb5 addm igb6 > > So it is not possible to replicate behaviour of standard L2 switches > > using freebsd where we have different VLANs, access and trunk ports? > > It is possible to replicate *behaviour* but not configuration style. > > Unless you have real embedded switching chip in your system like many ARM > or MIPS-based routers do, > in which case you can use etherswitch(4) and etherswitchcfg(8) to create > vlans and configure > ports of such chip similar to L2 switches. > > > From owner-freebsd-net@freebsd.org Sat Apr 28 10:20:31 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1970BFA9988 for ; Sat, 28 Apr 2018 10:20:31 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (unknown [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 903517CFBF for ; Sat, 28 Apr 2018 10:20:30 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w3SAKMdr030825 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 28 Apr 2018 12:20:23 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: ab.tariq90@gmail.com Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w3SAKI8J061252 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sat, 28 Apr 2018 17:20:18 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Abdullah References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> <5AE34754.6040905@grosbein.net> <5AE34CFA.7000207@grosbein.net> <5AE437C1.8010706@grosbein.net> Cc: freebsd-net@freebsd.org From: Eugene Grosbein Message-ID: <5AE44ADD.7020302@grosbein.net> Date: Sat, 28 Apr 2018 17:20:13 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -0.0 SPF_PASS SPF: sender matches SPF record * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2018 10:20:31 -0000 28.04.2018 16:26, Abdullah wrote: You are still ignoring requests to not top-post and I'm getting tired to fix it for you. I may just stop responding. >> You still top-posting. Please don't. >> It is possible to replicate *behaviour* but not configuration style. >> Unless you have real embedded switching chip in your system like many ARM or MIPS-based routers do, >> in which case you can use etherswitch(4) and etherswitchcfg(8) to create vlans and configure >> ports of such chip similar to L2 switches. > Configuration style doesn't really matter. > I am trying to figure out how to make tagged traffic talk in a bridge. > I have always had good support from bsd people over the last 4 5 years since i started using it, maybe it's time to add something to it :) > What gives me hope is that linux (cumulus linux, openswitch, ONL) are doing so, i dont see why BSD can't do it. I haven't searched much other bsd flavors though. Traffic of virtual lan (vlan) is not the same as tagged traffic, you know. You described a task where all vlan's ports are untagged and this is easily doable by bridging NIC interfaces without creation of syntetic vlan interface that is useless in case of untagged-only ports. If you really want to bridge 802.1q trunks, you should be stating so from the beginning. if_bridge(8) does not support tagged frames currently. It is generally bad idea to build full-blown switch out of FreeBSD unless you have mentioned companion switching chip. However, we still have several ways to bridge tagged traffic by means of creation multiple bridges (one per vlan) or using ng_vlan+ng_bridge to do the same. From owner-freebsd-net@freebsd.org Sat Apr 28 12:10:24 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B40BAFAD31C for ; Sat, 28 Apr 2018 12:10:24 +0000 (UTC) (envelope-from ab.tariq90@gmail.com) Received: from mail-io0-x231.google.com (mail-io0-x231.google.com [IPv6:2607:f8b0:4001:c06::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 427117591F for ; Sat, 28 Apr 2018 12:10:24 +0000 (UTC) (envelope-from ab.tariq90@gmail.com) Received: by mail-io0-x231.google.com with SMTP id f21-v6so5416876iob.13 for ; Sat, 28 Apr 2018 05:10:24 -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=IjJu6EXc/X7sI6CC9HOMJfEtxbWKDNlS1Rdr1Kc1xd0=; b=jNwLj4h/kr4aLw7+KKD+KKosI+iHUiCC+YHrBAkMfg3xs1XEIXoqp8sxw4ezK1PULE NiAdVJS3Wb1iVP/3pvac3XFxdUZdwsLvklfR4/0uO+ISeTITwUIQloYmrpxxmJiWLy2d cOZCfiIZXLGKfeQqBACgVh3d81F8vOKkMCI1QuMLm5w1fGzUHMqz0N+riBp7r7YQtEyD FcMLQEfUgcjQbSRuXDRwDv04M2ExGVTsRldKTS0DlLw2K4mQEnKL3U/Tn1YhGdWa665J syNXkf91TSpHdwgQQzfXo3ipEpzIv6OWA+4Ex+RqiqVJHEilGpiXZwi409hVziJAL2C8 98yA== 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=IjJu6EXc/X7sI6CC9HOMJfEtxbWKDNlS1Rdr1Kc1xd0=; b=gqrleyaOz9ZqSo/slyMlSDdgDu2yeuA7CaGuHLSge3sKUfRz1jCH+GQYoqdF0xOMpJ 3P5/DKO2+sTefMUZld0MOPTxG9ogeKmkmo9K+DgwaeqbGxdH9Mp+Wyng5eR2mWniv48Q hvh3Q9NNpgERlsZPWHAGDjwL48pu+bVXH3ln90yd44/fiiGa9OuxsHwCJ5Vk6imEIHrn wIVtCRxS0iVfV2wyw6vO2h9ayiEUIvxQPRxqpz4L/7vJ6CoCOhdtiKWA/VIUE/VqE4Ks d4y28De1C7pnXMV8IHq6YdP6th92nmK7Z2xFWsIoIAgOtus2MuBLq+nP9f8YUnPhsgNs zKyw== X-Gm-Message-State: ALQs6tBxOQr6LqwqRLcEqm8Qz+eY7HwbEmdKE3rkYZNGAKlmI/CO5LbJ xH1u2BytdXIG0/4iwL3gNC4y3+S5Ezql3lfvK8foK83a X-Google-Smtp-Source: AB8JxZrVzTAAaPmqq/Yq5oXH6bN8DjYacsdBL7s9GhAhQinANkvyGrkRjf2pVW3oliFaRNXpJocHS8lSSiWaBGfrLd0= X-Received: by 2002:a6b:9509:: with SMTP id x9-v6mr5851317iod.35.1524917423641; Sat, 28 Apr 2018 05:10:23 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:4a93:0:0:0:0:0 with HTTP; Sat, 28 Apr 2018 05:10:23 -0700 (PDT) In-Reply-To: <5AE44ADD.7020302@grosbein.net> References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> <5AE34754.6040905@grosbein.net> <5AE34CFA.7000207@grosbein.net> <5AE437C1.8010706@grosbein.net> <5AE44ADD.7020302@grosbein.net> From: Abdullah Tariq Date: Sat, 28 Apr 2018 17:10:23 +0500 Message-ID: Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Eugene Grosbein Cc: freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2018 12:10:24 -0000 > > You are still ignoring requests to not top-post and I'm getting tired to > fix it for you. > I may just stop responding. > Apologies again, last i thought i had replied to all after your first pointing out=F0=9F=98=B7 If you really want to bridge 802.1q trunks, you should be stating so from > the beginning. > Sorry if i couldnt make you understand properly. However, we still have several ways to bridge tagged traffic > by means of creation multiple bridges (one per vlan) or using > ng_vlan+ng_bridge to do the same. bridge1 will contain vlan 1 bridge2 will containn vlan2 and bridge3 should have bridge1 and bridge2? If not, can you please give some instructions/guidelines for ng_vlan+ng_bridge? Thanks On Sat, Apr 28, 2018 at 3:20 PM, Eugene Grosbein wrote= : > 28.04.2018 16:26, Abdullah wrote: > > You are still ignoring requests to not top-post and I'm getting tired to > fix it for you. > I may just stop responding. > > >> You still top-posting. Please don't. > >> It is possible to replicate *behaviour* but not configuration styl= e. > >> Unless you have real embedded switching chip in your system like > many ARM or MIPS-based routers do, > >> in which case you can use etherswitch(4) and etherswitchcfg(8) to > create vlans and configure > >> ports of such chip similar to L2 switches. > > > Configuration style doesn't really matter. > > I am trying to figure out how to make tagged traffic talk in a bridge. > > I have always had good support from bsd people over the last 4 5 years > since i started using it, maybe it's time to add something to it :) > > What gives me hope is that linux (cumulus linux, openswitch, ONL) are > doing so, i dont see why BSD can't do it. I haven't searched much other b= sd > flavors though. > > Traffic of virtual lan (vlan) is not the same as tagged traffic, you know= . > You described a task where all vlan's ports are untagged and this is > easily doable > by bridging NIC interfaces without creation of syntetic vlan interface > that is useless in case of untagged-only ports. > > If you really want to bridge 802.1q trunks, you should be stating so from > the beginning. > if_bridge(8) does not support tagged frames currently. > > It is generally bad idea to build full-blown switch out of FreeBSD unless > you have mentioned > companion switching chip. However, we still have several ways to bridge > tagged traffic > by means of creation multiple bridges (one per vlan) or using > ng_vlan+ng_bridge to do the same. > > From owner-freebsd-net@freebsd.org Sat Apr 28 12:20:15 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 358A0FAD6BF for ; Sat, 28 Apr 2018 12:20:15 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (unknown [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id AB2A27657A for ; Sat, 28 Apr 2018 12:20:14 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w3SCK7Yh031862 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 28 Apr 2018 14:20:08 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: ab.tariq90@gmail.com Received: from [10.58.0.4] (dadv@[10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w3SCK3mT062458 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sat, 28 Apr 2018 19:20:03 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Abdullah Tariq References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> <5AE34754.6040905@grosbein.net> <5AE34CFA.7000207@grosbein.net> <5AE437C1.8010706@grosbein.net> <5AE44ADD.7020302@grosbein.net> Cc: freebsd-net@freebsd.org From: Eugene Grosbein Message-ID: <5AE466F2.7000500@grosbein.net> Date: Sat, 28 Apr 2018 19:20:02 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -0.0 SPF_PASS SPF: sender matches SPF record * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2018 12:20:15 -0000 28.04.2018 19:10, Abdullah Tariq wrote: > You are still ignoring requests to not top-post and I'm getting tired to fix it for you. > I may just stop responding. > Apologies again, last i thought i had replied to all after your first pointing out😷 You don't understand what top-posting is, right? That's when you place your reply on top of the message above the quote of earlier message you reply to. That makes it really hard to follow conversation when it lasts for multiple replies, so that is bad. Do not do that. Start your answer below the quote. From owner-freebsd-net@freebsd.org Sat Apr 28 12:28:26 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 891CEFADC6F for ; Sat, 28 Apr 2018 12:28:26 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (unknown [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E53F679350 for ; Sat, 28 Apr 2018 12:28:25 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w3SCSIA7031937 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 28 Apr 2018 14:28:18 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: ab.tariq90@gmail.com Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w3SCSARk062528 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sat, 28 Apr 2018 19:28:10 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Abdullah Tariq References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> <5AE34754.6040905@grosbein.net> <5AE34CFA.7000207@grosbein.net> <5AE437C1.8010706@grosbein.net> <5AE44ADD.7020302@grosbein.net> Cc: freebsd-net@freebsd.org From: Eugene Grosbein Message-ID: <5AE468D5.9030702@grosbein.net> Date: Sat, 28 Apr 2018 19:28:05 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -0.0 SPF_PASS SPF: sender matches SPF record * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2018 12:28:26 -0000 28.04.2018 19:10, Abdullah Tariq wrote: > However, we still have several ways to bridge tagged traffic > by means of creation multiple bridges (one per vlan) or using ng_vlan+ng_bridge to do the same. > > bridge1 will contain vlan 1 > bridge2 will containn vlan2 > > and bridge3 should have bridge1 and bridge2? No, its simplier: single bridge contains all interfaces corresponting to ports of single vlan. You can bridge plain igb* interfaces for untagged ports; or bridge interface igbX with interface vlanY when one port carries untagged frames of vlan and another ports carries tagged frames of the same vlan; or bridge interface vlans together when all of them carry tagged frames of the vlan. > If not, can you please give some instructions/guidelines for ng_vlan+ng_bridge? I still think you should not dive into building complex netgraph structures while the task can be solved simplier. But if you want to take that path, start by reading man ng_vlan, man ng_ether, man ng_bridge and man ng_eiface and try examples therein. From owner-freebsd-net@freebsd.org Sat Apr 28 13:16:16 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 506B9FAEC3D for ; Sat, 28 Apr 2018 13:16:16 +0000 (UTC) (envelope-from ab.tariq90@gmail.com) Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BFE2A822BA for ; Sat, 28 Apr 2018 13:16:15 +0000 (UTC) (envelope-from ab.tariq90@gmail.com) Received: by mail-io0-x229.google.com with SMTP id d11-v6so5522861iof.11 for ; Sat, 28 Apr 2018 06:16:15 -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=1lJEXsRxHc0Yw2GYxz+AcUPmWjEOIRtPqt03Ndp2Mmw=; b=q0uvD+Jobbk60P3TzRI70xfgx1KnegzF5m22KUDOz1DJP2mS66NbeZFFGY6nSMb3+L CIQgP3Z5O5zhYlo4KhVhT4LZfIFV4vo4qDQzFqoiWCrD/x7FG6glG125jvES9jUMc6mn fKDfM0UJANq5MSeMRVPojoscKLf+UFwYrU8gsq0dd8CbAl0WtxjOvvDvZ7X4VbGdJYFm 0JzXyEJ32lHb4fCM4TkTyM8Eca1VCdj925VSMsZ25xUi7+6SFi4M0TtIWv+fcc4MQxAh jjDetxaU+U03aFcAPRMJE8VN9rlFP+p51qinsNJMnyB2tt9Qs4zB9Fowr6bWS7pTuZ09 9HTw== 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=1lJEXsRxHc0Yw2GYxz+AcUPmWjEOIRtPqt03Ndp2Mmw=; b=UF2EXSIsI/ULBPBZ5/xaULmxagBx7JYpefM6x/fkBmRT7NKQlhdvazK3R+vjcyMsvP a3K0tGp8OyPAJQPJ1AEXLMd6wevjAt0ZPpKeaNu37reAcIhxj+/8rs954m46blGhjmbB NBiAw4TRt1/SMRlw/x0x7apuWq8KeEiHSak7UXyQsv7AyAPLl5IXtmtX75J7a4YFqC0M WAFNGZVYl2D2lx9kWk9v3npyVAHUOgTVgAhUoGjhn3Z4sERDuY3INsYdeMUT+8AwQRSw mlGee5ni3lal9SmYqXdSdtBxWu/xWvOeusPFPVd5GKCY/NIKRCxBEC9oTpRTXsdzvxfr w6qQ== X-Gm-Message-State: ALQs6tAK068GFDwWNCS3eO/O+wE9iKZdTQ114VtWnZYBnoulak+F3lHR ighdbZ9GxujSeMnMI9OOVcCPh0tjl0jtx3vNavUiPUVS X-Google-Smtp-Source: AB8JxZqwEIO2MB4YrXIOl6ZJT2oSjYjuHYKF1xPTlxLcF86BfDgRQUzIku/bi9Bn6dTJBBQ13i7Z95EvVrA5BPGOjwM= X-Received: by 2002:a6b:ca82:: with SMTP id a124-v6mr6128918iog.104.1524921375179; Sat, 28 Apr 2018 06:16:15 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:4a93:0:0:0:0:0 with HTTP; Sat, 28 Apr 2018 06:16:14 -0700 (PDT) In-Reply-To: <5AE468D5.9030702@grosbein.net> References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> <5AE34754.6040905@grosbein.net> <5AE34CFA.7000207@grosbein.net> <5AE437C1.8010706@grosbein.net> <5AE44ADD.7020302@grosbein.net> <5AE468D5.9030702@grosbein.net> From: Abdullah Tariq Date: Sat, 28 Apr 2018 18:16:14 +0500 Message-ID: Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Eugene Grosbein Cc: freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2018 13:16:16 -0000 > > No, its simplier: single bridge contains all interfaces corresponting to > ports of single vlan. > You can bridge plain igb* interfaces for untagged ports; or bridge > interface igbX with interface vlanY > when one port carries untagged frames of vlan and another ports carries > tagged frames of the same vlan; > or bridge interface vlans together when all of them carry tagged frames of > the vlan. > > Sorry but getting a little confused here. Lets say i have 2 interfaces igb0, igb1 and i want them to have tagged traffic. I create vlan1 tagged 10 on igb0 and vlan2 tagged 10 on igb1 Next i create bridge0, assign vlan1 and vlan2 (no IPs on either the bridge, physical interface on VLANs)? PCs connected with igb0 and igb1 have similar IP config (e.g 192.168.10.1 and 192.168.10.2) Am i correct? On Sat, Apr 28, 2018 at 5:28 PM, Eugene Grosbein wrote: > 28.04.2018 19:10, Abdullah Tariq wrote: > > > However, we still have several ways to bridge tagged traffic > > by means of creation multiple bridges (one per vlan) or using > ng_vlan+ng_bridge to do the same. > > > > bridge1 will contain vlan 1 > > bridge2 will containn vlan2 > > > > and bridge3 should have bridge1 and bridge2? > > No, its simplier: single bridge contains all interfaces corresponting to > ports of single vlan. > You can bridge plain igb* interfaces for untagged ports; or bridge > interface igbX with interface vlanY > when one port carries untagged frames of vlan and another ports carries > tagged frames of the same vlan; > or bridge interface vlans together when all of them carry tagged frames of > the vlan. > > > If not, can you please give some instructions/guidelines for > ng_vlan+ng_bridge? > > I still think you should not dive into building complex netgraph structures > while the task can be solved simplier. But if you want to take that path, > start by > reading man ng_vlan, man ng_ether, man ng_bridge and man ng_eiface and try > examples therein. > > From owner-freebsd-net@freebsd.org Sat Apr 28 14:51:39 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D2ECFFB140F for ; Sat, 28 Apr 2018 14:51:38 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-lf0-x235.google.com (mail-lf0-x235.google.com [IPv6:2a00:1450:4010:c07::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 2EBF06F58B for ; Sat, 28 Apr 2018 14:51:38 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mail-lf0-x235.google.com with SMTP id z130-v6so6702493lff.5 for ; Sat, 28 Apr 2018 07:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eF6yXmYXIBNcKL5FJCzp6Cyk+cjCyAQfwYFIgZC6kmM=; b=UkW8usXTTriJ/LAtWKqpo27Fio9P0djoDAefh/o8Hr3CaNg2wwHcJR3FRr+gLCf3Aq sjsfuUrv7P/nr+aXDbI1oY6VCJq/3UFUUpkKy9l5B/dW979oLbui6O+2r6LwJbKp1PEh u48dMG7LEthuWusYYPLXY0ReQPanhLVhgxCyH8+nDJfIltCcuUIgUBjyPwmLedge7mk0 Mn8FLUOO3hhNnZ9zi2tzMR8Cndyy9rxz0kAL7FNZmi254iv82+uGzRWz0WttpovAMQBx Gx8GTeNhEqI2FTOlBmhQ18RScNpwJCz1YsUOW3Mq/73JfnM30UnZxqts86bOdJFhPabc E4JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eF6yXmYXIBNcKL5FJCzp6Cyk+cjCyAQfwYFIgZC6kmM=; b=If68NnUJ2MbHoC2Xy5I+69aeZ6Ou7pmDamjFKUPwJ1RQhhOSGXuwiw10FNz36ZaKIc +EFdVDvPe+IPEHvKQSf6mJk8u1nu1OD6QFVrziIOvVfeTNLvPj6L3SXvh83m3uic8c/r LCGGAj8+i3hsZyUYrHLc2EAtdfJFvR9rcOvapAcF9MlME3UKlNjNyK5yuTqlPpKt6jUf THvpb05PNhCvfTLchMTo0RvaKkqUcuLcWU+4H7TKUv9LHvCXdwIATP+lQjHcwFearlo8 jr5Zee/yxYZ2BoVPmdvvg5bV494J7gu+KRTXTlyVhWdG3M4g7Ns+AppeXlDVPuMJpkWc HALQ== X-Gm-Message-State: ALQs6tDO1ka5ivBOJCP7+RYZOeDznf+mG9moC2vdStlcroWJfiml1Tex h4fkv+UhcocMJDuYZ2l6U+S8THY8ANUoIihVYUiukg== X-Google-Smtp-Source: AB8JxZoFNcWTMkSd7zsPXrSJ65Cbth9eddu8Iw44YbPuROOt2uAodeI43uYS37+9s4BfebkFnCRefcJIsum7VwDqfDU= X-Received: by 2002:a2e:320b:: with SMTP id y11-v6mr4211283ljy.119.1524927096249; Sat, 28 Apr 2018 07:51:36 -0700 (PDT) MIME-Version: 1.0 References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> <5AE34754.6040905@grosbein.net> <5AE34CFA.7000207@grosbein.net> <5AE437C1.8010706@grosbein.net> <5AE44ADD.7020302@grosbein.net> <5AE468D5.9030702@grosbein.net> In-Reply-To: From: Freddie Cash Date: Sat, 28 Apr 2018 14:51:25 +0000 Message-ID: Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Abdullah Tariq Cc: Eugene Grosbein , freebsd-net Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2018 14:51:39 -0000 On Sat, Apr 28, 2018, 6:17 AM Abdullah Tariq wrote: > > > > No, its simplier: single bridge contains all interfaces corresponting to > > ports of single vlan. > > You can bridge plain igb* interfaces for untagged ports; or bridge > > interface igbX with interface vlanY > > when one port carries untagged frames of vlan and another ports carries > > tagged frames of the same vlan; > > or bridge interface vlans together when all of them carry tagged frames > of > > the vlan. > > > > > Sorry but getting a little confused here. > Lets say i have 2 interfaces igb0, igb1 and i want them to have tagged > traffic. > I create vlan1 tagged 10 on igb0 > and vlan2 tagged 10 on igb1 > Next i create bridge0, assign vlan1 and vlan2 (no IPs on either the bridge, > physical interface on VLANs)? PCs connected with igb0 and igb1 have > similar IP config (e.g 192.168.10.1 and 192.168.10.2) > Am i correct? > vlan tags are added by each system when the packets leave the NIC on that system. vlan tags are checked when a packet enters a NIC, and only packets where the tag matches that one set on the NIC are allowed. Thus, what you are trying to do is not possible. But, the end-result that you want, is possible, just not the way you think. PC1 has 1.2.3.4 and sends untagged packets. PC1 is connected to igb0 on FreeBSD system. igb0 is part of bridge0. vlan5 interface is created on top of igb1 with vlan tag 5. vlan5 interface is also part of bridge0. igb1 is connected to a switch port configured with tagged vlan 5. Another switch port is configured with untagged vlan 5 (access port with PVID set to 5). PC2 has 1.2.3.5 and is plugged into that switch port. Now, PC1 and PC2 can communicate as they are both connected to vlan 5. Trace the traffic in both directions and you'll see why. PC1 sends packets with no tags --> igb0 accepts traffic with no tags --> bridge0 passes it to vlan5 --> packets get tagged with vlan 5 --> to switch port that accepts tagged traffic on vlan 5 --> out switch port that's part of vlan 5 --> tags are stripped from packet --> PC2 accepts traffic with no tags. Then reversed: PC2 serve packets with no tags --> switch port accepts traffic with no tags, adds vlan 5 to them --> tagged packets sent out other switch port --> vlan5 interface accepts tagged packets, strips the tag from then --> bridge0 passes untagged packets to igb0 --> untagged packets sent to PC1 --> PC1 accepts untagged packets. As mentioned multiple times, if you want to use tagged interfaces for everything, then you need to configure PC1 and PC2 to use tagged interfaces. If these are Windows stations, it's not impossible, just difficult and NIC driver-dependent. Cheers, Freddie Typos courtesy of my phone. > From owner-freebsd-net@freebsd.org Sat Apr 28 14:57:53 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 18A98FB171A for ; Sat, 28 Apr 2018 14:57:53 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-lf0-x22f.google.com (mail-lf0-x22f.google.com [IPv6:2a00:1450:4010:c07::22f]) (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 7E0D770D1A for ; Sat, 28 Apr 2018 14:57:52 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mail-lf0-x22f.google.com with SMTP id u21-v6so6699616lfu.9 for ; Sat, 28 Apr 2018 07:57:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5PGfxQHTjqBupoP4jbG//Du6gUSSEyAHkbjKVTtgFjQ=; b=q3mFmCPJFJQw0xv6osqy8Nq8D6NtMkuv9aULPDCODyYGWD7q2nhj1zUtG1rk7G+XWy eRyWnLNteTwxN+hL2RsELPEhHjHKH5vwGUJtx1T08hPNrumCitvibwS8e+T2PIBTNaXd oSwhN/+DYMjzP12TikUMqXJ8MpioAt1N3AzpxLpPZa/IswNiUJh2h3g7DPcDcbEHDJAF AwdhdYkKyb+wg8WHsiqDnMXcT5SZ+StJRZgX8p7nPbkvT18ZQVPH12oH8eH+QxWwCL+T 5rnLgqIC9Xyb+6ltGq8cB6ZgPzHCdgcVAoEjIKZONq0dHfCSLmRobqT/jBBNmErEXg8T S1Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5PGfxQHTjqBupoP4jbG//Du6gUSSEyAHkbjKVTtgFjQ=; b=ulb7rSmlUe7YxPN93YAAOzCGZT/fkNtvcsWsZnUPkZCCZmG1ud22QjMMXJrJSb0esf m8n7pFt5RNqDEVP3mzGQcthq7jHM2LRaWOYosWfnosMCN6EJ9a+AuJRMI64pLGp16phW Y3qsCJuPM9i+MRmBFlHtBtj/4vwJ1p2gs6/zY4XRHLCmQ7F2BolvewPYblMIOMVNmcqe v7b69R0Zfc2+ygX+WqijumiFWdtW34cMD9CcVafBET2vI290UTgY5hpQoYw1k35svPI+ Kf2zfKei+utRWphZ+Lts4llfG5JJcV3ASYDy79H7S+rf0jvDLUwYu1z3/ZaX9x3UI+mk xJuA== X-Gm-Message-State: ALQs6tBYvZfqNwkWTcAE39sG/+3nz1L/SUp7sEBCfW1ySo5JUY5zffKi RyWuGwaZ6mMXR9QtjJ20Rer/w+Grw7iAawa8H1c= X-Google-Smtp-Source: AB8JxZqX3Ei7kVtdam+MCGDVyYMRWA5uHkaAoR3oDnm6Ad6ovlspseZTZyNHlnADcCDZkxQZxnb36IJVZQPFwt0yxpc= X-Received: by 2002:a2e:88d7:: with SMTP id a23-v6mr4390596ljk.117.1524927471064; Sat, 28 Apr 2018 07:57:51 -0700 (PDT) MIME-Version: 1.0 References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> <5AE34754.6040905@grosbein.net> <5AE34CFA.7000207@grosbein.net> <5AE437C1.8010706@grosbein.net> <5AE44ADD.7020302@grosbein.net> <5AE468D5.9030702@grosbein.net> In-Reply-To: From: Freddie Cash Date: Sat, 28 Apr 2018 14:57:40 +0000 Message-ID: Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Abdullah Tariq Cc: Eugene Grosbein , freebsd-net Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2018 14:57:53 -0000 If you want to think of it in switch terms, FreeBSD supports access ports (untagged vlan) and trunk ports (tagged vlans). But there's no support for hybrid ports (tagged vlans with a PVID on the port that adds tags to untagged traffic). What you are trying to do is create a hybrid port with a vlan tag of 5 and a PVID of 5, such that untagged traffic from PC1 is allowed into vlan5 interface. Not going to happen. Cheers, Freddie Typos courtesy of my phone. > From owner-freebsd-net@freebsd.org Sat Apr 28 18:26:53 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 844A2FB635B for ; Sat, 28 Apr 2018 18:26:53 +0000 (UTC) (envelope-from ab.tariq90@gmail.com) Received: from mail-it0-x229.google.com (mail-it0-x229.google.com [IPv6:2607:f8b0:4001:c0b::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1EC697DE74 for ; Sat, 28 Apr 2018 18:26:53 +0000 (UTC) (envelope-from ab.tariq90@gmail.com) Received: by mail-it0-x229.google.com with SMTP id j186-v6so5470111ita.5 for ; Sat, 28 Apr 2018 11:26:53 -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=nboKFcsmOA+li+QYEENODJEC/NrP3aepNqs18UtSSvA=; b=gger6iVfXDi+SwovBA7TRTJtNIs4ZU/4TXLzUb66+nwus1ArfIv4abbnMi/avzNPWZ vT+k6TTKg4U1NbVT0DT6YVuI6ZDFfiqOH9qpY9xe9vkoRtoP+mkhErfnYz+A3GzNAhHD pUwTgP2y4ux3EmpELppZT9fPcMHy4MqKCwced98m4zA4C0BmpC83L5HKM+kv3WikYqBF OT1BvoHWpRTFytYnflpNEdr1GQmIdQ+ZWrvpLItsdm+DXv0VeqfvFkBYohgUhq694+2H k1Y5ijDeSjyFYgWEg6ryzofmrOKmlodp+/yT0veoH8t9CrrOo6RjPsts8WmlWSYZE3Gv nWvw== 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=nboKFcsmOA+li+QYEENODJEC/NrP3aepNqs18UtSSvA=; b=FguDNBR36X50bhnjZKi8mK9DvM9IZi50oI2y9UQ8SKSI4GuzZQf8pZv2Lq3beM1X/s ZR7y0w729OgumFJf8mGODk1pEvovpoht3/GUalWwlvbNVzBXcQ5lK268Fz06EJSuoO78 CkAnVMxTirfQKplKp+H475OsTkXYXlOXpVu7+mRhpWSZ8hVkPfWEIsmNkyFjusBryOiN 38b1kaKf0n1LzjE0HZQCbAvIYe92t3xhrSl/35q5G+2N4/hHItDowxfl4y7QlMS9y3cd BN6rX7z9LOQpyiiggiZVBPFPpowDACF2s3X3mdyYXuGX04TqqywSGy/65wR7ehsV533W gjRA== X-Gm-Message-State: ALQs6tA6uXJlP8r68USP4L9U5+to2nCl7/rWkno3bUIJ7wQTyj55Yv3s /xZBuwCoppQrCKdOXjvFcjPKgfRznxgn2SEJT50= X-Google-Smtp-Source: AB8JxZoXwtbKHlaeNUyL+zHA7wn6vBo3haxBT0DbFnIfUieskERp2X/jgktGgJObrGMGVTJqtRGOPehRoYBKymtMibY= X-Received: by 2002:a24:a342:: with SMTP id p63-v6mr6455411ite.146.1524940012537; Sat, 28 Apr 2018 11:26:52 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:4a93:0:0:0:0:0 with HTTP; Sat, 28 Apr 2018 11:26:52 -0700 (PDT) In-Reply-To: References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> <5AE34754.6040905@grosbein.net> <5AE34CFA.7000207@grosbein.net> <5AE437C1.8010706@grosbein.net> <5AE44ADD.7020302@grosbein.net> <5AE468D5.9030702@grosbein.net> From: Abdullah Tariq Date: Sat, 28 Apr 2018 23:26:52 +0500 Message-ID: Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Freddie Cash Cc: Eugene Grosbein , freebsd-net Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2018 18:26:53 -0000 > > If you want to think of it in switch terms, FreeBSD supports access ports > (untagged vlan) and trunk ports (tagged vlans). But there's no support for > hybrid ports (tagged vlans with a PVID on the port that adds tags to > untagged traffic). > > What you are trying to do is create a hybrid port with a vlan tag of 5 and > a PVID of 5, such that untagged traffic from PC1 is allowed into vlan5 > interface. Not going to happen. > > Ok everything clear now, thank you. One last thing, is this not doable with netgraph either? On Sat, Apr 28, 2018 at 7:57 PM, Freddie Cash wrote: > If you want to think of it in switch terms, FreeBSD supports access ports > (untagged vlan) and trunk ports (tagged vlans). But there's no support for > hybrid ports (tagged vlans with a PVID on the port that adds tags to > untagged traffic). > > What you are trying to do is create a hybrid port with a vlan tag of 5 and > a PVID of 5, such that untagged traffic from PC1 is allowed into vlan5 > interface. Not going to happen. > > Cheers, > Freddie > > Typos courtesy of my phone. > >> From owner-freebsd-net@freebsd.org Sat Apr 28 19:50:41 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 15704FB81C5 for ; Sat, 28 Apr 2018 19:50:41 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (unknown [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3517B71C3F for ; Sat, 28 Apr 2018 19:50:39 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w3SJoUnR035698 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 28 Apr 2018 21:50:31 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: ab.tariq90@gmail.com Received: from [10.58.0.4] (dadv@[10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w3SJoQqJ065681 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sun, 29 Apr 2018 02:50:26 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Abdullah Tariq References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> <5AE34754.6040905@grosbein.net> <5AE34CFA.7000207@grosbein.net> <5AE437C1.8010706@grosbein.net> <5AE44ADD.7020302@grosbein.net> <5AE468D5.9030702@grosbein.net> Cc: freebsd-net@freebsd.org From: Eugene Grosbein Message-ID: <5AE4D082.2070107@grosbein.net> Date: Sun, 29 Apr 2018 02:50:26 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE, SPF_PASS,T_DATE_IN_FUTURE_96_Q autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -0.0 SPF_PASS SPF: sender matches SPF record * 0.0 T_DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: * date * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2018 19:50:41 -0000 28.04.2018 20:16, Abdullah Tariq wrote: > Sorry but getting a little confused here. > Lets say i have 2 interfaces igb0, igb1 and i want them to have tagged traffic. > I create vlan1 tagged 10 on igb0 > and vlan2 tagged 10 on igb1 > Next i create bridge0, assign vlan1 and vlan2 (no IPs on either the bridge, physical interface on VLANs)? PCs connected with igb0 and igb1 have similar IP config (e.g 192.168.10.1 and 192.168.10.2) > Am i correct? Yes. From owner-freebsd-net@freebsd.org Sat Apr 28 19:55:47 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 353B4FB840C for ; Sat, 28 Apr 2018 19:55:47 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (unknown [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4A29272010 for ; Sat, 28 Apr 2018 19:55:46 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w3SJtbHN035757 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 28 Apr 2018 21:55:38 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: fjwcash@gmail.com Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w3SJtUWi065720 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sun, 29 Apr 2018 02:55:30 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Freddie Cash , Abdullah Tariq References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> <5AE34754.6040905@grosbein.net> <5AE34CFA.7000207@grosbein.net> <5AE437C1.8010706@grosbein.net> <5AE44ADD.7020302@grosbein.net> <5AE468D5.9030702@grosbein.net> Cc: freebsd-net From: Eugene Grosbein Message-ID: <5AE4D1AC.3080702@grosbein.net> Date: Sun, 29 Apr 2018 02:55:24 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -0.0 SPF_PASS SPF: sender matches SPF record * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2018 19:55:47 -0000 28.04.2018 21:57, Freddie Cash wrote: > If you want to think of it in switch terms, FreeBSD supports access ports (untagged vlan) and trunk ports (tagged vlans). > But there's no support for hybrid ports (tagged vlans with a PVID on the port that adds tags to untagged traffic). Not entirely correct. As FreeBSD is not a switch, it by default does not have nor need PVID notion at. However, FreeBSD still can bridge incoming untagged frames with arbitrary interface vlan.