Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97C15C4727C for ; Wed, 30 Sep 2020 15:20:26 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 05E5A2071E for ; Wed, 30 Sep 2020 15:20:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 05E5A2071E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DFA241DAF4; Wed, 30 Sep 2020 17:20:21 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 6C1701DAEE for ; Wed, 30 Sep 2020 17:20:20 +0200 (CEST) IronPort-SDR: Ty5Hiy30ZEK7CLjNSgXJeUK2CSvcupmPGVywFoZxc7C1nvYsM6dRe/QQmr0iIANARw48vkXN4x XK9TOlkapQnw== X-IronPort-AV: E=McAfee;i="6000,8403,9759"; a="150129638" X-IronPort-AV: E=Sophos;i="5.77,322,1596524400"; d="scan'208";a="150129638" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2020 08:20:18 -0700 IronPort-SDR: yYLCjRrTTT/pGdGb6YAnCXkRMJOLl9NEuMPOiT9owLix9sTlbD3YwlDrqOTT/gFdNjRS0cbMpW EHVsFbzxw5UA== X-IronPort-AV: E=Sophos;i="5.77,322,1596524400"; d="scan'208";a="312623619" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.229.39]) ([10.213.229.39]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2020 08:20:17 -0700 To: Ciara Loftus , dev@dpdk.org References: <20200925092021.3134-1-ciara.loftus@intel.com> From: Ferruh Yigit Message-ID: <6b9b6fe0-582e-cc86-c7c0-8f10bac9fbcb@intel.com> Date: Wed, 30 Sep 2020 16:20:14 +0100 MIME-Version: 1.0 In-Reply-To: <20200925092021.3134-1-ciara.loftus@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v3] net/af_xdp: custom XDP program loading X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list 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 9/25/2020 10:20 AM, Ciara Loftus wrote: > The new 'xdp_prog=' vdev arg allows the user to specify the path to > a custom XDP program to be set on the device, instead of the default libbpf > one. The program must have an XSK_MAP of name 'xsks_map' which will allow > for the redirection of some packets to userspace and thus the PMD, using > some criteria defined in the program. This can be useful for filtering > purposes, for example if we only want a subset of packets to reach > userspace or to drop or process a subset of packets in the kernel. > > Note: a netdev may only load one program. > > Signed-off-by: Ciara Loftus > Tested-by: Xuekun Hu Applied to dpdk-next-net/main, thanks.