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.