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 D9B3EA0096 for ; Mon, 8 Apr 2019 17:09:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 80CE72C24; Mon, 8 Apr 2019 17:09:10 +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 A7AA22BCE for ; Mon, 8 Apr 2019 17:09:08 +0200 (CEST) Received: by mail-pf1-f193.google.com with SMTP id i17so4667395pfo.6 for ; Mon, 08 Apr 2019 08:09:08 -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=xKwFBd/avKLP6TurUi4sL/AN+HYeqyPXeEYtaAjjP8k=; b=XqB16eU0geQwMJSER14I0GOdPUoZLUMnVnVcZQQUYgP2Jtgvs+5jRbSixwnsIsR7UC UOQRT8x2LfThOOPX5xgW03W+BO2BT402i9NemM7mPgAtJ5IjdW5WnljBb/fCWt11/Anu mBNaxiChlhzrkBn8gaoaXgapVqReS+Ty3Usn59McGDLz/bTVzj7PrJtGSciuWy1Yqy6p Nga19KsFOOWqfNqLKD0p/v1r224gbO/dl5/cuBN172TLvuy0HVMFveJVikhQacBRAi6Z zBcnyH+Eh7VGInZdQZwh486DWcloDK/yyD97rXltCGraNJTMEcA3z4uchKLoIEgVRxeb R3Pg== 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=xKwFBd/avKLP6TurUi4sL/AN+HYeqyPXeEYtaAjjP8k=; b=oFiWpkloBvs30E828xAYssJTbzZKM5SzwIT5moIX5FmaTI1PVwlM3vf5PoakFjCf3g ql6QVa9lEjOVoQUMQUufH215b574GhU3N1GTJQ/186KRJVeGdKDKgStGMXcCz5j3KdTn 2H1XBHNOxeUNWihvSjBewvTipE8zuvO5mxe/R29I6kJ0hGlfyp33bguHfs1QbxGrC63D 3IK3j96O8/YHu8JitgRbIzLZHZ9jk0/3xIu5FQyusSVsTO54YN/m5MWMiZbYipBOCJMM Nrl9Olj6zRIJ28wroHIxl5yuTp4GTlcGrbETDaJ0kN/EFyy2Q6g/rQMv+0FIvXIVNvlr aPWw== X-Gm-Message-State: APjAAAVvrN9S9Wn4/6vMYJ+K9lBNqsKTfNPVyULHnpHlkjTe5lGVQyx6 z/PJ1E3JqhjqWkgyRaIK+15tdA== X-Google-Smtp-Source: APXvYqzc2oE/0C33y25RtXSU19QemijRkFxVEFyzOEge+SArup50+sk8NF1kynvElHe8jfnwrlwiTA== X-Received: by 2002:a63:1f61:: with SMTP id q33mr26856178pgm.325.1554736147593; Mon, 08 Apr 2019 08:09:07 -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 h4sm39684008pfo.119.2019.04.08.08.09.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 08 Apr 2019 08:09:07 -0700 (PDT) Date: Mon, 8 Apr 2019 08:09:03 -0700 From: Stephen Hemminger To: Avi Cohen Cc: users@dpdk.org Message-ID: <20190408080903.7669aa11@shemminger-XPS-13-9360> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 17:25:55 +0300 Avi Cohen wrote: > 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 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.