From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 8DB00191484 for ; Wed, 5 Jun 2024 10:20:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717582849; cv=none; b=mch6t6k+G5QN4O8LT6rHojCqcjDQxJZ1hbH24hbywY+OjxclMf0dmKseAzkTAfEFLsN80+xcsl4JvwqqaaKDym8YIx/MiIuSjeA4FiFKsJN4zFTuRvjlycn4g+QP7nHlixm8PcsoyaxnCrn+gFUp1GZito6YRCcBQoHAPy8kpT0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717582849; c=relaxed/simple; bh=3+/0pw4u2JaQ4V4b0wPU5b5kRPyOdE+6zuH2exjbjLI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=b9nXtV7zCDJSqjmGrT0rVsr1jnpXRGUxqlvZ5ctgCd/jGTdCAjvKViNftsqUmiqVxJ5WS/mqyajY7o9LAlrqh8JDyrUjAvp2y14psQh9Gg9oa3JRScNITdfCEQPjXqPD6EyoJGyHEa6Bems90jqDtK8vK+S3eRjVrbGO53VrFa4= 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=JSKDDX/o; arc=none smtp.client-ip=170.10.133.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="JSKDDX/o" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717582846; 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=3+/0pw4u2JaQ4V4b0wPU5b5kRPyOdE+6zuH2exjbjLI=; b=JSKDDX/odrfcKPgR5CFpY85vEBQ6X3NDYuZNV2pANS9RjnGnGcHolq2FE4cyWk63UY37uO J6VNC3BMWGJNZjG48SGXz8yqZtB3njPjoxIg7J0BBBannvrrlmCfubeTPfM8Ygf3dbYFBW HAvPZySx8pheL1pdL/nImOcK0gmrbFo= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-262-bLogc0PcMNixP3e8cDAemA-1; Wed, 05 Jun 2024 06:20:45 -0400 X-MC-Unique: bLogc0PcMNixP3e8cDAemA-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-4215a04220eso57565e9.3 for ; Wed, 05 Jun 2024 03:20:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717582843; x=1718187643; 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=3+/0pw4u2JaQ4V4b0wPU5b5kRPyOdE+6zuH2exjbjLI=; b=o6FqEF1izDwegMMttjVugAkVoFD9REPjIJb1ewYK9ZSnRwtCmP70QOvBvX+NtW3FO3 4uSsD4k9sZCbIuRQbkE42zZEBMb2z6pLlnHSx8Av9BY/hYbSNosFx5uFmyXsLF7/OAq/ cbAuC38DWcmD6/zOp8L6m0gA5JxpTohkafKJ4ADIAy+d2d3J9BR/LkqaaB46wm7FXIVw 01cn7zIU4Lzs0qHx0DK+iHoHrSHjrC9A4VsvoLF+4Kc2rsVTXfO5kozJz5xcvkN9HdZJ t97uUfY8P98LDOTR6Q+pSBAv806/KRI2X0BGrOqbWkgHwZ55mJR7uwHJ7vAWyel4JsjF pavw== X-Forwarded-Encrypted: i=1; AJvYcCW7TEsm9LJBj7GORoi9/vtad9nwfdeeouu8uW5VByc71wVDIfDp0ebTHYfNXcNlxrbm0iMX3rHcrX5h7QIaX/shk3B7 X-Gm-Message-State: AOJu0YybhMo259D81Cvola80TL+9bDIE1MBndS1H4TPnWL5LDe1ZuohB C2R83peUCks4KGevE6MyW779u3yKp5BL6pBQXwcztCOGzMtIxeoXAOYcd7vt+Y2nx8LoljTJwN6 9n0JM0Y5ZAM7vkddYfNmDk5qnjACDcoP+ZXKJD3txRdaAAI10yQ== X-Received: by 2002:a05:600c:35c1:b0:416:8efd:1645 with SMTP id 5b1f17b1804b1-421562c354emr21673395e9.7.1717582843333; Wed, 05 Jun 2024 03:20:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGBLwiAsKcL/M+2PwMmgmbYOgQGPx558hBVK9zwpiwuDQuK9ZU3XA/Dqu4W0NvuVGidf6++kA== X-Received: by 2002:a05:600c:35c1:b0:416:8efd:1645 with SMTP id 5b1f17b1804b1-421562c354emr21672985e9.7.1717582842778; Wed, 05 Jun 2024 03:20:42 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd064b684sm14225962f8f.100.2024.06.05.03.20.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 03:20:42 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 903B613854FC; Wed, 05 Jun 2024 12:20:41 +0200 (CEST) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Sebastian Andrzej Siewior , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: "David S. Miller" , Daniel Bristot de Oliveira , Boqun Feng , Daniel Borkmann , Eric Dumazet , Frederic Weisbecker , Ingo Molnar , Jakub Kicinski , Paolo Abeni , Peter Zijlstra , Thomas Gleixner , Waiman Long , Will Deacon , Sebastian Andrzej Siewior , =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= , Alexei Starovoitov , Andrii Nakryiko , Eduard Zingerman , Hao Luo , Jesper Dangaard Brouer , Jiri Olsa , John Fastabend , Jonathan Lemon , KP Singh , Maciej Fijalkowski , Magnus Karlsson , Martin KaFai Lau , Song Liu , Stanislav Fomichev , Yonghong Song , bpf@vger.kernel.org Subject: Re: [PATCH v4 net-next 14/14] net: Move per-CPU flush-lists to bpf_net_context on PREEMPT_RT. In-Reply-To: <20240604154425.878636-15-bigeasy@linutronix.de> References: <20240604154425.878636-1-bigeasy@linutronix.de> <20240604154425.878636-15-bigeasy@linutronix.de> X-Clacks-Overhead: GNU Terry Pratchett Date: Wed, 05 Jun 2024 12:20:41 +0200 Message-ID: <87cyovadxi.fsf@toke.dk> Precedence: bulk X-Mailing-List: bpf@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 Sebastian Andrzej Siewior writes: > The per-CPU flush lists, which are accessed from within the NAPI callback > (xdp_do_flush() for instance), are per-CPU. There are subject to the > same problem as struct bpf_redirect_info. > > Add the per-CPU lists cpu_map_flush_list, dev_map_flush_list and > xskmap_map_flush_list to struct bpf_net_context. Add wrappers for the > access. > > Cc: "Bj=C3=B6rn T=C3=B6pel" > Cc: Alexei Starovoitov > Cc: Andrii Nakryiko > Cc: Eduard Zingerman > Cc: Hao Luo > Cc: Jesper Dangaard Brouer > Cc: Jiri Olsa > Cc: John Fastabend > Cc: Jonathan Lemon > Cc: KP Singh > Cc: Maciej Fijalkowski > Cc: Magnus Karlsson > Cc: Martin KaFai Lau > Cc: Song Liu > Cc: Stanislav Fomichev > Cc: Toke H=C3=B8iland-J=C3=B8rgensen > Cc: Yonghong Song > Cc: bpf@vger.kernel.org > Signed-off-by: Sebastian Andrzej Siewior Reviewed-by: Toke H=C3=B8iland-J=C3=B8rgensen