From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-178.mta1.migadu.com (out-178.mta1.migadu.com [95.215.58.178]) (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 2BB0724DCEB for ; Thu, 9 Oct 2025 18:28:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760034511; cv=none; b=DlyhqhN89q4TRec++QT/LpwNE8ni/eNx4noAgLShIUjd2XlgzXZQObhD6pJtQuaIjX0k4kdLDEN2OSEY4iZw4JtBmkymNBlLBdhEAoER5eVPSyc5R9kpgVSKwHbIZ5j3ayQEaMeh3Zauxm9zbux9VcSpuTA3VTiS4N8ey6/97Yk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760034511; c=relaxed/simple; bh=bWbtqSIaWdeFqrm0s+5Tdn/grYIGN8++unPksIZxMJ8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=AZBxC4M/vLrK4zRSaPjx/Yd3huppEAoHoFWiHGSg860BVyXYNdu5GuLZnVOsrh/82NtucXrxwFSlO6oVGXEU3+brwGJlj9CfwXlIaetvoKPkE4X0nu4rRf1ecexus3g1TAhHoYPAK2v4AX0eoU7PDbr7ZVB/kJmGDsaYnb5ufW4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=W38tNWLq; arc=none smtp.client-ip=95.215.58.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="W38tNWLq" Message-ID: <49b4dd53-68bd-4773-8c5c-10048f970f4a@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1760034495; 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=xT1tN7ELc8/0VN9VetHGmbx6E+eoJqJGnl/5MX3YFj0=; b=W38tNWLqrqELsNlzn9btdyy5YQYbBL9hl4IGzxNZB+RUdJ361ofzQ1eNX/IMufX4mseOG6 Ehdwdk4R5bYUKdbepZuS4+vpXxRzbO3dIJBoHsYM+PBw0xJQMrWohQlW+zM8m+4VS3XrEZ qvvvWRvtHIX9lsnSMks07wpzzYAy8tY= Date: Thu, 9 Oct 2025 11:28:05 -0700 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH bpf-next/net 0/6] bpf: Allow opt-out from sk->sk_prot->memory_allocated. To: Kuniyuki Iwashima , netdev@vger.kernel.org Cc: Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , John Fastabend , Stanislav Fomichev , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Neal Cardwell , Willem de Bruijn , Mina Almasry , Roman Gushchin , Kuniyuki Iwashima , bpf@vger.kernel.org, Shakeel Butt , Johannes Weiner References: <20251007001120.2661442-1-kuniyu@google.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau Content-Language: en-US In-Reply-To: <20251007001120.2661442-1-kuniyu@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 10/6/25 5:07 PM, Kuniyuki Iwashima wrote: > This series allows opting out of the global per-protocol memory > accounting if socket is configured as such by sysctl or BPF prog. > > This series is v11 of the series below [0], but I start as a new series > because the changes now fall in net and bpf subsystems only. netdev reviewers, please take a look and ack if it looks good. Shakeel, you have reviewed the earlier revision, please take a look. Johannes, please comment if there is concern on the changes. > > I discussed with Roman Gushchin offlist, and he suggested not mixing > two independent subsystems and it would be cleaner not to depend on > memcg. > > So, sk->sk_memcg and memcg code are no longer touched, and instead we > use another hole near sk->sk_prot to store a flag for the net feature.