From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A0851A00C3; Tue, 1 Feb 2022 11:12:29 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3391B40691; Tue, 1 Feb 2022 11:12:29 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 2581E40685 for ; Tue, 1 Feb 2022 11:12:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643710347; x=1675246347; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=AuSMbVimhO7e3yYWZzqkCs8GACKWZGKPMX1RTA12WSU=; b=HFzW0r+KItERXOdJxLHj+SZ8U1r0Sq1olv82MMTfXgO0WMvsyOLqe8U/ NcIhckfcE2Y2AIwBRBkMLs3X85wG7SzG/wedMVCG+I4Ho2n69WazvNnkq 8/T5G3vON6Q5x9CUjwI2czYXuHIcuIufvAHc2fYRIb8rOoxghQV7FETW0 PgW/54zMXT+UWTSe+VTt9qn/FGEOSNriF4yyuTqW/dxdYFtlBI/OgXv0e hX/euA7/+rMnSRG8U8ZgMD1JUdzaWKOthFEvpGqUQPhUASm0LyORcNySH UIRg5twbY0BL63A2rhyIudrsanxtTE8Zo+kl0a6fiJGSWzydrP7mzziyP A==; X-IronPort-AV: E=McAfee;i="6200,9189,10244"; a="247430928" X-IronPort-AV: E=Sophos;i="5.88,333,1635231600"; d="scan'208";a="247430928" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2022 02:11:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,333,1635231600"; d="scan'208";a="497295730" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga002.jf.intel.com with ESMTP; 01 Feb 2022 02:11:32 -0800 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 1 Feb 2022 02:11:31 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Tue, 1 Feb 2022 02:11:31 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.107) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Tue, 1 Feb 2022 02:11:31 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R+1XqsnC9BK470HqM7l+Y8B35JKoFkNak6pIBTYkR0DX78vQ4TLgJTlA/U+8gp3Dwdrtx6bciGYGSoJVDCqXB8PapwF5M2/jpMVUpZbkQPk2JqOOj8oH/tIEs0nyu+i9R1CyFtLesrgWalGqvhTfFnHgSoA+ea/LGfCWtap0lYgAadxqPVBx7k2mIGzzWEQmRm6vtWD7uZlWc3iJbbbd1PbeYxg48RPgSm5RNEGyKupEjmZrxIGMrxFDRGA74z24JonJZaev572aUKFBVhhnzenolvThhmbl0mi5n2sJoQhMnTAHi0Fcn/BZdIFrGdVPbnguS8qBD6BBH9/blnxrZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CtBGynNCCS4rB0M66qw0bNK5ygjvSXe07v99HOVxBCE=; b=hXtJm23oa7LY0NdWfvp21NRg0LPro6vyiL8tWbDSBDzi7pSuI3q8N3B3zt9It3MQpiHPrtCudLAcOimyKrNxNzlp7D/W0YtHNK9fQch901gipf2xm4FGqhXad2WFyEsIZrvUm9A4LnDStCHmn89RVilwmi8UhLrSzJvMXPoAQUrnc4mQYcgfvIGZhYZ+QQaKj95ddgSXvq/CnErODhb8Ge8EU2HftwFgta6fGtJmyao2ve9Q5JRmrcH3sXSyW8K6lroQDXca6JVRDRpB4ItqDOAdXEieEv3HvNtn7fR1jqs078BzkskDyatHQuF8O3XaiK8edWE4n+f84sdOWmlILA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by SJ0PR11MB5894.namprd11.prod.outlook.com (2603:10b6:a03:42a::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.11; Tue, 1 Feb 2022 10:11:29 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e%7]) with mapi id 15.20.4930.022; Tue, 1 Feb 2022 10:11:29 +0000 Message-ID: Date: Tue, 1 Feb 2022 10:11:23 +0000 Subject: Re: [PATCH v3] net/af_xdp: use libxdp if available Content-Language: en-US To: Ciara Loftus , CC: References: <20220125072043.1590-1-ciara.loftus@intel.com> <20220128095029.4402-1-ciara.loftus@intel.com> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20220128095029.4402-1-ciara.loftus@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0454.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1aa::9) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ab807e4d-fbcd-4e82-b513-08d9e56b3691 X-MS-TrafficTypeDiagnostic: SJ0PR11MB5894:EE_ X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:901; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0u6NNaHIsv7pMVlTjvDi1rvr9HzYXs9Q51cjb6ZjQFwD+c88UOSjuHW/g9okgecq53W/RcZHiF4zxQWfA3y9MTDOarwQVquLcljzkOAxvJz6BSmJrtyCoBNXQ+ucQyiwwf2Vwp0iAEzIOlbsrf7Imm+dpSBL7nmW85W8ykVQBSe1C7SubAWDTP2a+2zqE82iVmIIVsyGwXA16zLqBPxQiJtOvPFiHgqss0YfUuUVpPk+4PVi8z9x2ZSCVt8VUBQTB/f89OwSW3B7czzR++4j6QMwCAv+133NEnvXnshaCpVQ+K5oUtzqH4Ttki9uCfmFaChb8+jfOjk0Vd/j2OoYbmnOhV7IegsFDgqL1gzAQnmorCrHLFqx9QLI7v6NiPZ5LZFMwFBosJf1iu1cu8308Q7ps0hnJGZuZ/ZFl7wNwPLE4wIApsdGwUf/ecUK2NAby9lVhGgl7KDsiNV5kJykRl6sCFFrMdlZr3e1zMV8Lyu9xABhGkaUbwLr2Fd6kGqDieaBgu6ojDa3RagkwOC/Kys/KeqkvRNESztIfJBIkqb99+d4TttPussO6ZMuUnG8gkeCD8kkcN+B54VaDQAyQB0xZ/o1lHv4i6rP3Bq6rrM/FMekMzCSuKO65oVpItyIe8p9yhKOovaaX9cU846JwyPUABHF21Xt0G1CW3ecMJh9KjyNXbO3vqgVGwOcdrgyiVBx0/gtz6LxyipcPhetFAHfnTReWW3QAjf/FqO5LSVXQl6Cn2+o+RLYQbScbXtM/IYyQ6VCuJjVbkxfENi2oemGU+LasVr5KHThkIhaxHwltvMi7g2y4gzosBtqHzsV X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(31686004)(508600001)(36756003)(83380400001)(86362001)(31696002)(6486002)(316002)(4326008)(8936002)(8676002)(82960400001)(44832011)(6506007)(66946007)(66476007)(66556008)(6666004)(186003)(2616005)(2906002)(38100700002)(107886003)(26005)(6512007)(55236004)(53546011)(5660300002)(131093003)(45980500001)(20210929001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OGpQYXR1T3FOWnlJVWZpZjZkWEUwakViUGtkQ0tKZDlqMVhTbUh0akY3Yk81?= =?utf-8?B?L0Fvb0dTZFY4WlVPOU5rU3ltbkJ0QytwN2lHNTRKbVlsLzMxaGdwWEg4czcx?= =?utf-8?B?NnhMUFRpZWFPSnd3c3Y0VHZ6NzQvV0pvZTdWNVVqZ0lxWGRDVmRXTXhyQjlG?= =?utf-8?B?T2FHaGxNY0swRUlJeTBXQUdJUXp2RXVrenZyUU12OTQ0NmZiRG5GWUlZQXNT?= =?utf-8?B?c3hvaEo0RFYzQk4wUDhzbUhvd01xZlVLK3hScHpDZzh3NzFqMHhTMGVBNW1C?= =?utf-8?B?aUNTV1ZWQ1EydGtlZDlBRWFtcUxsbWFpZWNCMndYelRYN29vLzZnVUVUWUNZ?= =?utf-8?B?WFpKaStTYU5PbzdVTXN4ZytTZlJoa3A4dHV3N2tudkJrNkdCZFRuKzZEWEZ4?= =?utf-8?B?NUtMO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AChmqTG0A=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: ab807e4d-fbcd-4e82-b513-08d9e56b3691 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Feb 2022 10:11:29.1603 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XGZWHSgwv7zoDlt6X1aYEk6469MS6I014BKsJaFyznhHSuPod/jj5Tty2h4nBOGbEZdHzs92KxuuGna+Z8gl8w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5894 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 1/28/2022 9:50 AM, Ciara Loftus wrote: > AF_XDP support is deprecated in libbpf since v0.7.0 [1]. The libxdp library > now provides the functionality which once was in libbpf and which the > AF_XDP PMD relies on. This commit updates the AF_XDP meson build to use the > libxdp library if a version >= v1.2.2 is available. If it is not available, > only versions of libbpf prior to v0.7.0 are allowed, as they still contain > the required AF_XDP functionality. > > libbpf still remains a dependency even if libxdp is present, as we use > libbpf APIs for program loading. > > The minimum required kernel version for libxdp for use with AF_XDP is v5.3. > For the library to be fully-featured, a kernel v5.10 or newer is > recommended. The full compatibility information can be found in the libxdp > README. > > v1.2.2 of libxdp includes an important fix required for linking with DPDK > which is why this version or greater is required. Meson uses pkg-config to > verify the version of libxdp on the system, so it is necessary that the > library is discoverable using pkg-config in order for the PMD to use it. To > verify this, you can run: pkg-config --modversion libxdp > > [1]https://github.com/libbpf/libbpf/commit/277846bc6c15 > > Signed-off-by: Ciara Loftus Applied to dpdk-next-net/main, thanks.