Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1714224rdb; Mon, 8 Jan 2024 08:01:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFRuIM3jHJZLyraGYaBdOwXKw+8h15OrubUzYCN+4zgOgSRKlmNee7P7RfgoT2GlwUf/arC X-Received: by 2002:a17:907:868e:b0:a29:27ad:8eac with SMTP id qa14-20020a170907868e00b00a2927ad8eacmr2305491ejc.6.1704729699328; Mon, 08 Jan 2024 08:01:39 -0800 (PST) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m19-20020a170906581300b00a28e9d1691fsi17245ejq.622.2024.01.08.08.01.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 08:01:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19812-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kUDKefU9; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-19812-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19812-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E2DBC1F23316 for ; Mon, 8 Jan 2024 16:01:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CEF0524C8; Mon, 8 Jan 2024 16:01:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kUDKefU9" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02E8A51C48; Mon, 8 Jan 2024 16:01:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704729685; x=1736265685; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=Zxtjci5/GmGHks+8vxpLlt6STKZy1s21LGfEL1m70gw=; b=kUDKefU9Hdd/6IxknVIOS0kCyYOKZVjUab6heQ40qXzrsM1RIyZMhlzr r0R00+PfrRl8rtkkXZ/gdUJ8gddEeKZRdyt/zP8C+iH0zOh16Ua6bay1v k4u4lY0D+1LBaIEzrVhBbzDJG6UVLYRkCAm6lZk95Y4qB3zVEd/oVmnUN K8ejXByZ/nCr/IYLHc4uiUDdjhD3dAymWciK+ryH4SUzaXFnSNJkILZ74 HLcR1xI+FUXjmCjL7mV6bMJyNY2LqRaWqXyNL6YnyzXg1IVt7tRB6Bqis nEhvxBi6QPyNWLHSMpszrtMaSQoLX4UEV6W8BXi4KQPslrr5TWvi0I99a w==; X-IronPort-AV: E=McAfee;i="6600,9927,10947"; a="5290022" X-IronPort-AV: E=Sophos;i="6.04,180,1695711600"; d="scan'208";a="5290022" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jan 2024 08:01:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10947"; a="757657724" X-IronPort-AV: E=Sophos;i="6.04,180,1695711600"; d="scan'208";a="757657724" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga006.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 08 Jan 2024 08:01:20 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 8 Jan 2024 08:01:19 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Mon, 8 Jan 2024 08:01:19 -0800 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.169) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 8 Jan 2024 08:01:17 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nPRfEghxzDohiMoqY3XTwitGunQdYcykFBj4VHoztjISPVxd/6mQuTwxxmZgVuksbZ2UDLfpCzBwA0/FOPRzsvk7zs3EqPl5/TqYPYLO1jPM7xR1Ijl+oxenEaDPMTm7/q8FduWNug33TdvT3sbv8J359ne2P0XrSqxisOrMDtxGVFexVzYDW/kX+KNfxubV+VPIrTToDGh2dT90sXg1SGHEQBRN6PjdqoAuxF5GvpdyD2IGWmU1sdT239Ewmi2sb9wgyqBFMeSPfz7yb4GcVd/qRFGZSVI9IG/9TuJSlDV7b6ijtDWyx93yBQ7jHT1lt2kOfMUZlA0K7GNrOCTdyg== 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=t8RIdX0+mKx9r6vz4uOhoSwAvRdvxNFZ5iHHLjyw8/o=; b=RghnK/PBYpznH7/uohT181T7otYMZ0kOvIimEx/T0Sfj6shmTPQOW/S4puH9fi35Adrhi/63B335f8Ht4tmmzUNeJ8yHaHuwqINHglN2ZbGP431ccq+x5rmutM/tXrOVRGLQlg60dTbVsW91XaUpJdWPZPVRIV2NcJwVMRkNO+DMpUB8N3CO3GdCqKQR6IVZdJE7R5bCjj0FP9DwqAD0dGdTaCnX5kQnCXlYLA67tVextvFzhHzjBW+3NvYJp6zoNf3Uc61qp2+RAlSo/1021Kcd9e6tE9bgBICHjrXNVp4kTHnV0t2cAd8wZjPH4AZZeBOSm4G88qIdM7qDtEt/Ag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB8718.namprd11.prod.outlook.com (2603:10b6:8:1b9::20) by CO6PR11MB5601.namprd11.prod.outlook.com (2603:10b6:303:13d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.21; Mon, 8 Jan 2024 16:01:10 +0000 Received: from DS0PR11MB8718.namprd11.prod.outlook.com ([fe80::8760:b5ec:92af:7769]) by DS0PR11MB8718.namprd11.prod.outlook.com ([fe80::8760:b5ec:92af:7769%6]) with mapi id 15.20.7159.020; Mon, 8 Jan 2024 16:01:10 +0000 Message-ID: <49f86f3c-2476-4991-b01c-171a54258994@intel.com> Date: Mon, 8 Jan 2024 17:01:05 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC net-next 00/34] Christmas 3-serie XDP for idpf (+generic stuff) Content-Language: en-US To: Willem de Bruijn CC: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maciej Fijalkowski , Michal Kubiak , Larysa Zaremba , Alexei Starovoitov , "Daniel Borkmann" , , , References: <20231223025554.2316836-1-aleksander.lobakin@intel.com> <658b364d56c6e_5c2a929468@willemb.c.googlers.com.notmuch> From: Alexander Lobakin In-Reply-To: <658b364d56c6e_5c2a929468@willemb.c.googlers.com.notmuch> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR2P281CA0125.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9d::19) To DS0PR11MB8718.namprd11.prod.outlook.com (2603:10b6:8:1b9::20) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB8718:EE_|CO6PR11MB5601:EE_ X-MS-Office365-Filtering-Correlation-Id: ecf80b3f-1a54-460c-0682-08dc10630836 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aRJnJmDg/vYmZ0l7Pe6omigg+GWs1/5KyxANl0T+sISD4+YYdAb7svf+aTiZZ0ZG5gfVZz4FzoQyU6PyFgs6OF948VDzHRY9aPr7ZjPeNXamTepAWUsXX2qzSxioXErxw/x4paKi6WMyO9oKR32gtIedH+9GKUfUOXrD1vNiE5/5mlGoVqkbGiRTd84MT/+t87ce3/Z7D68SXaeEZa+/6HFmPrAUXgY99rgXMRcXfOePvM6UyIo8aDk3LkWxdzA48FC9mwaids7I6YTzitxaMs/NvQDzUr2EjozoTwf8GKQR+a7dezSkEgrqPDFr9aHFQDQ37Z4FgsRCiLEeYeE4KpvJKtr2rRraVgJ5/CJQaXZrHDaciGZmVGMC/Ucxa2TXQ4PQ7ysfu10Z1lsB/WS7aSiVnGqdwMcvUysG4vkYmAg3FwL6sVYxwOoq9G+QCdtG3+gl12keTVPrq6sLji4B7nl6RnD7q3N+M88Qo9NofDDdTOSvOhgDKWB+Svmk0KYszlJXlBENRFSKqmTzWh7s9plJB9X+bhbdqF2zQrNrGnCKV1EjFby5hcjxeaQz87ZGqClPRIRvDHMqjHsQwxA92I0+ACxVtjUhfjebxPE2O8Uasl1K/GXNAUrFmsfe8PaWCqZ/D8gKzqf10fQLSGEP3g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR11MB8718.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(366004)(39860400002)(376002)(136003)(396003)(230922051799003)(1800799012)(451199024)(64100799003)(186009)(966005)(6666004)(478600001)(26005)(6506007)(6512007)(83380400001)(2616005)(38100700002)(66556008)(66476007)(66946007)(41300700001)(6916009)(36756003)(2906002)(5660300002)(7416002)(82960400001)(31686004)(54906003)(316002)(8936002)(8676002)(4326008)(6486002)(31696002)(86362001)(41533002)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?V25IS3h2UlUrNHlLYmZrQ3dyRHk1MUV5WXV5a0t5WFYxZzJDcjVwQlRCSFJn?= =?utf-8?B?Nll2cVVacEVrM3cwR2lxYWt0cmdycElTMkZ5dEg1TEJRdStheHlTYmQ2NjBv?= =?utf-8?B?VHgvZ3ZmTEZyUmw4eWF5Y1JsRk1jaythQjI0cWIvNk56ZHBQbndqVTZGRjFQ?= =?utf-8?B?cE1LaHVaNEx0VWE3d0lZM25Yc0lnd3ZhQTBadnZhV1U5WUJmUENueU1jM2xW?= =?utf-8?B?b3ZucFFXV0FhNkc2L0VFSlE5c2NQbVhvSEsySXRTb1NNTGVON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VCazdYanZTaGliMVlCU0JrbTk0QS8rTzhzWVlUOWZuSFhvdFZOeHdp?= =?utf-8?B?THRrKzJpTE1RejlsT3kzeVg1WUZaUjNHSUlWazhvdC9zcnhBaVlQQnlRblRZ?= =?utf-8?B?Y3c9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: ecf80b3f-1a54-460c-0682-08dc10630836 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB8718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2024 16:01:10.7697 (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: VDUmLqp35FQmuPSqO/piGDWY+2GGshdd9KfbLipN9Xq1HSrn7o2qCNdASLaZ/kseT1i0sEdlUW+jzw0cEUr4dnCM/c8rB3WTk0ScsH7IIek= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR11MB5601 X-OriginatorOrg: intel.com From: Willem De Bruijn Date: Tue, 26 Dec 2023 15:23:41 -0500 > Alexander Lobakin wrote: >> I was highly asked to send this WIP before the holidays to trigger >> some discussions at least for the generic parts. >> >> This all depends on libie[0] and WB-on-ITR fix[1]. The RFC does not >> guarantee to work perfectly, but at least regular XDP seems to work >> for me... >> >> In fact, here are 3 separate series: >> * 01-08: convert idpf to libie and make it more sane; >> * 09-25: add XDP to idpf; >> * 26-34: add XSk to idpf. >> >> Most people may want to be interested only in the following generic >> changes: >> * 11: allow attaching already registered memory models to XDP RxQ info; >> * 12-13: generic helpers for adding a frag to &xdp_buff and converting >> it to an skb; >> * 14: get rid of xdp_frame::mem.id, allow mixing pages from different >> page_pools within one &xdp_buff/&xdp_frame; >> * 15: some Page Pool helper; >> * 18: it's for libie, but I wanted to talk about XDP_TX bulking; >> * 26: same as 13, but for converting XSK &xdp_buff to skb. >> >> The rest is up to you, driver-specific stuff is pretty boring sometimes. >> >> I'll be polishing and finishing this all starting January 3rd and then >> preparing and sending sane series, some early feedback never hurts tho. >> >> Merry Yule! >> >> [0] https://lore.kernel.org/netdev/20231213112835.2262651-1-aleksander.lobakin@intel.com >> [1] https://lore.kernel.org/netdev/20231215193721.425087-1-michal.kubiak@intel.com > > This is great. Thanks for sharing the entire series. > > Which SHA1 should we apply this to? I'm having a hard time applying > cleanly. > > The libie v7 series applied cleanly on bc044ae9d64b. Which I chose > only based on the follow-on page pool patch. > > But that base commit causes too many conflicts when applying this. > Patch 6 had a trivial one in idpf_rx_singleq_clean (`skb = rx_q->skb`). > But patch 14 has so many conflicts in page_pool.c, that I'm clearly > on the wrong track trying to fix up manually. net-next was updated while I was preparing the series. I also did a couple changes in the basic libie code, but a new rev wasn't sent. Please just use my open GH[0]. [0] https://github.com/alobakin/linux/tree/idpf-libie Thanks, Olek