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 EFB23A0096 for ; Mon, 8 Apr 2019 20:17:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CF85C2C54; Mon, 8 Apr 2019 20:17:06 +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 7B3B52BCE for ; Mon, 8 Apr 2019 20:17:05 +0200 (CEST) Received: by mail-oi1-f194.google.com with SMTP id n187so11280446oih.6 for ; Mon, 08 Apr 2019 11:17:05 -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=wzNZ4VKuA4lydvcguRRosOvP5wZmumwq/aYCuPfSqm0=; b=U/a/myKBOWDdLO5NjJ7kU4YecLSTI+RvthTbRwvCHA5pdo1b+ZQsLFJnBkH7In1B9c P4I0qnD9Qlh2Tzx2tIhF1mW364D+/hIPpywBEox7NSIzaz+DWr574VfJ/4rJln1hHJBp F7NuvYD2VslgKw7olvPHH1sSTjU3gQ4W6deGbGvJQMWfnuNdVoH+//EEqIZBUJV0FaNf 6BTBf86eFypancH3ANMnTPEgD/tZRl0JTC1UGVi+uVsl2Ev5ctFjSMduVKRQbx9QwxZO IO8TqWoosk4kaBljCUukjZIK5tNnswBl/2UVAJlHpBzNqTUHl/2h8minIgvZPzJ85SWz oZAg== 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=wzNZ4VKuA4lydvcguRRosOvP5wZmumwq/aYCuPfSqm0=; b=T9L2vItc3YJSk+mEg9GaECvN2morM6BiNcvzvfAmd0PoJknXH96ZeR5D3jf7pIiGeZ sR9o8DYZ4M/jLHoKjEHJup9qahokG3KAxgyzRcqqqLlIQpEg2KHHVhp9VfLeeiJRty62 o5RB0vTG4LgKQbQIqTL9LTa6dXg+KjQNwp9AdAjMr/3DWPrXK2NiaZKtnQr51tATWYhw F6g/+T0WnUNS/zQjOlxyAsW3uTblVsXAM8eNyosDl4kaKjDAyBteISeeBEoGIQanw+Qo /5zXCwsFK9NOYaV/TQTis4iY4KM+FebVBAL8kQeySVbA5AlYCjcnWmi2eM5A3A2v/VN6 TLsQ== X-Gm-Message-State: APjAAAW5PgAr9819MQLUV2YetZ35NF563q0jP9f1f8tMT5h56I9YGTMW xUmoOZCmgXAXTX+D0FzjoiYT5Wwccb1J5O4fofSDNUdi X-Google-Smtp-Source: APXvYqwBpHPbCLeQD9aJ+qr44p+B37IY2FYm93V0EiuK0HTLfNzESJYWNJAXpnteIIPZ9aWGh4vgO+uSoi1Z12ZjsPo= X-Received: by 2002:aca:bf83:: with SMTP id p125mr7733654oif.47.1554747424795; Mon, 08 Apr 2019 11:17:04 -0700 (PDT) MIME-Version: 1.0 References: <20190408080903.7669aa11@shemminger-XPS-13-9360> In-Reply-To: <20190408080903.7669aa11@shemminger-XPS-13-9360> From: Avi Cohen Date: Mon, 8 Apr 2019 21:16:53 +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" Stephen I did not understand. Is this eBPF dpdk feature can run in the kernel or 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 Hemming= er =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 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. >