From owner-freebsd-net@freebsd.org Wed Apr 12 02:04:58 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 94B5CD39CAC for ; Wed, 12 Apr 2017 02:04:58 +0000 (UTC) (envelope-from dreadiscool@gmail.com) Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::22e]) (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 2A5679AD for ; Wed, 12 Apr 2017 02:04:58 +0000 (UTC) (envelope-from dreadiscool@gmail.com) Received: by mail-wm0-x22e.google.com with SMTP id u2so13147230wmu.0 for ; Tue, 11 Apr 2017 19:04:58 -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=TwPPiOo0rgXlkJhivGVhyVud6CYAcRJkdDpe0PCQzpo=; b=Pp8dha/R8nVn5nk1YoTCp+XJgAbKeEm4C/HVRIRqVO01gn3T+nLwAU27ys1NGgp4ql 4LR4TtPwEoQoqmsgZfJaRNWLBYOQYoNLCe7Xh05ZnI3q5B0jwYQS56x7qZQMPsIMrRxD ix4PpzeE1KNEuA8GgNLkyHSIfQacgW9N40VjMdlYke5zRvNkZRknooNl9OeiIfYtX+YG CfJ2vls81bSZ1ZiZEE7LVx8l6p462f3H4tCJIjVcwBua+2FSnMVbb1Tgp0kSohb0Dm+Y bLGb4vSRST9BCKSP4ylDUwAp7GE1RXpvyJ0ClaX22dVgbtrIWFQtXD7XrWslD7eyvF9U zGlA== 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=TwPPiOo0rgXlkJhivGVhyVud6CYAcRJkdDpe0PCQzpo=; b=nCX3LGiR5VVpEYIPZI3bl8EDJ00Pjz53WchE/XEOcaaSJp6e6fBGa/mzckWf3rrbeH HHjgCm0dNK3WRrLCQmWOhxmWVuKnO566ua5qldfyxAd3u9XVBs/9K9Db7XeOIFp8l0GL V/c1cy1207cLOjr2LYv80v5rrex14Z7WjjbFMRqlks+CZx7kTsViQQ95MafEi38Af6FK 9kjBQHQe1GhScsvkx9p/e+RUdwqIlRYnTUxTYJVkbqafPB2MLyKN/BnWnxoDeSP2+Ld7 3jrthuQpg8eQQeaYKP6NRJNRDzYHFOUVNuqpbdvAKhp/eeN2aqPxaFnsp0FwhhCESCFg WIew== X-Gm-Message-State: AN3rC/5kO8l8ehiTiJmpWUgyT3vBQUYPvTbXK8Ve6tmPKs2oWX5UC/BVNXhTNbDKFpVoBmZAHhpfVtpqWmuDBw== X-Received: by 10.28.184.73 with SMTP id i70mr426404wmf.104.1491962694954; Tue, 11 Apr 2017 19:04:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.165.68 with HTTP; Tue, 11 Apr 2017 19:04:54 -0700 (PDT) In-Reply-To: References: From: Paras Jha Date: Tue, 11 Apr 2017 22:04:54 -0400 Message-ID: Subject: Re: Netmap pipe zero-copy with NIC buffer? To: Vincenzo Maffione 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: Wed, 12 Apr 2017 02:04:58 -0000 Apologies, by KB I meant kernel bypass, since it is possible to open a netmap port without bypassing the kernel. I didn't know if this would affect it or not. On Sun, Apr 9, 2017 at 3:20 AM, Vincenzo Maffione wrote: > 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 >