From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 114EFA0096 for ; Mon, 8 Apr 2019 20:37:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F41A74F98; Mon, 8 Apr 2019 20:37:34 +0200 (CEST) Received: from mail-oi1-f194.google.com (mail-oi1-f194.google.com [209.85.167.194]) by dpdk.org (Postfix) with ESMTP id 17A7C4F90 for ; Mon, 8 Apr 2019 20:37:34 +0200 (CEST) Received: by mail-oi1-f194.google.com with SMTP id n187so11336360oih.6 for ; Mon, 08 Apr 2019 11:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ves.io; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Da+aqV1E0H4jo04+NN5hsQWNmW+pMxo+gEGJR/ksPfk=; b=QyuxnAj4HgpYaC/PQXUh7qJ/GQeZT3FT8CyTlyIZRBjHVb6Kb1KWy+xBbhwmLd0/kU k/OEz6ss83lJGxxgSTHZF/hL6CeOjpmH8CSURov7E4mQGjojMlVImSiX6gwmAROZpm4+ Hj7oSPqz0CoUXYjIM6K1mGrgfDOUxnf7jriOStBISls2GreycVMIFHkhOmIHmO0kTGgx 1t8JC3ZOnGynlM0DrPEFrvtWmMQidWMh8dkCNf05/nJZhVZaiw6sEkyEOQMjrVzKf2xI SwoVSzuo3tyY7l3Ix9AuR721wqBtfMBxtt27gjnlkuUkfDVUa3C0mKPRbN4eHmWANIoS VWdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Da+aqV1E0H4jo04+NN5hsQWNmW+pMxo+gEGJR/ksPfk=; b=EL6SZH+2mnTGuGRY2ia588SoWgYGazEbB5ueWr3SVCmmy8/WcxvazZSUayHruwFRU0 oOJV0RkdIjqKK62T7NPxAZR665iFKGeyWPXLAeZ+N83w7O+vHJQEoX1D79KWUgwM3tY0 1W/A2G7C/PUVGQ8YdDEooO1kvvh8K+tnriFdYElk+3PwApYzA+HXkVSx6ltIi8QhNruY Uk5FVwib3LII6yoPk5tAKuOZMXsZCCaEY073AChCrh2/fT49nCUNfnLKGGhFr+n2Vvk8 x2s1tw1VjCUOSmSUcJeY0A5hAbmSlYuJ8+D7zRd15nWCXwqhpXutrayRmhVOoOYv+LSC gATw== X-Gm-Message-State: APjAAAUiFs9wXn0NU4KB9PH7rnOa67TczMpXn9utCVHJnVmzuxY/uBvh +dWRr/FUnjIHjVYe1EGHfBY5AIFpjv5I+mTGTJx1Kw== X-Google-Smtp-Source: APXvYqzOl8fMosQQ49SgdWlKQphttv5wczJ86Jz5XUM0+FP4j70m6+y0BwIRqGTD6IgIu+wt69gMv0a4gqeZJ9XSlfc= X-Received: by 2002:aca:4f56:: with SMTP id d83mr16124892oib.24.1554748653318; Mon, 08 Apr 2019 11:37:33 -0700 (PDT) MIME-Version: 1.0 References: <20190408080903.7669aa11@shemminger-XPS-13-9360> <20190408113138.23c5d334@shemminger-XPS-13-9360> In-Reply-To: <20190408113138.23c5d334@shemminger-XPS-13-9360> From: Avi Cohen Date: Mon, 8 Apr 2019 21:37:21 +0300 Message-ID: To: Stephen Hemminger Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] eBPF in DPDK X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" I know DPDK is in userspace. But i know there is also some talkings about AF_XDP , in which xdp program is running in kernel and then w zero copy can be fwd to dpdk app via the PMD AF_XDP =D7=91=D7=AA=D7=90=D7=A8=D7=99=D7=9A =D7=99=D7=95=D7=9D =D7=91=D7=B3, 8 =D7= =91=D7=90=D7=A4=D7=A8=D7=B3 2019, 21:31, =D7=9E=D7=90=D7=AA Stephen Hemming= er =E2=80=8F< stephen@networkplumber.org>: > On Mon, 8 Apr 2019 21:16:53 +0300 > Avi Cohen wrote: > > > Stephen > > I did not understand. Is this eBPF dpdk feature can run in the kernel o= r > > userspace ? > > Regards avi > > > > =D7=91=D7=AA=D7=90=D7=A8=D7=99=D7=9A =D7=99=D7=95=D7=9D =D7=91=D7=B3, 8= =D7=91=D7=90=D7=A4=D7=A8=D7=B3 2019, 18:09, =D7=9E=D7=90=D7=AA Stephen Hem= minger =E2=80=8F< > > stephen@networkplumber.org>: > > > > > On Mon, 8 Apr 2019 17:25:55 +0300 > > > Avi Cohen wrote: > > > > > > > Hi All, > > > > can someone refer to the flow of a packet that is processed in eBP= F > > > > program in the kernel . and then forwarded to DPDK-app in user spac= e. > > > > this was integrated into DPDK 18.05 but not documented. ( > > > > https://doc.dpdk.org/guides-18.05/prog_guide/bpf_lib.html) > > > > what is the PMD type for this flow ? new socket ? what is the > penalty ? > > > > i thought to do some traffic filtering there. > > > > pros/cons ? > > > > Best Regards > > > > Avi > > > > > > > > > Unlike Linux which has a predetermined set of steps in processing > packets. > > > DPDK is a raw toolkit where the processing is composed totally by the > > > network application. > > > > > > Therefore DPDK has a raw eBPF library, it is up to the application to > > > install it where > > > it wants in the packet processing. One example is done via rx and tx > > > callbacks > > > as shown in the rte_bpf_ethdev.h. > > > > > DPDK is all in userspace. The eBPF library is just another facility > like LPM lookup, hash library and ACL. >