From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Wang Subject: Re: [RFC 0/7] PMD driver for AF_XDP Date: Thu, 1 Mar 2018 10:52:19 +0800 Message-ID: <4758d934-c338-e4a6-17fa-6ed90bb141ff@redhat.com> References: <20180227093306.23854-1-qi.z.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Cc: magnus.karlsson@intei.com, bjorn.topel@intel.com To: Qi Zhang , dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by dpdk.org (Postfix) with ESMTP id 8241B4CBD for ; Thu, 1 Mar 2018 03:52:27 +0100 (CET) In-Reply-To: <20180227093306.23854-1-qi.z.zhang@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 2018年02月27日 17:32, Qi Zhang wrote: > The RFC patches add a new PMD driver for AF_XDP which is a proposed > faster version of AF_PACKET interface in Linux, see below link for > detail AF_XDP introduction: > https://fosdem.org/2018/schedule/event/af_xdp/ > https://lwn.net/Articles/745934/ > > This patchset is base on v18.02. > It also require a linux kernel that have below AF_XDP RFC patches be > applied. > https://patchwork.ozlabs.org/patch/867961/ > https://patchwork.ozlabs.org/patch/867960/ > https://patchwork.ozlabs.org/patch/867938/ > https://patchwork.ozlabs.org/patch/867939/ > https://patchwork.ozlabs.org/patch/867940/ > https://patchwork.ozlabs.org/patch/867941/ > https://patchwork.ozlabs.org/patch/867942/ > https://patchwork.ozlabs.org/patch/867943/ > https://patchwork.ozlabs.org/patch/867944/ > https://patchwork.ozlabs.org/patch/867945/ > https://patchwork.ozlabs.org/patch/867946/ > https://patchwork.ozlabs.org/patch/867947/ > https://patchwork.ozlabs.org/patch/867948/ > https://patchwork.ozlabs.org/patch/867949/ > https://patchwork.ozlabs.org/patch/867950/ > https://patchwork.ozlabs.org/patch/867951/ > https://patchwork.ozlabs.org/patch/867952/ > https://patchwork.ozlabs.org/patch/867953/ > https://patchwork.ozlabs.org/patch/867954/ > https://patchwork.ozlabs.org/patch/867955/ > https://patchwork.ozlabs.org/patch/867956/ > https://patchwork.ozlabs.org/patch/867957/ > https://patchwork.ozlabs.org/patch/867958/ > https://patchwork.ozlabs.org/patch/867959/ > > There is no clean upstream target yet since kernel patch is still in > RFC stage, The purpose of the patchset is just for anyone that want to > eveluate af_xdp with DPDK application and get feedback for further > improvement. > > To try with the new PMD > 1. compile and install the kernel with above patches applied. > 2. configure $LINUX_HEADER_DIR (dir of "make headers_install") > and $TOOLS_DIR (dir at /tools) at driver/net/af_xdp/Makefile > before compile DPDK. > 3. make sure libelf and libbpf is installed. > > BTW, performance test shows our PMD can reach 94%~98% of the orignal benchmark > when share memory is enabled. Hi: Looks like zerocopy is not used in this series. Any plan to support that? If not, what's the advantage compared to vhost-net + tap + XDP_REDIRECT? Have you measured l2fwd performance in this case? I believe the number you refer here is rxdrop (XDP_DRV) which is 11.6Mpps. Thanks