From nobody Mon Feb 9 13:02:16 2026 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 5FA26238D39 for ; Mon, 7 Apr 2025 09:15:50 +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=1744017352; cv=none; b=SowaZqq1c3cHwCRlM82dEkzylQ1nf6B2dtakXT/0/dFujkPnBfLR1TvWDMf8q3Vn+1XZw/BsbDyPTjix4bnAxdCIjs4dIoSD73qqwrLgZy1JhWh8E6H2rAxktWEd99XqAZySi3gRGFnpenPOBfyj9yZ7eY110MIXYgqDgUcYIgc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744017352; c=relaxed/simple; bh=K7Ad3KdpqDkhQC6ojaPJHHOyYZDY+nsnQje7SLgBPXs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gdJXxohWYWrItBvJnnBCXETeJclnhh/iFQfQy2cEYEisGtJsIgDWCRYVftUeTS/u1q9PYbK9YozxZkUR1wP6MksZfNupEyUXNjq65j5rn+Igu5i4ZHPRmQb9XQwYRHmlNEXRpwbVPlGj9YvdV//BnsojPewdpruE5x+CWPncV9Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=QB6whn0k; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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="QB6whn0k" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1744017349; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SCZRJRYgK9GzE/XqScI5Q5rs4mQlTh2sx8JhAMmoLCk=; b=QB6whn0k1L9VqHShpmIVoyhqB5QG+FcmyzQngrSsTQNHPbThK+tYm2k4tsPqH0Txi2T55C zb9UpwPM2r/3HxKcI3gNvzLGVA0IysGCLsYRQOzdGh8+F8wGiUYQDX2l+2rE+gJgK5f42y 7l2lY1gPblSxbv5zNCCFRDC5lBxNmI8= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-192-jN2kVIUUMAS45MmZAhxMDw-1; Mon, 07 Apr 2025 05:15:46 -0400 X-MC-Unique: jN2kVIUUMAS45MmZAhxMDw-1 X-Mimecast-MFC-AGG-ID: jN2kVIUUMAS45MmZAhxMDw_1744017344 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id F32B719560B7; Mon, 7 Apr 2025 09:15:43 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.40]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id A8160180094A; Mon, 7 Apr 2025 09:15:40 +0000 (UTC) From: David Howells To: netdev@vger.kernel.org Cc: David Howells , Marc Dionne , Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , Christian Brauner , Chuck Lever , linux-afs@lists.infradead.org, openafs-devel@openafs.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 08/12] rxrpc: Allow the app to store private data on peer structs Date: Mon, 7 Apr 2025 10:14:39 +0100 Message-ID: <20250407091451.1174056-9-dhowells@redhat.com> In-Reply-To: <20250407091451.1174056-1-dhowells@redhat.com> References: <20250407091451.1174056-1-dhowells@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Content-Type: text/plain; charset="utf-8" Provide a way for the application (e.g. the afs filesystem) to store private data on the rxrpc_peer structs for later retrieval via the call object. This will allow afs to store a pointer to the afs_server object on the rxrpc_peer struct, thereby obviating the need for afs to keep lookup tables by which it can associate an incoming call with server that transmitted it. Signed-off-by: David Howells cc: Marc Dionne cc: Jakub Kicinski cc: "David S. Miller" cc: Eric Dumazet cc: Paolo Abeni cc: Simon Horman cc: linux-afs@lists.infradead.org cc: netdev@vger.kernel.org --- net/rxrpc/oob.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/rxrpc/oob.c b/net/rxrpc/oob.c index 8a8893463d95..f860148a8ca4 100644 --- a/net/rxrpc/oob.c +++ b/net/rxrpc/oob.c @@ -271,7 +271,7 @@ enum rxrpc_oob_type rxrpc_kernel_query_oob(struct sk_bu= ff *oob, switch (type) { case RXRPC_OOB_CHALLENGE: *_peer =3D sp->chall.conn->peer; - *_peer_appdata =3D 0; /* TODO: retrieve appdata */ + *_peer_appdata =3D sp->chall.conn->peer->app_data; break; default: WARN_ON_ONCE(1); @@ -342,7 +342,7 @@ void rxrpc_kernel_query_challenge(struct sk_buff *chall= enge, struct rxrpc_skb_priv *sp =3D rxrpc_skb(challenge); =20 *_peer =3D sp->chall.conn->peer; - *_peer_appdata =3D 0; /* TODO: retrieve appdata */ + *_peer_appdata =3D sp->chall.conn->peer->app_data; *_service_id =3D sp->hdr.serviceId; *_security_index =3D sp->hdr.securityIndex; }