From owner-freebsd-net@freebsd.org Sun Apr 9 07:20:25 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 BC9BBD35F70 for ; Sun, 9 Apr 2017 07:20:25 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: from mail-oi0-x233.google.com (mail-oi0-x233.google.com [IPv6:2607:f8b0:4003:c06::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 81C311B9 for ; Sun, 9 Apr 2017 07:20:25 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: by mail-oi0-x233.google.com with SMTP id g204so48251344oib.1 for ; Sun, 09 Apr 2017 00:20:25 -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=3nSknfcU1IIy98tQf0NOIiSfNkmIrCKRxmOPtSK/lnk=; b=Cqyjf9V+5VSLhqLqrPp02/jzWepcmDN/iolkdyPXKo6ED7ZqAANL37Rf9MTa39pPVe HewqimbOONj4+HJppMU7BGtELL9DvxTmSYQ47nnCR26JOQdc0lKmH+oIFqaU7c+zUxdU 8xO7ScHZc5bZ2MSe5MBrPZz60NaRew0pNgJNResrh1Ir+YRTlsYIg5ANL87iEoUnRIAL /adsT9wyyyG3n0IiaDPuyW4DlzSxqF+NoB3v1U1J5hOWP9AIbMsC+pzyjWRYeuEZ+eJP FNBPZrz2JTUlzPcniORlt3v8KBMXUwKHzHdCsEyNmjUl8M7Vchnb0MDKrLCQB0/N99Tm y8lw== 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=3nSknfcU1IIy98tQf0NOIiSfNkmIrCKRxmOPtSK/lnk=; b=SPpyt5ByE1HkUJebMOfySXn6Igtvi4H+nsAEVF+2caVFUcsV4SMsg1NGI1kAD8sBde d9d8tsmRcgz8BZ6UhU0N5gbxZTmFWI8thiQgn7/2gUUaqyEUIoFVXBTnATUZOvIlHcHo C7gTLIT3Axoi3ggvtaa48ogqd4BR3PX3CVNZ1X80LwYoIa3RK9NrtXUQNK7BkZfqgEdo i+sBxRl5bWWvxQo/OKlSR3aKS5NZictZmmShSTSFbLy0nLZILwjTdIWYLeQlBPhmclfv hv2vfY1zLqhMALajwjTk+uPyWwZUsQT3Dh+ls/hVPaSWYDqWOXBKkY33/P69HF7agb7l eqtQ== X-Gm-Message-State: AFeK/H3T1G9sJKzukfNLnI22HVbklC9/Efo0gNlOYkyrTe32T/kXw7G21MzuPSYv+Qsv+GQdc0qaPinlWcmNIQ== X-Received: by 10.157.6.228 with SMTP id 91mr19563681otx.61.1491722424289; Sun, 09 Apr 2017 00:20:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.1.134 with HTTP; Sun, 9 Apr 2017 00:20:23 -0700 (PDT) In-Reply-To: References: From: Vincenzo Maffione Date: Sun, 9 Apr 2017 09:20:23 +0200 Message-ID: Subject: Re: Netmap pipe zero-copy with NIC buffer? 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: Sun, 09 Apr 2017 07:20:25 -0000 Hi, Yes, when you nm_open("netmap:em3{2", ...), you're opening a netmap pipe in the same netmap memory area as the one used by nm_open("netmap:em3", ...). As a result, you can zero-copy packets from NIC rings to pipe rings. What do you mean by "KB mode"? Cheers, Vincenzo 2017-04-08 19:56 GMT+02:00 Paras Jha : > Hi all, > > Is it possible to have a netmap pipe share memory with a netmap port opened > in KB mode for zero-copy purposes? > > All the best > _______________________________________________ > 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" > -- Vincenzo Maffione