Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5187375pxj; Wed, 9 Jun 2021 11:10:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqSKvsC7C6kkIf4nFxPXLduc9V2xbBDdgiVYBLSejgLQeJRbqE7ecex5dlYNV7lgbG0klG X-Received: by 2002:a17:906:dfd1:: with SMTP id jt17mr1062443ejc.486.1623262212905; Wed, 09 Jun 2021 11:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623262212; cv=none; d=google.com; s=arc-20160816; b=z9/47/hliWxWCOAPI3T/4wwkyvp3p28YLY33q/6NpJ1UhuA62F/w7epJWs58DuNKQN eYir+lFWLU4i4hpShkU1NTvPeaBI0e4rlQzw3RkAiwdi6+DUZWmFOGfGTiIhZTi1/0ig La1sUvYQJQjUlVt3AYILLkphYO5+AUcXCKbx9cL6w3LxrSu4DSxHpvOePdwyzAJ8qtvO EuCjeMnztQQaKk8eKrsmq9NKYbRZq3eL1y6rfk6ZpIssLWqWs9PqH9RLhO3N7/4Bf2wG VrkZ2yZ25V/rqQskJcrUjtzL36bhEz7CVr+/e4+lk5d++3E8suutztFtt21LNbg3AoET Sxjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=YnbXjcNRsjba6+58W3SZlr2ZzaZeiFeycEVR6NTZqQM=; b=U85b9snSO2nMJ1IIZ3Yj+opVNRJOZZG35WYxxZxYKnvXTkwxkm95lUSTax74MAJ+CN lnDRcQBl0mOiT0wO/jo9yKlkFbqzsZ1/menLhagId2d9N8WlWShGMYR8z0F9zFppzelB 4pWIdw8Y4yND9Jnf8771+R+afrbYocfMbfAtezujU3b3B50r9uXC347QlBwIo1b6eHII gaBGBMpNkR7GbedqP2lp0udj4shqCNJV8zlBtfJd9GqAwgZdafMHO18vjLbltaWQ02cT SVZfdPABb8/lule4BCfzghby1+zcOS7EuGt4def48R5vm3dYf1YWPI+gIrvi29HAeV4J BQ5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MYEcht6K; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q8si254029edd.329.2021.06.09.11.08.52; Wed, 09 Jun 2021 11:10:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MYEcht6K; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230017AbhFIQuO (ORCPT + 99 others); Wed, 9 Jun 2021 12:50:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:42514 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbhFIQuO (ORCPT ); Wed, 9 Jun 2021 12:50:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5E22D613C7; Wed, 9 Jun 2021 16:48:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623257299; bh=hHxaS0PsHl0aV79Af27WsPfXn9a5Kv7gST9ycrsXUy8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MYEcht6K+HpkclU45W88qEiWG3ymrqGxG9fB3rG5YgdwGPSIHs6bSLlO8zzK26lAi yFnBgsAB9xrUUjgUQ4jcfdVK7aXOAEQYYaAwaQ4o3A8PogZTgVfjgNuYwd252KRco5 szUagbD5RS9IZBOirQ7jSbM+420RzuJiFZd135UL0L8e90iodAvDjkTw/qpkf3SfnR Qlj/dEH6XrqJkNMO8n6XJw8K2pq5/IEi3arUJghERuoT31R5+7xe91D6b2Mb411JDv V5aMRhEckyipSQhFxEk7+G5je1W5wijrZngpajK8+CbsnhG08S74KjY+ZXiAVPW3/8 rSHtKOQYrMgJg== Date: Wed, 9 Jun 2021 09:48:18 -0700 From: Jakub Kicinski To: Stephen Hemminger Cc: Alexander Aring , Stefan Metzmacher , Steve French , =?UTF-8?B?QXVyw6ls?= =?UTF-8?B?aWVu?= Aptel , Network Development , linux-nfs , CIFS , Leif Sahlberg , Steven Whitehouse Subject: Re: quic in-kernel implementation? Message-ID: <20210609094818.7aaf21bd@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> In-Reply-To: <20210608153349.0f02ba71@hermes.local> References: <87pmwxsjxm.fsf@suse.com> <35352ef0-86ed-aaa5-4a49-b2b08dc3674d@samba.org> <20210608153349.0f02ba71@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, 8 Jun 2021 15:33:49 -0700 Stephen Hemminger wrote: > On Tue, 8 Jun 2021 17:03:16 -0400 > > > With having the fuse-like socket before it should be trivial to switch > > > between the implementations. > > > > So a good starting point would be to have such a "fuse-like socket" > > component? What about having a simple example for that at first > > without having quic involved. The kernel calls some POSIX-like socket > > interface which triggers a communication to a user space application. > > This user space application will then map everything to a user space > > generated socket. This would be a map from socket struct > > "proto/proto_ops" to user space and vice versa. The kernel application > > probably can use the kernel_FOO() (e.g. kernel_recvmsg()) socket api > > directly then. Exactly like "fuse" as you mentioned just for sockets. > > > > I think two veth interfaces can help to test something like that, > > either with a "fuse-like socket" on the other end or an user space > > application. Just doing a ping-pong example. > > > > Afterwards we can look at how to replace the user generated socket > > application with any $LIBQUIC e.g. msquic implementation as second > > step. > > Socket state management is complex and timers etc in userspace are hard. +1 seeing the struggles fuse causes in storage land "fuse for sockets" is not an exciting temporary solution IMHO..