From owner-freebsd-hackers@freebsd.org Mon Nov 23 12:03:07 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DD4AD2E91F6 for ; Mon, 23 Nov 2020 12:03:07 +0000 (UTC) (envelope-from smtpfox-wxyvi@socialmediascheduling.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4Cfm4q4wGTz3mqb for ; Mon, 23 Nov 2020 12:03:07 +0000 (UTC) (envelope-from smtpfox-wxyvi@socialmediascheduling.com) Received: by mailman.nyi.freebsd.org (Postfix) id A62852E9593; Mon, 23 Nov 2020 12:03:07 +0000 (UTC) Delivered-To: hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A5B902E958F for ; Mon, 23 Nov 2020 12:03:07 +0000 (UTC) (envelope-from smtpfox-wxyvi@socialmediascheduling.com) Received: from host.trifacemedia.com (host.trifacemedia.com [67.225.166.148]) (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 4Cfm4n6FZcz3mYk for ; Mon, 23 Nov 2020 12:03:04 +0000 (UTC) (envelope-from smtpfox-wxyvi@socialmediascheduling.com) Received: from h5-152-205-160.host.redstation.co.uk ([5.152.205.160]:55381 helo=socialmediascheduling.com) by host.trifacemedia.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1khAYe-0004IL-Sv for hackers@FreeBSD.ORG; Mon, 23 Nov 2020 07:03:01 -0500 From: FreeBSD.ORG- Admin To: hackers@FreeBSD.ORG Subject: Recent Account Activity 11/23/2020 4:03:00 a.m. Date: 23 Nov 2020 04:03:00 -0800 Message-ID: <20201123040300.863BC964305DA867@FreeBSD.ORG> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.trifacemedia.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - socialmediascheduling.com X-Get-Message-Sender-Via: host.trifacemedia.com: authenticated_id: smtpfox-wxyvi@socialmediascheduling.com X-Authenticated-Sender: host.trifacemedia.com: smtpfox-wxyvi@socialmediascheduling.com X-Source: X-Source-Args: X-Source-Dir: X-Rspamd-Queue-Id: 4Cfm4n6FZcz3mYk X-Spamd-Bar: ++++++++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of smtpfox-wxyvi@socialmediascheduling.com has no SPF policy when checking 67.225.166.148) smtp.mailfrom=smtpfox-wxyvi@socialmediascheduling.com X-Spamd-Result: default: False [10.40 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GREYLIST(0.00)[pass,meta]; HAS_X_SOURCE(0.00)[]; TO_DN_NONE(0.00)[]; FORGED_SENDER(0.30)[hackers@FreeBSD.ORG,smtpfox-wxyvi@socialmediascheduling.com]; HAS_X_ANTIABUSE(0.00)[]; TO_EQ_FROM(0.00)[]; MIME_TRACE(0.00)[0:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[67.225.166.148:from]; PHISHING(1.49)[freebsd.org->firebasestorage.googleapis.com]; ASN(0.00)[asn:32244, ipnet:67.225.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[hackers@FreeBSD.ORG,smtpfox-wxyvi@socialmediascheduling.com]; HAS_X_AS(0.00)[smtpfox-wxyvi@socialmediascheduling.com]; MID_RHS_MATCH_FROM(0.00)[]; RSPAMD_URIBL(4.50)[firebasestorage.googleapis.com:url]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.97)[0.974]; R_DKIM_NA(0.00)[]; DMARC_NA(0.00)[FreeBSD.ORG]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[67.225.166.148:from:127.0.2.255]; NEURAL_SPAM_MEDIUM(1.00)[0.999]; NEURAL_SPAM_LONG(0.95)[0.945]; MIME_HTML_ONLY(0.20)[]; R_SPF_NA(0.00)[no SPF record]; HAS_X_GMSV(0.00)[smtpfox-wxyvi@socialmediascheduling.com]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[hackers] X-Spam: Yes MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2020 12:03:08 -0000 From owner-freebsd-hackers@freebsd.org Tue Nov 24 02:57:32 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EC45947585D; Tue, 24 Nov 2020 02:57:32 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: from mail-oo1-xc36.google.com (mail-oo1-xc36.google.com [IPv6:2607:f8b0:4864:20::c36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Cg7wq64Hrz3Nl4; Tue, 24 Nov 2020 02:57:31 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: by mail-oo1-xc36.google.com with SMTP id i30so2226527ooh.9; Mon, 23 Nov 2020 18:57:31 -0800 (PST) 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=WRXU77dkmi57J0rG1+wUZrz0LA4hqhm12oPa4o7IzPM=; b=IjcJwV2urbE1myPtBrAROcDlwFSpLv7lAlgrjVf15Bh7MSW7l+lnCk8juUbjOCH5s4 WeypV6wWQ9DUNYQNSS9O//6l6OYl9mkxy3WSQehHxz3CXwZndwyOJccgRAPY+X5wtb92 J45FwvwRVHqFcZa6iorBc9cUyDAN6esG/Fg+/B/LQOQTzoorux6TnHIQHx5lqSMh15IZ QgFx7uhifOsDfFHZv2wE9nj7UhrHza4cvbyNz40MW5+Qqk9B+aRWRKz4bXzx8zt1pmtE k+9QpVA7ILz5WSWfi2gh3BC7kXVMhThwjaH/y+bX3P67qjvbe4QXkE1Kt1oa2GBhge0O NVtg== 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=WRXU77dkmi57J0rG1+wUZrz0LA4hqhm12oPa4o7IzPM=; b=k2Ko+2QoxWqF8++erHAZC19XwoQn/g0vn9FDOirSde8fvKZUsWJ1B5KON3YnkfkQCc kWuN3cEwt7Ug10xwxgNo6sPM6recH+v7WzRNTejR6spbfmAGjp2mbi0dP8bpKFe1MbVf mCEXly05ygACNxCP0h+bUFU1jCg54LAsHM/IEcGMizOg03YgrX2JglUUBlkDw+HFbwty fn7skSDYtcO0UVZwyn7id1Z1ABJYID/oc5o4ZSUdkVh7MRIb4QIUj3HM2UiPV2aa+kFI 8Uy5BGG+AYFpEaQXB6EoD2JmBDi2RT442HUIuKiduCVrbx9sNqShAadGtRZXaXPTP2zm Q2gQ== X-Gm-Message-State: AOAM5339p+BAs3iWRaUfps9HyNCrzWs2xHeGNHQifmDSc2KqZDSniAXe WyoQTFmYbxo3RmYghOaBHFtafRah2AkhFdpWtWn9nwSa X-Google-Smtp-Source: ABdhPJzJefqHmzbSPYcL841Ux/jdCMnvE5ZxNc8W4v3NmD4X+cxvlfB/UpnyYmsUZS2/ZPNdI6Epx2TjrBQtjtnL/6I= X-Received: by 2002:a4a:9711:: with SMTP id u17mr1694821ooi.57.1606186650160; Mon, 23 Nov 2020 18:57:30 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Rajesh Kumar Date: Tue, 24 Nov 2020 08:27:19 +0530 Message-ID: Subject: Re: Netmap bridge not working with 10G Ethernet ports To: Vincenzo Maffione Cc: "freebsd-net@freebsd.org" , FreeBSD Hackers , stephan.dewt@yahoo.co.uk X-Rspamd-Queue-Id: 4Cg7wq64Hrz3Nl4 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=IjcJwV2u; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rajfbsd@gmail.com designates 2607:f8b0:4864:20::c36 as permitted sender) smtp.mailfrom=rajfbsd@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.999]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::c36:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::c36:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::c36:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-net,freebsd-hackers]; FREEMAIL_CC(0.00)[freebsd.org,yahoo.co.uk] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Nov 2020 02:57:33 -0000 Hi Vincenzo, Thanks for pointing this. On Sat, Nov 21, 2020 at 10:40 PM Vincenzo Maffione wrote: > # ifconfig ix0 promisc > # ifconfig ix1 promisc > > This is an additional requirement when using netmap bridge, because that > is not done automatically (differently from what happens with if_bridge(4)). > If promisc is not enabled, the NIC will drop any unicast packet that is > not directed to the NIC's address (e.g. the ARP reply in your case). > Broadcast packets will of course pass (e.g. the ARP request). This explains > the absence of IRQs and the head/tail pointers not being updated. > So no bugs AFAIK. > Setting the interfaces in promiscous mode makes things to work properly. I tried the same with AMD Ports and it's still not working. I believe this is something specific to if_axp driver. I will see what is going wrong with packet forwarding with AMD ports. Thanks for pointing this out. I figured it out the hard way, but it was actually also documented on the > github (https://github.com/luigirizzo/netmap#receiver-does-not-receive). > I will add it to the netmap bridge man page. > That would be helpful. Thanks. > Il giorno sab 21 nov 2020 alle ore 17:06 Vincenzo Maffione < > vmaffione@freebsd.org> ha scritto: > >> >> >> Il giorno ven 20 nov 2020 alle ore 14:31 Rajesh Kumar >> ha scritto: >> >>> Hi Vincenzo, >>> >>> On Fri, Nov 20, 2020 at 3:20 AM Vincenzo Maffione >>> wrote: >>> >>>> >>>> Ok, now it makes sense. Thanks for clarifying. I see that if_axp(4) >>>> uses iflib(4). This means that actually if_axp(4) has native netmap >>>> support, because iflib(4) has native netmap support. >>>> >>>> >>> It means that the driver has some modifications to allow netmap to >>>> directly program the NIC rings. These modifications are mostly the >>>> per-driver txsync and rxsyng routines. >>>> In case of iflib(4) drivers, these modifications are provided directly >>>> within the iflib(4) code, and therefore any driver using iflib will have >>>> native netmap support. >>>> >>> >>> Thanks for clarifying on the Native Netmap support. >>> >>> Ok, this makes sense, because also ix(4) uses iflib, and therefore you >>>> are basically hitting the same issue of if_axp(4) >>>> At this point I must think that there is still some issue with the >>>> interaction between iflib(4) and netmap(4). >>>> >>> >>> Ok. Let me know if any more debug info needed in this part. >>> >>> I see. This info may be useful. Have you tried to look at interrupts >>>> (e.g. `vmstat -i`), to see if "ix0" gets any RX interrupts (for the missing >>>> ARP replies)? >>>> >>> >>> It's interesting here. When I try with Intel NIC card. I see atleast 1 >>> interrupt raised. But not sure whether that is for ARP reply. Because, >>> when I try to dump the packet from "bridge"(modified) utility, I don't see >>> any ARP reply packet getting dumped. >>> >>> >>> *irq59: ix0:rxq0 1 0 (only 1 interrupt >>> on the opposite side)*irq67: ix0:aq 2 >>> 0 >>> >>> *irq68: ix1:rxq0 3 0 (you can see 3 >>> interrupts for 3 ARP requests from System 1)*irq76: ix1:aq >>> 2 0 >>> >>> The same experiment, when I try with AMD inbuilt ports, I don't see that >>> 1 interrupt also raised. >>> >>> irq81: ax0:dev_irq 16 0 >>> irq83: ax0 2541 4 >>> irq93: ax1:dev_irq 27 0 >>> irq95: ax1 2371 3 >>> *irq97: ax1:rxq0 3 0 (you can see 3 >>> interrupts for 3 ARP requests from System 1, but no interrupt is seen from >>> "ax0:rxq0" for ARP reply from System 2)* >>> >>> I will do some more testing to see whether this behavior is consistent >>> or intermittent. >>> >>> Also the igb(4) driver is using iflib(4). So the involved netmap code is >>>> the same as ix(4) and if_axp(4). >>>> This is something that I'm not able to understand right now. >>>> It does not look like something related to offloads. >>>> >>>> Next week I will try to see if I can reproduce your issue with em(4), >>>> and report back. That's still an Intel driver using iflib(4). >>>> >>> >>> The "igb(4)" driver, with which things are working now is related to >>> em(4) driver (may be for newer hardware version). Initially we faced >>> similar issue with igb(4) driver as well. After reverting the following >>> commits, things started to work. Thanks to Stephan Dewt (copied) for >>> pointing this. But it still fails with ix(4) driver and if_axp(4) driver. >>> >>> >>> https://github.com/freebsd/freebsd/commit/e12efc2c9e434075d0740e2e2e9e2fca2ad5f7cf >>> >>> Thanks for providing your inputs on this issue Vincenzo. Let me know >>> for any more details that you need. >>> >>> >> I was able to reproduce your issue on FreeBSD-CURRENT running within a >> QEMU VM, with two em(4) devices and the netmap bridge running between them. >> I see the ARP request packet received on em0 (with associated IRQ), and >> forwarded on em1. However, the ARP reply coming on em1 does not trigger an >> IRQ on em1, and indeed the NIC RX head/tail pointers are not incremented as >> they should (`sysctl -a | grep em.1 | grep queue_rx`) ... that is weird, >> and lets me think that the issue is more likely driver-related than >> netmap/iflib-related. >> In any case, would you mind filing the issue on the bugzilla, so that we >> can properly track this issue? >> >> Thanks, >> Vincenzo >> >> >>> Thanks, >>> Rajesh. >>> >> From owner-freebsd-hackers@freebsd.org Tue Nov 24 15:24:05 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F111A2E9088; Tue, 24 Nov 2020 15:24:05 +0000 (UTC) (envelope-from vmaffione@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CgSVF6PLZz4qt6; Tue, 24 Nov 2020 15:24:05 +0000 (UTC) (envelope-from vmaffione@freebsd.org) Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: vmaffione) by smtp.freebsd.org (Postfix) with ESMTPSA id BADEA2C3A2; Tue, 24 Nov 2020 15:24:05 +0000 (UTC) (envelope-from vmaffione@freebsd.org) Received: by mail-pg1-f182.google.com with SMTP id w4so17733737pgg.13; Tue, 24 Nov 2020 07:24:05 -0800 (PST) X-Gm-Message-State: AOAM530i4eTKD+7E1lgD8gu04toS2gKCbhfZ0cxa3T6SPe90YjvDQMYB 1NMM5ekDAikZbbOntU2GUl+DM6PCQCoHMD8qD0s= X-Google-Smtp-Source: ABdhPJwTppd1BntVpeEhMOFCPkbYmaWEU/cg1q8YKeKtQJvJrXsDJOrQEw5zwNVv6WK4UCfriJJKCr/6pEjOdTh4h3Y= X-Received: by 2002:a17:90a:c084:: with SMTP id o4mr5402621pjs.150.1606231444645; Tue, 24 Nov 2020 07:24:04 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Vincenzo Maffione Date: Tue, 24 Nov 2020 16:23:53 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Netmap bridge not working with 10G Ethernet ports To: Rajesh Kumar Cc: "freebsd-net@freebsd.org" , FreeBSD Hackers , stephan.dewt@yahoo.co.uk Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Nov 2020 15:24:06 -0000 Il giorno mar 24 nov 2020 alle ore 03:57 Rajesh Kumar ha scritto: > Hi Vincenzo, > > Thanks for pointing this. > > On Sat, Nov 21, 2020 at 10:40 PM Vincenzo Maffione > wrote: > >> # ifconfig ix0 promisc >> # ifconfig ix1 promisc >> >> This is an additional requirement when using netmap bridge, because that >> is not done automatically (differently from what happens with if_bridge(4)). >> If promisc is not enabled, the NIC will drop any unicast packet that is >> not directed to the NIC's address (e.g. the ARP reply in your case). >> Broadcast packets will of course pass (e.g. the ARP request). This explains >> the absence of IRQs and the head/tail pointers not being updated. >> So no bugs AFAIK. >> > > Setting the interfaces in promiscous mode makes things to work properly. > > I tried the same with AMD Ports and it's still not working. I believe > this is something specific to if_axp driver. I will see what is going wrong > with packet forwarding with AMD ports. Thanks for pointing this out. > Yeah, it's weird because axgbe also uses iflib(4). If the driver exposes NIC head/tail pointers (sysctl) it may be useful to check what happens there. It may be that the NIC is dropping these packets for some reason. > > I figured it out the hard way, but it was actually also documented on the >> github (https://github.com/luigirizzo/netmap#receiver-does-not-receive). >> I will add it to the netmap bridge man page. >> > > That would be helpful. Thanks. > Done in r367920. Cheers, Vincenzo > > >> Il giorno sab 21 nov 2020 alle ore 17:06 Vincenzo Maffione < >> vmaffione@freebsd.org> ha scritto: >> >>> >>> >>> Il giorno ven 20 nov 2020 alle ore 14:31 Rajesh Kumar >>> ha scritto: >>> >>>> Hi Vincenzo, >>>> >>>> On Fri, Nov 20, 2020 at 3:20 AM Vincenzo Maffione < >>>> vmaffione@freebsd.org> wrote: >>>> >>>>> >>>>> Ok, now it makes sense. Thanks for clarifying. I see that if_axp(4) >>>>> uses iflib(4). This means that actually if_axp(4) has native netmap >>>>> support, because iflib(4) has native netmap support. >>>>> >>>>> >>>> It means that the driver has some modifications to allow netmap to >>>>> directly program the NIC rings. These modifications are mostly the >>>>> per-driver txsync and rxsyng routines. >>>>> In case of iflib(4) drivers, these modifications are provided directly >>>>> within the iflib(4) code, and therefore any driver using iflib will have >>>>> native netmap support. >>>>> >>>> >>>> Thanks for clarifying on the Native Netmap support. >>>> >>>> Ok, this makes sense, because also ix(4) uses iflib, and therefore you >>>>> are basically hitting the same issue of if_axp(4) >>>>> At this point I must think that there is still some issue with the >>>>> interaction between iflib(4) and netmap(4). >>>>> >>>> >>>> Ok. Let me know if any more debug info needed in this part. >>>> >>>> I see. This info may be useful. Have you tried to look at interrupts >>>>> (e.g. `vmstat -i`), to see if "ix0" gets any RX interrupts (for the missing >>>>> ARP replies)? >>>>> >>>> >>>> It's interesting here. When I try with Intel NIC card. I see atleast 1 >>>> interrupt raised. But not sure whether that is for ARP reply. Because, >>>> when I try to dump the packet from "bridge"(modified) utility, I don't see >>>> any ARP reply packet getting dumped. >>>> >>>> >>>> *irq59: ix0:rxq0 1 0 (only 1 interrupt >>>> on the opposite side)*irq67: ix0:aq 2 >>>> 0 >>>> >>>> *irq68: ix1:rxq0 3 0 (you can see 3 >>>> interrupts for 3 ARP requests from System 1)*irq76: ix1:aq >>>> 2 0 >>>> >>>> The same experiment, when I try with AMD inbuilt ports, I don't see >>>> that 1 interrupt also raised. >>>> >>>> irq81: ax0:dev_irq 16 0 >>>> irq83: ax0 2541 4 >>>> irq93: ax1:dev_irq 27 0 >>>> irq95: ax1 2371 3 >>>> *irq97: ax1:rxq0 3 0 (you can see 3 >>>> interrupts for 3 ARP requests from System 1, but no interrupt is seen from >>>> "ax0:rxq0" for ARP reply from System 2)* >>>> >>>> I will do some more testing to see whether this behavior is consistent >>>> or intermittent. >>>> >>>> Also the igb(4) driver is using iflib(4). So the involved netmap code >>>>> is the same as ix(4) and if_axp(4). >>>>> This is something that I'm not able to understand right now. >>>>> It does not look like something related to offloads. >>>>> >>>>> Next week I will try to see if I can reproduce your issue with em(4), >>>>> and report back. That's still an Intel driver using iflib(4). >>>>> >>>> >>>> The "igb(4)" driver, with which things are working now is related to >>>> em(4) driver (may be for newer hardware version). Initially we faced >>>> similar issue with igb(4) driver as well. After reverting the following >>>> commits, things started to work. Thanks to Stephan Dewt (copied) for >>>> pointing this. But it still fails with ix(4) driver and if_axp(4) driver. >>>> >>>> >>>> https://github.com/freebsd/freebsd/commit/e12efc2c9e434075d0740e2e2e9e2fca2ad5f7cf >>>> >>>> Thanks for providing your inputs on this issue Vincenzo. Let me know >>>> for any more details that you need. >>>> >>>> >>> I was able to reproduce your issue on FreeBSD-CURRENT running within a >>> QEMU VM, with two em(4) devices and the netmap bridge running between them. >>> I see the ARP request packet received on em0 (with associated IRQ), and >>> forwarded on em1. However, the ARP reply coming on em1 does not trigger an >>> IRQ on em1, and indeed the NIC RX head/tail pointers are not incremented as >>> they should (`sysctl -a | grep em.1 | grep queue_rx`) ... that is weird, >>> and lets me think that the issue is more likely driver-related than >>> netmap/iflib-related. >>> In any case, would you mind filing the issue on the bugzilla, so that we >>> can properly track this issue? >>> >>> Thanks, >>> Vincenzo >>> >>> >>>> Thanks, >>>> Rajesh. >>>> >>> From owner-freebsd-hackers@freebsd.org Wed Nov 25 05:50:40 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ED03247729E for ; Wed, 25 Nov 2020 05:50:40 +0000 (UTC) (envelope-from empiricaledge@handcraftedmodelships.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4Cgqk846DBz4bjT for ; Wed, 25 Nov 2020 05:50:40 +0000 (UTC) (envelope-from empiricaledge@handcraftedmodelships.com) Received: by mailman.nyi.freebsd.org (Postfix) id 8D01847731F; Wed, 25 Nov 2020 05:50:40 +0000 (UTC) Delivered-To: hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8CCD247723E for ; Wed, 25 Nov 2020 05:50:40 +0000 (UTC) (envelope-from empiricaledge@handcraftedmodelships.com) Received: from host.handcraftedmodelships.com (host.handcraftedmodelships.com [50.28.17.232]) (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 4Cgqk76h62z4bZP for ; Wed, 25 Nov 2020 05:50:39 +0000 (UTC) (envelope-from empiricaledge@handcraftedmodelships.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=handcraftedmodelships.com; s=default; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=tCCXn5tdRJj0I8Q4xXpVFhUC+l+FDaShrUzX3nxDJ4k=; b=xIvtDEJhXL4r/J9MOnJVcJZNs 6C5fPLUmaT6ihNz/ABW2KqG5vjzxCI9GBGyVzXHFTHJ3O4rXjk1mdwbhKQ/K3KUxRHx9wytSN33OY fqWyL54E0K5VlKS1RYkweYqc7MnhpMauEqiBcC/pe8S0swSFB9x2YR9243ymo8ESVMCP70Mv3ZFTd H3OjvCVN9cXe+861bYzQM+JCSANHBQuLX7KlD2nCG/kUAc3iSuN9xt9RoEriuf4xBR6Mg2CQyKTNV oe0IQTckexynanSI7Futr295g5Y7cjVEK0ecoAqPXCG6CwjYrzMXsc3ycqauHCazjAlURf2tPUupk wfJ9VJcOQ==; Received: from h5-152-205-160.host.redstation.co.uk ([5.152.205.160]:55247 helo=handcraftedmodelships.com) by host.handcraftedmodelships.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1khWcj-00009P-IJ for hackers@FreeBSD.ORG; Tue, 24 Nov 2020 03:36:41 -0800 From: FreeBSD.ORG- Email Host Provider To: hackers@FreeBSD.ORG Subject: Account Statues Notification 11/24/2020 3:36:41 a.m. Date: 24 Nov 2020 03:36:41 -0800 Message-ID: <20201124033641.81D3757080C03E31@FreeBSD.ORG> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.handcraftedmodelships.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - handcraftedmodelships.com X-Get-Message-Sender-Via: host.handcraftedmodelships.com: authenticated_id: empiricaledge@handcraftedmodelships.com X-Authenticated-Sender: host.handcraftedmodelships.com: empiricaledge@handcraftedmodelships.com X-Source: X-Source-Args: X-Source-Dir: X-Rspamd-Queue-Id: 4Cgqk76h62z4bZP X-Spamd-Bar: +++++++++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=handcraftedmodelships.com header.s=default header.b=xIvtDEJh; dmarc=none; spf=pass (mx1.freebsd.org: domain of empiricaledge@handcraftedmodelships.com designates 50.28.17.232 as permitted sender) smtp.mailfrom=empiricaledge@handcraftedmodelships.com X-Spamd-Result: default: False [9.59 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GREYLIST(0.00)[pass,body]; R_SPF_ALLOW(0.00)[+ip4:50.28.17.232:c]; HAS_X_SOURCE(0.00)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[handcraftedmodelships.com:+]; FORGED_SENDER(0.30)[hackers@FreeBSD.ORG,empiricaledge@handcraftedmodelships.com]; HAS_X_ANTIABUSE(0.00)[]; TO_EQ_FROM(0.00)[]; MIME_TRACE(0.00)[0:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[50.28.17.232:from]; ASN(0.00)[asn:32244, ipnet:50.28.0.0/18, country:US]; MID_RHS_MATCH_FROM(0.00)[]; HAS_X_AS(0.00)[empiricaledge@handcraftedmodelships.com]; PHISHING(1.49)[freebsd.org->firebasestorage.googleapis.com]; ARC_NA(0.00)[]; RSPAMD_URIBL(4.50)[firebasestorage.googleapis.com:url]; R_DKIM_ALLOW(0.00)[handcraftedmodelships.com:s=default]; FROM_NEQ_ENVFROM(0.00)[hackers@FreeBSD.ORG,empiricaledge@handcraftedmodelships.com]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; DMARC_NA(0.00)[FreeBSD.ORG]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[50.28.17.232:from:127.0.2.255]; BAD_REP_POLICIES(0.10)[]; NEURAL_SPAM_LONG(1.00)[1.000]; MIME_HTML_ONLY(0.20)[]; HAS_X_GMSV(0.00)[empiricaledge@handcraftedmodelships.com]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[hackers] X-Spam: Yes MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Nov 2020 05:50:41 -0000 From owner-freebsd-hackers@freebsd.org Wed Nov 25 09:37:17 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 484D747C0EF for ; Wed, 25 Nov 2020 09:37:17 +0000 (UTC) (envelope-from joel.bertrand@systella.fr) Received: from rayleigh.systella.fr (newton-ipv6.systella.fr [IPv6:2001:7a8:a8ed:253::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.systella.fr", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Cgwlc1NY6z4mx1 for ; Wed, 25 Nov 2020 09:37:15 +0000 (UTC) (envelope-from joel.bertrand@systella.fr) Received: from [192.168.10.103] (hilbert.systella.fr [192.168.10.103]) (authenticated bits=0) by rayleigh.systella.fr (8.15.2/8.15.2/Debian-19) with ESMTPSA id 0AP9aq7M1427952 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 25 Nov 2020 10:36:55 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=systella.fr; s=mail; t=1606297015; bh=wNzrfBQ+XfWiOtdLT5rzQffWL+WC6YlSK2CBbZd6gEg=; h=Subject:To:References:From:Date:In-Reply-To:From; b=A2RgCPSGA9o4h49TVYt1fInWSfdaNh/jRZny2zOB8uwd2uCGimwxnVA5UCHLKiXTq beQdueXnCMdzF0zEXld7CsIao++/klfe3Dp6zVLetpOSIq8+widHzmVuvrhP12r3Br SztVehOkxRYg7oiYK8ZX4apB9DfWq+EK5lxOhm6nT6fY1Jt0q5AA4qb2mq+I4L8Jwp C6WBOBXG1rr+U2Ju844LwF3ET4jAu+t06KLv6mZ0bFBs8VrumkcMzMfVxYIFRHKL8X q+xtPLmSdzjb0yviuF03KemMb7VvWpFNkbOaM7E4dan1Nv9BC2rnMocmTGth9o7855 J8XaT3xNKyAmg== Subject: Re: Segfault on graphical console To: freebsd-hackers@freebsd.org References: <49d29b45-953b-a33a-66ce-e6da60a4e415@systella.fr> From: =?UTF-8?Q?BERTRAND_Jo=c3=abl?= Openpgp: preference=signencrypt Autocrypt: addr=joel.bertrand@systella.fr; prefer-encrypt=mutual; keydata= mQINBFphqV8BEAC+ye6YQBdlEn9p/mbZhiQLkZQjIbGL84M0XOd66AgWqJ3T2TiwEyiExQyM Of0VswmB1q6SaIyh0x4bzaRyKwJLWDJy+AMGLGT2cpmsrDgllUxiBv3xAoLpwR8yDuLs5+bT vPpu81Pm/nzO2NDl85+3WAQbW+bUDAUdBhkg7X07bjJePypRxoRh4LF/syalOjzPEFARFNBY VrXFCTS/F7ZwmUHLv2xWJpEyKHfsC4BSo4ZPjrKmPJBxBPxuR+KiSYG/TkjU6CzoFvdwRY33 GNrK+dUmt9/VnPC/l1rGWS3durgah4OEkxciesKiTvQBUzVfMY0dvzBQKJeNNMFLstnjq3NP qvo3g5DnhFYFSAjI7wzqLkcYO8qg01wrWYyY/NLfAY6CvK0VjlenlKu84ePQDu7zh9/DUzBs 75ZAP2vZv4o00B2A3ksbkXSIs9eSDDx19OS1EUkSqw1VtFRfupoMkK7I7zrGR+DBENl5oK09 SOYJw594XVAoPpZ5zVUlEBDpatBNICTTT17EHrVpEB222TVfChvoE0cwYGkS40nVRIhQ1Yo3 A8qeKb2EeeCtslgiNcb1ajeZOSGUSHnczWHTaX5jMB/evNxZpLJH1WX8PqZ/+7wVRYuZGZ/b r8V3wXjZVNzPSTONwq3w/VjizPcQqdwicoNtxvuB6hM1J1tLGQARAQABtCpCRVJUUkFORCBK b8OrbCA8am9lbC5iZXJ0cmFuZEBzeXN0ZWxsYS5mcj6JAlQEEwEKAD4WIQSrhgKgAkzAsSVl Vhc4B+jSUpDz5wUCWmGpXwIbIwUJCWYBgAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRA4 B+jSUpDz5xwED/462ki+I97keYMSDPVjzx9MmcE/pznOqv8b4IbFbWzaSCx5J3BByBVU1IyP LdDCdZgvc7vM5l8Gc6mqxeABbgdyxBGMwoXBBADXt9dcAKW3xl6URMLoor8DwgnuluCdQT+K 7VW6ron23x7wI9iscuXV2M6xG2G84o5kDgW2NrkKBIwfWqS/XATNrC8e9j71h29cv1RvKN2a 3XQMI6kvBRirb9zM8jWaP1K/QCLZpvhuiXCJwJvl+MGTuOUTxvp44MjVaM++Wfljc9NAVyD8 s3UxBTjhei1zIHiLUMANzeFLnW21UnoCLLoqzD558VC2Gyqk9I9kaZ/jgQqEu6drbJG+6LbY zbiYt1OhURCrMh7zXjPbBCF1rjtjhEZx2EmT2U7KWQvgcW75JBEGCRveTXQga8ytBTcNoEC8 e7ZjM0ob769ZQ1HmeWAOJy6xKEnv1A2P3erQ3xTZEHFVesoruhMAzrf2fdWJ9vGvndMt7sV/ G0NabDwlI+eIZ77vEUCdFiCZuE8vk0BglwXHVH5zjgJNVLNgNFSs3uTSf5zOIqLXyQTOd0px 5jNe2mePxdMuI9MuQWXE8Z7InUaU1WZ+95eTMonTs+DRUJzQ+XWYbqllGudx230T/Y6cYxSW stw5bAQl1aNhNCZjHutNUigb8row2cH2kCVJexv4LYUx8vdc2bkCDQRaYalfARAA000pOiAt CMcbNPczj/sFU5UZ6zaEOPj08nNv48UZAfo8ZiWejSp7YbaU4HW0VxcT2ZQvhsHor2wjqI5K Ii7gmGyjMA6NJPhHVoJw8+j64m38mRcOzlSaQEZV+Pp+TAX8PyucZvNPXHy40UQfDqCoYxAw A0bSWwcSwH+N/eEijrEOf7k1QRjEodjGTxaE50XOWXz/NMVx7l9ORcd5r2oq2DLjqnnQzl6k XxmxSV5cm+HDIojLmQz1qxq7r2GhC5hGuR5KXrO/p4bNiqCTw+rwm4bO6YjTfaH+eNRwzg6L OpW7ZNw0pfWf4wO/h+ozZTY5q9EbZSmZyVoSyPu2J1+mX3gF2ZLSzZ7+XgV4z6EIAcF1sjGE hsqA9yF4NVHGlrP9dkhZFoBVtkJgjSfdSWGXp40X+pUROeVuexD6zDadB5rCv05o9/EPDFu0 W7mJ+l8h3rGI0E5ObmR6+HyFGqalByGFxYbia+x51Kj6WbHNMuddkPk0YbHs53zS9VGnRcnh xTGdga2rMzO9ZycKo7DPrdZVi7bZWKM/WM0IL5m6FTPSJteJ886NP9oc8U6o2GxZ1cMeZwnu AprT77mISL0Z1CCcoSDZEnD+EmOcKxYnkxJuhMY2kdMd2x47I2HFxTa1ix6UQ7OY6i0VQ4gG WZ3tgiHYIHbeAyZXn0P4nM5ofgEAEQEAAYkCPAQYAQoAJhYhBKuGAqACTMCxJWVWFzgH6NJS kPPnBQJaYalfAhsMBQkJZgGAAAoJEDgH6NJSkPPn9mEP/2mEFZGT0AaecRRXfpfrVnxxIwK8 YK3mmaa8jqSLXzDgubTO6PWojVt/SCrvhCtEf5vxATPbeFz5Ho0foI/iGys9SQkYmsIn13m0 z9oY8LBIyrPFud56RrIqYBno3qR6N7SWBWtZeUw+gc6HYbMyk2L7//wz4DkneJYLLcTfMxb/ +Ok0tNmWp6YfuyRBt5yHU6VfW4tZxF5qzg+9niW3VbB6BEZbM+ya7qBZD8su4e1EfUjaKb2z Egyw09laSgBW4NzGBwlhX3zeDsNTiReqa78e1pv52Ur3dI5GH4psLw4rH7ghh/aA/eVDMcKn LPNeTNl+Sz/1PK+oVNxz6tGBVsTVbZpwbanv6+qQP3yPvX0MS1x5QQPp/SAsjJv6lpFkoUGK n2clMYH8pSefR7jp0UPCrMBeFv5bom8tNMTHrIQrpnWo7vXUmeJ7OP/lHUtbBB26882pYbpa 05D79xUkBMYX2BGvtM687+CZaWwA4u/Tl7cu3PpIavPWgmmvIBJOwsDKxNgopLkix8AGFbfs wPcE7d03t9tdauheHA8pssNQmy3scoThC3DQc4eIEBUU5M9uIW2HARl3OgJP9h9OePsgaT8g zTlN3q6QmDWQwRmxF6J7Z9dtIDmXr+014XtK7UCzxkBIFS5jPGzL8dSKDu5jIx8cboy9QUeH Tr6FXnLg Message-ID: <7fd42e72-3e70-b29b-dd7b-7f9f04f5b7d8@systella.fr> Date: Wed, 25 Nov 2020 10:36:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.5.1 MIME-Version: 1.0 In-Reply-To: <49d29b45-953b-a33a-66ce-e6da60a4e415@systella.fr> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.103.0 at rayleigh X-Virus-Status: Clean X-Rspamd-Queue-Id: 4Cgwlc1NY6z4mx1 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=systella.fr header.s=mail header.b=A2RgCPSG; dmarc=none; spf=pass (mx1.freebsd.org: domain of joel.bertrand@systella.fr designates 2001:7a8:a8ed:253::1 as permitted sender) smtp.mailfrom=joel.bertrand@systella.fr X-Spamd-Result: default: False [-2.79 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[systella.fr:s=mail]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2001:7a8:a8ed:253::1:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:7a8:a8ed:253::1/64]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2001:7a8:a8ed:253::1:from:127.0.2.255]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[systella.fr:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_NA(0.00)[systella.fr]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_MIXED_CHARSET(0.71)[subject]; ASN(0.00)[asn:13193, ipnet:2001:7a8::/32, country:FR]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-hackers] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Nov 2020 09:37:17 -0000 BERTRAND Joël a écrit : > Hello, > > For a long time, I have seen that some programs abort (for example vlc > or okular) with segfault when I try to launch them in a regular xterm. > But if I do 'ssh -Y localhost', the same program run as expected ! > > I don't find any explanation. I suppose this bug is X related. > My Xorg.0.log doesn't contain error and I use Intel graphic adapter > (i5-4th generaion). > > In dmesg, I have : > root@pythagore:/var/log # dmesg > vm_fault: pager read error, pid 6909 (vlc) > pid 6909 (vlc), uid 1001: exited on signal 11 > > Help will be welcome. > > Best regards, > > JB > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > Nobody ? I've just upgraded this workstation to 12.2 (FreeBSD 12.2-RELEASE r366954 GENERIC) without any difference. All applications linked against qt5 abort with segfault, but only if they are launched from console. Window manager is Windowmaker. Help will be welcome. Best regards, JKB From owner-freebsd-hackers@freebsd.org Wed Nov 25 13:18:51 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6D630469B7F; Wed, 25 Nov 2020 13:18:51 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ch1gH2MG1z3HMr; Wed, 25 Nov 2020 13:18:51 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: by mail-ot1-x32c.google.com with SMTP id 11so2156351oty.9; Wed, 25 Nov 2020 05:18:51 -0800 (PST) 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=GmJwdIG7YEjrinJQIFXjB3GI1CcUXXCOeTi972ga6P0=; b=Qagc/KKusK2GtLdc+E2YuNwnqbRVPwj8GlGaJ7NBiHo4t/JRkpGhLF7gtMj3ERonb6 OJins00tW4AvYBJxuyDFCU4jCRqsKzC9BNm0/itkmEXoxtgqlMzqiae09+rMrwm+45fx pjtipSXBqdPj/qO2jPDbeGzTdorHmFRkjyzKnsEV8OfM291pJyQ/nuC3jc8+0oT2gZNY 1DqlWz4mS6K+gHy0EVJRAAUqJgdl8WP25mN7xfaNId/0oh5sY0PO9yip43i5vMDKiZZX OaKu5XlXnEqxQ6TFi/MolTrlP06APhIhGfjnEX59Q5AEzDicrNVUXL+dXcEFiBsmTOQh d1Lw== 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=GmJwdIG7YEjrinJQIFXjB3GI1CcUXXCOeTi972ga6P0=; b=JGoFoRn6zTWfWNypqFNu0LfdWoMWHFHvUJVvtPSjkMbxG0pGZBE50rc8nVNT+kRfTZ id9pMyIz3rVsV1tMgjcMcyTkRUxf5mM7zEeUZv294SfdNTdSlBfg+uRC61H+N7hK1NC0 IfRb/iePLbQ4UR/ueFNeUCWoSHS/YFbHqutQKSE2QH2O6eBFVjP+DN4Zg91VTEUuZPEu mIv2LbOdYMrs64vYjvZME1VoJdkvL1+XeozDNpSQBqX9Ruwq+E1gGfI/mVwvlG1Iylpr scO8CvPMuTjy0+VgNxHPtNMDLzAVnRFPyuylGfwfdeA87ug+jVDHxCZ9QPL6Cfwoeqh7 SCLQ== X-Gm-Message-State: AOAM530VC0ycA8kplHSSJ5bYzmwc/e9zJ2qu5bnhzVYg/nfMlBT3FXH9 5zr0Q+/e6CswGykzsFE5KitS+pSz/HuctDm4CbVfIqdL X-Google-Smtp-Source: ABdhPJxn/BmL8d1aw1Y2KrHKuzIG9VCVhQXVAvYRNCZzoqFCLHjATO3c3p6COn0MjsV1KnyXeOAry3gL6e1ZDq3Edrs= X-Received: by 2002:a9d:76d7:: with SMTP id p23mr2812494otl.180.1606310328783; Wed, 25 Nov 2020 05:18:48 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Rajesh Kumar Date: Wed, 25 Nov 2020 18:48:37 +0530 Message-ID: Subject: Re: Netmap bridge not working with 10G Ethernet ports To: Vincenzo Maffione Cc: "freebsd-net@freebsd.org" , FreeBSD Hackers , stephan.dewt@yahoo.co.uk X-Rspamd-Queue-Id: 4Ch1gH2MG1z3HMr X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Nov 2020 13:18:51 -0000 Hi Vincenzo, On Tue, Nov 24, 2020 at 8:54 PM Vincenzo Maffione wrote: > > Yeah, it's weird because axgbe also uses iflib(4). If the driver exposes > NIC head/tail pointers (sysctl) it may be useful to check what happens > there. > It may be that the NIC is dropping these packets for some reason. > Looks like, "ifdi_promisc_set" routine of the driver is not getting triggered properly. Forcibly setting the promisc mode from driver is solving the packet drop issue. Now I see the ARP reply packet. axgbe has split header support, which causes trouble starting from ping packets due to incompatibility with Iflib/Netmap and associated utilities. I made some changes to the driver, Iflib and Netmap utilities and having the netmap bridge working with axgbe now. I am working on a clean fix for promisc mode setting and incompatibility issue. Will submit the changes for review once done. Thanks for your inputs and support. Done in r367920. > Thank you. Thanks, Rajesh. From owner-freebsd-hackers@freebsd.org Thu Nov 26 14:52:19 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DB4024AE401 for ; Thu, 26 Nov 2020 14:52:19 +0000 (UTC) (envelope-from hackers@FreeBSD.ORG) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4Chghg5f6Xz4Zyk for ; Thu, 26 Nov 2020 14:52:19 +0000 (UTC) (envelope-from hackers@FreeBSD.ORG) Received: by mailman.nyi.freebsd.org (Postfix) id BFC054AE330; Thu, 26 Nov 2020 14:52:19 +0000 (UTC) Delivered-To: hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BF81E4AE38B for ; Thu, 26 Nov 2020 14:52:19 +0000 (UTC) (envelope-from hackers@FreeBSD.ORG) Received: from server.gnmtc.com (server.gnmtc.com [50.116.78.54]) (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 4Chghg461mz4ZnK for ; Thu, 26 Nov 2020 14:52:19 +0000 (UTC) (envelope-from hackers@FreeBSD.ORG) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnmtc.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=lBzYG+BzNsvPoztFN+DWYKJOA1kE6oZzb9CYABVPbIM=; b=mVicdavKP+frap2c3q88B2kZXv HDOBuA7sJSB434KeRObg2cIasrPqqdzwbj+dZw0wxKBxexz5wJFO6WSItNOJLiP463ggEfzVbeHiq 8j/6beROsAAOmrZur4pu6zju2ok1scjvTCW2gQ3udfkB58CczSKtslWragLV9eeUzZQBwsITsyu6/ d2tdwLn3ZUC91put4S0fLVw4rB9QUohF5xDRwd/QA0zM8uY2SOiV5yWxWkZtulX4sjhNmXUIaP2Dx WDXJ1GYX2Vwb1Zo8oDIeTiaj9dYNfFIoNp4in5X5Xxp+ee5W0n7Lu2QZzeuqsTz9M5dOyN7nzfrom CVAjpycg==; Received: from h5-152-205-160.host.redstation.co.uk ([5.152.205.160]:60306 helo=frank-group.com) by server.gnmtc.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kiId8-0003MY-3W for hackers@FreeBSD.ORG; Thu, 26 Nov 2020 14:52:18 +0000 From: FreeBSD.ORG- Admin To: hackers@FreeBSD.ORG Subject: E-mail Report 11/26/2020 6:52:17 a.m. Date: 26 Nov 2020 06:52:17 -0800 Message-ID: <20201126065217.AFDEF479E99DF61B@FreeBSD.ORG> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server.gnmtc.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - FreeBSD.ORG X-Get-Message-Sender-Via: server.gnmtc.com: authenticated_id: h.alwaer@gnmtc.com X-Authenticated-Sender: server.gnmtc.com: h.alwaer@gnmtc.com X-Source: X-Source-Args: X-Source-Dir: X-Rspamd-Queue-Id: 4Chghg461mz4ZnK X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; ASN(0.00)[asn:46606, ipnet:50.116.76.0/22, country:US]; local_wl_from(0.00)[FreeBSD.ORG] MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Nov 2020 14:52:20 -0000