Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9177AC64EC4 for ; Tue, 28 Feb 2023 21:37:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229868AbjB1VhX (ORCPT ); Tue, 28 Feb 2023 16:37:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbjB1VhU (ORCPT ); Tue, 28 Feb 2023 16:37:20 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4266F3401F for ; Tue, 28 Feb 2023 13:36:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677620192; 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: in-reply-to:in-reply-to:references:references; bh=Fr6G339eh4CzZb9wRNzdMKECxjo2Rk+TLv6cPbI33P8=; b=SNIo3FCAGjAJvRoLuaxJ3/RkQJ3sBqXZ3+mUk7R74WAR/wjyWRPDsfCS5UjT/xZoq7OtlM h3nE0xTi1hdTzWOnjGPYZuGMNC0vSX6i32oG6x9Jryxjz/CTF4vSYJEDsPxyd5+gKNdyQl iJj4e/PHj9gdIa/4fLhrj5o8Y126wh4= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-180-gW2AEA2ZNLKyP0BJmVAyrg-1; Tue, 28 Feb 2023 16:36:30 -0500 X-MC-Unique: gW2AEA2ZNLKyP0BJmVAyrg-1 Received: by mail-wm1-f72.google.com with SMTP id l23-20020a7bc457000000b003e206cbce8dso4080901wmi.7 for ; Tue, 28 Feb 2023 13:36:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677620189; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Fr6G339eh4CzZb9wRNzdMKECxjo2Rk+TLv6cPbI33P8=; b=GfcnXCDZdTrEDipFuxhUblE8Odsahm+ftYFPQFYTWvwljIwJpqHUNzteKsj+1nviY3 EMbPYeIuVkphizL43V7kAogkNwNJ9gvjqkIX7f5ECdnsxJjp6xBhYzNvNxAbjC3UWg04 Y8SY8esfGD3DPU1u2g3L4iTZIcW7AA4cPkyOhYsFAp/j4IInmCg16Xonco6grJPhRK8B pecbqjQPcf1hsqe9BsHBqGXjqjL0CMzWiD52GbDXZdcmapckU0i2ritjLavw1re6xzhK cpPxEdjLEOhJAH3QGF8QP1y7XZeL0cy4vJvxXppn2TlUqrraUzVxPhABfurE1zBuyL6J ZjIQ== X-Gm-Message-State: AO0yUKWPvI9x8JQKp74vJ/mbkOI+tIux7giFmyca2l6yzkJGYgCFSxUG 5qSgCbeamifedeq2IxAqpuFj3t4cBGANbRXuql/QjMoUUSoUouLOdCuBY2r3iZKQqE0tOT74YuN 9wjAIgnFT1bTtBLJcjcZXOYPc X-Received: by 2002:a05:600c:310c:b0:3eb:395b:8b62 with SMTP id g12-20020a05600c310c00b003eb395b8b62mr3713251wmo.39.1677620189697; Tue, 28 Feb 2023 13:36:29 -0800 (PST) X-Google-Smtp-Source: AK7set9Z8lGr1yxjI9Ypmg9yFzicADc+OvbqqKFlwiu50yEmyScxxP766NN0zApqhzmUJ0CYnPz/ow== X-Received: by 2002:a05:600c:310c:b0:3eb:395b:8b62 with SMTP id g12-20020a05600c310c00b003eb395b8b62mr3713241wmo.39.1677620189364; Tue, 28 Feb 2023 13:36:29 -0800 (PST) Received: from redhat.com ([2.52.141.194]) by smtp.gmail.com with ESMTPSA id m25-20020a7bca59000000b003db0bb81b6asm13684976wml.1.2023.02.28.13.36.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 13:36:28 -0800 (PST) Date: Tue, 28 Feb 2023 16:36:22 -0500 From: "Michael S. Tsirkin" To: Bobby Eshleman Cc: Stefan Hajnoczi , Stefano Garzarella , Jason Wang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Mykola Lysenko , Shuah Khan , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, Cong Wang Subject: Re: [PATCH net-next v3 1/3] vsock: support sockmap Message-ID: <20230228163518-mutt-send-email-mst@kernel.org> References: <20230227-vsock-sockmap-upstream-v3-0-7e7f4ce623ee@bytedance.com> <20230227-vsock-sockmap-upstream-v3-1-7e7f4ce623ee@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230227-vsock-sockmap-upstream-v3-1-7e7f4ce623ee@bytedance.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 28, 2023 at 07:04:34PM +0000, Bobby Eshleman wrote: > @@ -1241,19 +1252,34 @@ static int vsock_dgram_connect(struct socket *sock, > > memcpy(&vsk->remote_addr, remote_addr, sizeof(vsk->remote_addr)); > sock->state = SS_CONNECTED; > + sk->sk_state = TCP_ESTABLISHED; > > out: > release_sock(sk); > return err; > } How is this related? Maybe add a comment to explain? Does TCP_ESTABLISHED make sense for all types of sockets? -- MST