Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1625187rdb; Sat, 20 Jan 2024 06:41:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEdwG49JsOnNzk0TX6LO7Zjq6FuVHztYhs2NhcV071E+6qnZshY9AFnQBJBMmWGzWI6oMt+ X-Received: by 2002:a05:622a:610:b0:429:feee:1d29 with SMTP id z16-20020a05622a061000b00429feee1d29mr2070066qta.42.1705761717524; Sat, 20 Jan 2024 06:41:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705761717; cv=pass; d=google.com; s=arc-20160816; b=SVuLrEKC5ewaNMXFOovZO+MJX9/N/Vwp/PFOLkvPniAOvpbuTAxbjfs4magCtfIJO9 dySfqvNbRlgQoxqzzegpT0dZ+kYC+ZqTDFO/6PaBzmQgtgVqLbEWfMjJdz3JljaUd/wK pfAfBsZwdaxeD92v835t1hXUmUIPiHlHnCpz0iYp/Be41qbPob2fRUIQlc1RE7oQkCFl U/OfJkpYgRC0GB4BAznjzFuUatdyXExRwGPISxw4Lu/4OMXSr2LCWM+Ii4Q4JekSAudP ENDGFtKPbveP66/yCHUcvTiWpOB0hvISuXmY02R86FCdRkBF7j4mEPDccbjnedubJL5a wqQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=S6BPwrXGE2thBcbHwFqMBAxcppB+4NWQZehPC54KYU4=; fh=btSreK0Niu+GB44DTqgiEIEXa8rM3LlL/Ewa6jENaqA=; b=QMNJG4ruee9B5DAXY83R/fPuKkOJ1826uDMdcUo53w1XD22CfnYua0/7164sAFA8cp UBKL22QJBHS5MSdNMyt5wTRlFJ26EHzHRQYYVNXuONkmEht/G3AGcf3GhyiKJVKINWjf bOhCy30aijinF37auH6wYaDcitcMkkbBGRBN77l9tlIttlcL4uxsS0znojS5ml95R8yd ftGUhe/yYI0ob7TiYAZzIHv9mBicYQrssg0hoX4t6Qe9RjQMrW7/rnLpvb6UpmkUJYbz KgwcQyL82nU1ZfPf5g8gHnhcM9liPVxXKXF5J9IdM89VBpzQrIwDPsT5vY8NJOfhjOjq 19WA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="dhzW/aRL"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-31817-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31817-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v14-20020a05622a144e00b00429acb31849si1598405qtx.492.2024.01.20.06.41.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 06:41:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31817-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="dhzW/aRL"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-31817-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31817-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4A7BB1C20E36 for ; Sat, 20 Jan 2024 14:41:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 676ABFC10; Sat, 20 Jan 2024 14:41:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="dhzW/aRL" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 D40BBFBEF for ; Sat, 20 Jan 2024 14:41:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705761710; cv=none; b=mCboCwFqt4JVP7Z5hECDYrzfxf8Fqij946J4JZuz4M2oONR5Ts4HTeuVgszORf/933EPstTgMXKAPZDteVNMhtQV5U9uLGJ+kFPETIWkA0eglsV+6H+7JobDhvsgLyChMrfKNyPz7SdYa/KyFErf/4QQucJ+1Pve9cFRHmrOQuA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705761710; c=relaxed/simple; bh=S6BPwrXGE2thBcbHwFqMBAxcppB+4NWQZehPC54KYU4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=e/4qkzox2o38dk8Eop90TX5zsPchJQrQb0g0m/GzI79TqpqPpeB/nqurnZ0cDqQvTU0AYOGJZGw9Xd+6unMHUb8KJqxxJOx1O1QTqGmfElLdGd018ktFRiA+kCyCeCpXyInL7H+Nx/UNnaJkKnyIAopc0ECTqopmScEAxyiDhXU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=dhzW/aRL; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705761707; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=S6BPwrXGE2thBcbHwFqMBAxcppB+4NWQZehPC54KYU4=; b=dhzW/aRLClVUYhbHnI2aO56wLCbT3Tz9013Z8NNu117BOKSQmq/qwxf9FtFiiu+j0nxsGC AlntYgCXArJCXamHZ1Xb+Phnp68xxPlXz7woP4YKI+3Tys07NqkcvGRwXl0K5R1bVSJCnk KaWqMNVW+L/z5rhKlT4ESy40JVLK3Tk= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-5-z6ttGDDbNPaqUWQQELDGOg-1; Sat, 20 Jan 2024 09:41:46 -0500 X-MC-Unique: z6ttGDDbNPaqUWQQELDGOg-1 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-a2b047e8f9fso89315266b.1 for ; Sat, 20 Jan 2024 06:41:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705761705; x=1706366505; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=S6BPwrXGE2thBcbHwFqMBAxcppB+4NWQZehPC54KYU4=; b=TDcuYCFhV9PNGUlsEuuGWQ2bVhJKDSW/0TaX/KhEuCWqLCrYJc8KRyUSwDiiGcqWia wPWGwXkHy/vXf9BeqfzV4xP/IcCKPkYWsFcs6DcVWEyUoEUkvZpyYUdpdX30V+rgFRF6 HydaqShqn7pxFL0vMPsljdgr9TKZkjqtWzIgMM8LRveepTCzaAfEiYYkWM0xl/Oq0jdH AoLpSVAaD6ah5tK0R/QX47wsZC1GCn3wNEcKQ0BX/XjP1JYw4Wy5eqpE5hEnn2iR2F3g hXPfCxj1NJ5aqG2DvYPORw6v9kTRdlqRaa8W6T7VBGT7pCOz/iNeGLQkEbxEhx90f3wP kAGg== X-Gm-Message-State: AOJu0YxEpMpvBFTM8qOTm7tZMKveNW0f6K40I1UFbZKwdAecw4rmlTwc 4nCaXb3qKs0WsVUdNZKbQDY9BHxHBdxTtV3OYVUxKPFrrP+1EV7+qyn+NfaRx2QGCQTuOC7pmTe RvEvdaC5bYAUxfOf3BNnXMXVCT+L99Xh1lPqZ25crBPTzr2J8Dia7wuSZ7h9VzQ== X-Received: by 2002:a17:906:5a98:b0:a23:1163:24be with SMTP id l24-20020a1709065a9800b00a23116324bemr712781ejq.95.1705761705069; Sat, 20 Jan 2024 06:41:45 -0800 (PST) X-Received: by 2002:a17:906:5a98:b0:a23:1163:24be with SMTP id l24-20020a1709065a9800b00a23116324bemr712749ejq.95.1705761704712; Sat, 20 Jan 2024 06:41:44 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id vh3-20020a170907d38300b00a2e7d1b6042sm5542040ejc.196.2024.01.20.06.41.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 06:41:44 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 827D01088FD4; Sat, 20 Jan 2024 15:41:43 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Jakub Kicinski Cc: Sebastian Andrzej Siewior , Alexei Starovoitov , LKML , Network Development , "David S. Miller" , Boqun Feng , Daniel Borkmann , Eric Dumazet , Frederic Weisbecker , Ingo Molnar , Paolo Abeni , Peter Zijlstra , Thomas Gleixner , Waiman Long , Will Deacon , Alexei Starovoitov , Andrii Nakryiko , Cong Wang , Hao Luo , Jamal Hadi Salim , Jesper Dangaard Brouer , Jiri Olsa , Jiri Pirko , John Fastabend , KP Singh , Martin KaFai Lau , Ronak Doshi , Song Liu , Stanislav Fomichev , VMware PV-Drivers Reviewers , Yonghong Song , bpf Subject: Re: [PATCH net-next 15/24] net: Use nested-BH locking for XDP redirect. In-Reply-To: <20240118083730.5e0166aa@kernel.org> References: <20231215171020.687342-1-bigeasy@linutronix.de> <20231215171020.687342-16-bigeasy@linutronix.de> <87r0iw524h.fsf@toke.dk> <20240112174138.tMmUs11o@linutronix.de> <87ttnb6hme.fsf@toke.dk> <20240117180447.2512335b@kernel.org> <87bk9i6ert.fsf@toke.dk> <20240118083730.5e0166aa@kernel.org> X-Clacks-Overhead: GNU Terry Pratchett Date: Sat, 20 Jan 2024 15:41:43 +0100 Message-ID: <87o7dg3w48.fsf@toke.dk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Jakub Kicinski writes: > On Thu, 18 Jan 2024 12:51:18 +0100 Toke H=C3=B8iland-J=C3=B8rgensen wrote: >> I do agree that conceptually it makes a lot of sense to encapsulate the >> budget like this so drivers don't have to do all this state tracking >> themselves. It does appear that drivers are doing different things with >> the budget as it is today, though. For instance, the intel drivers seem >> to divide the budget over all the enabled RX rings(?); so I'm wondering >> if it'll be possible to unify drivers around a more opaque NAPI poll API? > > We can come up with APIs which would cater to multi-queue cases. > Bigger question is what is the sensible polling strategy for those, > just dividing the budget seems, hm, crude. Right, agreed, though I don't have a good answer for what else to do off the top of my head... -Toke