Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4476855pxj; Tue, 8 Jun 2021 15:35:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYD8HP+8KEpC25D6AwuS3o1m7CB7mB6KUEg2gXnHv45F2/ot7XFy8v7u7S8/NuXqdcWpEh X-Received: by 2002:aa7:de8b:: with SMTP id j11mr27981663edv.363.1623191718477; Tue, 08 Jun 2021 15:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623191718; cv=none; d=google.com; s=arc-20160816; b=JVAOGyeDM5HMXkSHbq4f0mWezUmph8mpSAw7aKepvsOKHrN2kCjMG2Wc7UgKCFwfx3 YTvIlrfnJal5FTYXJ8zS+zM7SQVsEhkMHr3rhI+eE1rBMBUKY++TlhirSmbFKT/+iZXo SwhptcGOieqYwq2aFOxJGaUAFo8FOjQC5pJBng288YGOWq4yqG1cB2rn9ZP4kXl7zS5v uZ5nwM2lzNZpjtM94koDVB2DniC77s6ityBiNUKgGf9b0MFv5p5MISksdV9zqn48ksxi J8p+iPriGtJ6al8ouKl5E9gxWcXq4lISLuLxTJyDOHprq2pOeWN2lMqv1my9aVQk9Hvr u/8g== 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=mxRqjs0kWAV8d5/8DGxZ+Wcw0XYiesjOQ1RKA/CGQGw=; b=h097MIQMludn5ZbroTi+p6EH+Q3NqqbFvdnAwewuAiYYGzwoHAvY24RoOSRF3bYUrT ePCBD4ccOYp1Qw020RpMOLFTb6cB2ibDQXnDHy33BYIcCbI7Hr3ET1imxkU/oWOgHiz6 B0kADTxYV6TV/TaRsYglycK921LuH/4yV+uIDWNHZtN49SPG9gqIyRFh8bI+4W0NdygN hKxMJdHfJot9N6m2DcngcloJcIw2HUZlEh566mg4LQ8BcmiG9bC+GnOQbmMqBMX21QQ2 3tC3blVXwJwohmFkNiNG8ebQWMhg0yVN6HBPg8A6AVuP0wVXbeIqMjo+AIhZeOWLZ9aY RgCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b="RVeVFXZ/"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f19si803030edt.5.2021.06.08.15.34.53; Tue, 08 Jun 2021 15:35:18 -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=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b="RVeVFXZ/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234267AbhFHWgK (ORCPT + 99 others); Tue, 8 Jun 2021 18:36:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230507AbhFHWgJ (ORCPT ); Tue, 8 Jun 2021 18:36:09 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EBC5C061787 for ; Tue, 8 Jun 2021 15:33:58 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id 69so11475866plc.5 for ; Tue, 08 Jun 2021 15:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mxRqjs0kWAV8d5/8DGxZ+Wcw0XYiesjOQ1RKA/CGQGw=; b=RVeVFXZ/7X8SIagOorHGY0ZqE9VqdwQjcTdONY5B6RgOYMf26cSPv6RRcVku68hND1 e/Q9uc+lCR6p6mUkEnkvJerjatKgImUB39lpoLvChPaq8N4mttvR/SxnG8abL/nQrLJL wvTenLHHSlQdV+1CaH0r9CxJ9onWNrd4/K5wPhNVevZZ+HnYWlXdQTMwaG/8+Kh49qCG o7xjmrOUfm0qitkRy4V6BhsDKZEiI9msIi26LB4GL0kwNVQjiQu/sMzcVNtgekP/HIBI YLVMxqMoLrnqbpzMSYL5KCpZCaTP3K2CrVO89f0koEvAlukBgGM615X5HjGHj8kaiTCT Wy0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mxRqjs0kWAV8d5/8DGxZ+Wcw0XYiesjOQ1RKA/CGQGw=; b=PRnTjzxtT0PAsK8nst7uz3ZFczk/RGsBGKZBXv7joQBBCvpl6PKoUle9Kk4s4NBHsW 4Rx1sjDw416IqeldRagJF+pkliS2yvYfnyOOZ1o8jVmqDuqVQ4R36Kz0f1KijhqXqpDp 4Ex4UIbNt4gpAc7+inyGhvUKTkFk2j0Zl+VEe0kCc1qGaukY9m6NT96/+UGB7BKgi0mN reihIp/PnPatwBiPGyRFijZfffkd1M/vHIrXb3lboMMsKfZx8TVOSOMCeFw5g2o/Khju xpYvLFiWMj9rxC1luGyngZzzJtvwHwRlUF5GHueE2AIPAF7pq3a6JeR8QWlrPpQ0hfz/ xj2Q== X-Gm-Message-State: AOAM530JboSORrd2w+q/hIZeQmQ8nfnt8lJkH2KhHZmTpz1mJdJ8NWC2 zi8Zq/svh6OWpA5nGnU+yKNgpA== X-Received: by 2002:a17:90a:8581:: with SMTP id m1mr28547951pjn.47.1623191637974; Tue, 08 Jun 2021 15:33:57 -0700 (PDT) Received: from hermes.local (76-14-218-44.or.wavecable.com. [76.14.218.44]) by smtp.gmail.com with ESMTPSA id fy16sm3130338pjb.49.2021.06.08.15.33.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 15:33:57 -0700 (PDT) Date: Tue, 8 Jun 2021 15:33:49 -0700 From: Stephen Hemminger To: Alexander Aring Cc: Stefan Metzmacher , Steve French , =?UTF-8?B?QXVyw6lsaWVu?= Aptel , Network Development , linux-nfs , CIFS , Leif Sahlberg , Steven Whitehouse Subject: Re: quic in-kernel implementation? Message-ID: <20210608153349.0f02ba71@hermes.local> In-Reply-To: References: <87pmwxsjxm.fsf@suse.com> <35352ef0-86ed-aaa5-4a49-b2b08dc3674d@samba.org> 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 17:03:16 -0400 Alexander Aring wrote: > Hi, > > On Tue, Jun 8, 2021 at 3:36 AM Stefan Metzmacher wrote: > ... > > > > > 2) then switch focus to porting a smaller C userspace implementation of > > > QUIC to Linux (probably not msquic since it is larger and doesn't > > > follow kernel style) > > > to kernel in fs/cifs (since currently SMB3.1.1 is the only protocol > > > that uses QUIC, > > > and the Windows server target is quite stable and can be used to test against)> 3) use the userspace upcall example from step 1 for > > > comparison/testing/debugging etc. > > > since we know the userspace version is stable > > > > 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. > > - Alex > Socket state management is complex and timers etc in userspace are hard.