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 79ADAA0096 for ; Mon, 8 Apr 2019 20:31:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 64F863572; Mon, 8 Apr 2019 20:31:44 +0200 (CEST) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id 3223D2BCE for ; Mon, 8 Apr 2019 20:31:43 +0200 (CEST) Received: by mail-pf1-f193.google.com with SMTP id e24so8095184pfi.12 for ; Mon, 08 Apr 2019 11:31:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=D9bKt9/YOlQ4sIwNFkPu2oi9qJwXKc55kV0WCXIF1TA=; b=h61A6Fm6McvcQO6pBwUDVZk4RnWwk6+yUVdC+lTtB22M/cKYaHPKPC50TetRtByFrH Ci63vrS9SViTlhu0vO8m1NXyZNFFD6XCETTlzUjtTrZ1zedD8A5RO9S5XhxTpJcIvvpr VpITL19ZUC67NJsqnmqfg50Qo5IaIDrBRKLu5bTBXvVuUeQSwGw1oTfoIX/L69cztWDb W1sj3Z8G+uK0wQ9tV9Z1oI7To9p5j2MFKBLi2rzBOA7C9hOk/GxGyGmK0ED+PLefRAME OGZc8WWA3avwlvLJUTCYYniGZHDGISTynoFppzSbYWxF7fgD3OmesFAsH216oWMjYzFY qNHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=D9bKt9/YOlQ4sIwNFkPu2oi9qJwXKc55kV0WCXIF1TA=; b=a253XyfyFeWkTzxP8TfibNgvgvOrVt5Vjp0+52RshDy6dXKRn9+fgdsRW7nTNgHrEW yP8hrO2xaVbJQCkw4KPhrt9ilS8EOyz4bF/iTns3zoPxh18VaagXJHdDvj8lTMM0Qz7R mR1qGrr88k++FCEliT+lr4PL2IX4wyYGxVpJe9VDyBXdLvNn5JYGoOq3IpkhYfLKBE3W 9nPQW2VvVR83hFBLntOt9XaJGUx8uRFR4a09pKc2KojhiO88PtTJf3/mcnx0XVXOCYYB 0yh9zbLTwWSBF6jx+5RZs2Afl5r24J7QMS7PPOgGEauxwEWB49vwsnyJ7nansygvtHvk 1TeA== X-Gm-Message-State: APjAAAVMLPMtxCpChwiATYpY0l084yhQFsSd70peAG+7pFqZlbVBij+g gcL+UPtcXFUzMHltRIF0Tk95EmDP+kYPDw== X-Google-Smtp-Source: APXvYqxLL+wmL0R8vGU6To2iV6ZfOfn4M3AKM2jH4FfMcmyi8bGjisAPIoDgXsgaMByEe7wn/hgvRA== X-Received: by 2002:a63:f707:: with SMTP id x7mr30209452pgh.343.1554748302256; Mon, 08 Apr 2019 11:31:42 -0700 (PDT) Received: from shemminger-XPS-13-9360 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id l1sm36282313pgo.13.2019.04.08.11.31.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 08 Apr 2019 11:31:42 -0700 (PDT) Date: Mon, 8 Apr 2019 11:31:38 -0700 From: Stephen Hemminger To: Avi Cohen Cc: users@dpdk.org Message-ID: <20190408113138.23c5d334@shemminger-XPS-13-9360> In-Reply-To: References: <20190408080903.7669aa11@shemminger-XPS-13-9360> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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" 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 or > userspace ? > Regards avi >=20 > =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 Hemm= inger =E2=80=8F< > stephen@networkplumber.org>: =20 >=20 > > On Mon, 8 Apr 2019 17:25:55 +0300 > > Avi Cohen wrote: > > =20 > > > Hi All, > > > can someone refer to the flow of a packet that is processed in eBPF > > > program in the kernel . and then forwarded to DPDK-app in user space. > > > 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 =20 > > > > > > Unlike Linux which has a predetermined set of steps in processing packe= ts. > > 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. > > =20 DPDK is all in userspace. The eBPF library is just another facility like LPM lookup, hash library and ACL.