From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4AF62A04B5; Wed, 30 Sep 2020 17:20:24 +0200 (CEST) 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.