From owner-freebsd-net@freebsd.org Tue Apr 18 07:33:27 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 D8871D43C4B for ; Tue, 18 Apr 2017 07:33:27 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: from mail-oi0-x229.google.com (mail-oi0-x229.google.com [IPv6:2607:f8b0:4003: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 9D174112F for ; Tue, 18 Apr 2017 07:33:27 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: by mail-oi0-x229.google.com with SMTP id r203so167146823oib.3 for ; Tue, 18 Apr 2017 00:33:27 -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=96fJQ3gJBRrAFWg8Uxgx17AY1vsLou3n0Ap8np1opIc=; b=KgG2Ak2Vk+n75jYdavZKOHVkds+tZDYgRwLCtGFG8auvKV9IFOi5qn/7pMHDad6CWR Zs4wEBaZdC9YxTSl0Sri07CjOttlhIqqteTEj91vOwf/aR9AoZ5B21aFuLZUIJppV7Aq 72HkLHk3ZQHpdvfovtnLEJQCg06s5i0hXLzE34ThDlbZPSNdtz1iIJYWIuOCdoEdYGKp XLFIOoDlzc7Ht/ExOR9Wfdnp7O7D39wXtbgGWfZUtllTXceRAZ3vQxWJ2si3bZ3zkzPY A9pVBp+CYc64+EOtcMDi08cVcnpBMm56h78dh11BYaBYB+sUpuJmqUJZtSdpYulRnHng 7KCw== 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=96fJQ3gJBRrAFWg8Uxgx17AY1vsLou3n0Ap8np1opIc=; b=EIIXlhnRLVLTRStdwZn9fnK2u0k1y8DV9imAlWZL7sZL5jnKMMXtarWpcHNZItGPsy aS0lXA3aCumoCAC/I7bOpIubMbQy4PxzR2rrdCkkMa2ACTbaonxGwn12lwrc3fb6l5Xe fUodbcBdsKapFw2re0AWayEq2S50reiD7Orr7u8K+XWy3/iJjsLDtrtF6hhBPAs4wG27 F7MTT8cXjTlJUJdhkFMCcl8rQLY++qSDKgwO/t6MwAwLyDI2Ri6hzg66t2XCchGmNAdg A32zpDQH/8AYgXdV5MI0BDwA8D666TRONW2o+tYID6SKRUXBTmgPlVBdh/79a0RHwfDx M2ow== X-Gm-Message-State: AN3rC/4nbVHMtLna30D7/IRtO6E7v+hiAUluuM6Nw6YSFkI1Q16+oTFb XXVTnl2SiSsQjrMpvR+9ZHVwDX2bjQ== X-Received: by 10.157.42.170 with SMTP id e39mr6367430otb.56.1492500806890; Tue, 18 Apr 2017 00:33:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.5.10 with HTTP; Tue, 18 Apr 2017 00:33:26 -0700 (PDT) Received: by 10.157.5.10 with HTTP; Tue, 18 Apr 2017 00:33:26 -0700 (PDT) In-Reply-To: References: From: Vincenzo Maffione Date: Tue, 18 Apr 2017 09:33:26 +0200 Message-ID: Subject: Re: Netmap zero-copy with multiple NICs To: Paras Jha Cc: FreeBSD Net Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2017 07:33:27 -0000 Hi, Yes, by default netmap packet buffers for all physical nics on your machine are allocated from the same memory area. This means that you can do zcopy with the usual swap of netmap slots. The bridge application is an example. It does zcopy if possible, otherwise it falls back to copying. Cheers, Vincenzo Il 18 apr 2017 1:49 AM, "Paras Jha" ha scritto: Is it still possible to share ring buffers across multiple physical network cards for zero-copy mode, or does the application need to take this into account and perform a one-copy? _______________________________________________ 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"