From owner-freebsd-net@freebsd.org Thu Jan 19 01:52:17 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1B790CB7550 for ; Thu, 19 Jan 2017 01:52:17 +0000 (UTC) (envelope-from dbelleisle@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id F1DBB144E for ; Thu, 19 Jan 2017 01:52:16 +0000 (UTC) (envelope-from dbelleisle@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id F13ABCB754F; Thu, 19 Jan 2017 01:52:16 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F0E29CB754E for ; Thu, 19 Jan 2017 01:52:16 +0000 (UTC) (envelope-from dbelleisle@gmail.com) Received: from mail-ua0-x22d.google.com (mail-ua0-x22d.google.com [IPv6:2607:f8b0:400c:c08::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 C1FCA144D for ; Thu, 19 Jan 2017 01:52:16 +0000 (UTC) (envelope-from dbelleisle@gmail.com) Received: by mail-ua0-x22d.google.com with SMTP id 35so23383187uak.1 for ; Wed, 18 Jan 2017 17:52:16 -0800 (PST) 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=RFxL4PJu7+ehL07vg9YD7dJeSnO3NGxLrWY7wW7nA6U=; b=DfBIudd6sVzDffmoxatkaTatdyfhBTBqHPrsneFiEeB64ukb5u0lDxGuE/QwbJwELZ bveItuZqFtZXuWN1lPTPG+fZQNO7gd6B0ntISYbUpaDItranoRdpaXxWFI+eBKMB+Hz0 fsWv56+0XJHd+wvZrmkVn/3jRKUZ1gtRYRF2nJHu4OaV5aKTN3T5oJWbPGQIfZwqPBbO /v6/OmTJCL1DVC/KhXDP4hnD1Grk6e6fqrG9c4C7TBUOdwgkm4Mc2d7lBob/HhwROKQZ 9VzxLLcZzJdImWSg0wZfl4xSReR4eX7fMG/hh/9PdiqQ45VhBsMSYGm7mCfcg//unJG/ 9Trw== 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=RFxL4PJu7+ehL07vg9YD7dJeSnO3NGxLrWY7wW7nA6U=; b=ZWoLOrIqT53i6NorhSxJgKXC3cckw3ftML9/pywRWvxjYa6x78n7YDwzQM0nhcPzGq DuCjdAbpBLpHETg6cL6imp4WACHox69d+o6Wi7A6XcZ6XMV5pda2FI2cf1mt3195cEaA Ck6fzblua4kC352UkpL7QdM2ZYH3Hu9M6mV6o5dbEGwYweL6leun736Cv5locpZGJXIT ZGArodDbg51e+d+6YXW4CPiBUQYIwtkPgoH3J4OOnfLeLeFQHAaZxEUzJ7WZMh0PMy+a IdVhrbDzfhMOxWJWfpfo0CW7PeZrUozIfkWyba+wjTrq5Zy7Ol2t/FVpxpIt8hFP3LIJ vl4w== X-Gm-Message-State: AIkVDXIEy/47pREkcA1x0Y804HlU8sxWEXKjggOstTw2SbEpip7Q5/pqhdNyt5tYBYviKNferRnQHgmUitYSIg== X-Received: by 10.176.81.51 with SMTP id e48mr3014860uaa.100.1484790735659; Wed, 18 Jan 2017 17:52:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.74.216 with HTTP; Wed, 18 Jan 2017 17:51:55 -0800 (PST) From: David Belle-Isle Date: Wed, 18 Jan 2017 20:51:55 -0500 Message-ID: Subject: Netmap TX with no impact to host To: net@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jan 2017 01:52:17 -0000 Hi, I'm trying to open a netmap descriptor to an interface to send packets. However, I don't want to prevent the host to send and receive data (transparent). I don't think this should be hard but I can't figure out how to do this. I tried to run the bridge example in the FreeBSD distribution but even that I can't get to run without stopping the host's networking completely. I tried running ./bridge em0 em0 which, if I understand correctly should open the NIC and host rings and pass the traffic through. As soon as I start it all the networking stops. I tried testing in a VMware VM and on bare-metal with em cards and got the same results with both. Can someone help me? Thanks, David