Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp293071pxj; Thu, 13 May 2021 05:12:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3Waxce93s3MIPv08N6oUhcpnz/fElFh4uayBpyZrInfx16h/ujJ8nNX+rkb0e0lhijdhr X-Received: by 2002:a17:906:4a13:: with SMTP id w19mr43214395eju.533.1620907966612; Thu, 13 May 2021 05:12:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620907966; cv=none; d=google.com; s=arc-20160816; b=CSaHt5geQ6Ojvc2EezNhZugMksytSEG8D/UiPOtBzgilOYYZ9TZoF7dO0PaCd+cFJL UY3o6KQEQEmXj8O9jLlMopR3Jg3VFURyfW9Ix7HGwlNFoauQnQSj2J1+YMXO09jjyNl+ S8XEaXsYscTYNIYt4IP+CmiBTfuN3CtZkBSQjvZcUMWeT1Ba0Csbe9BKl4sJYHJ20vOP sytSvHapmDbIswsf7Q/9OKjKHBG70iONkIp+oAR6ViV0jHHBcydIOwWCqb43/CYF3nCT Vv8o+3w2LaHMb0HRpHnspFCkyVDpyvZcjyfnZ3YxnCgupEBq2eZ+IEkigvt/zgbxU2xc LgYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=R+xpriwoqMR4hMxYIDQ9tzTIIOzNsv7iGskqwPCMAtI=; b=1JmPXUKlKCSNflZRHd2ypJ19nEoHIU+bOgurT+KbF16dwTXTK2NOPzLUZFtjYb8qjf vqBihkODgdv8iXNoe44oUH6DSzZ9XB2TROCko9Pwo5wZ32lhP9Oxc31kVaSA1cVRCgeb ZgYCKgRNgK/ZVSyaGYUhyyLGyTBwTxX+8C9oVrTcSXxcWUi856nAKqWTRWmQm98BHfXH Me/iWrELuA9ycuYVdrlR11KKaWyynqYWIVFFUob0ELwwcBVdiKTv1bR37cjWd9kQuuhU 4w0nnJhQFRMChmqR7inbfhi+VwPDPvzjcK5XZF9al2G18/L22BPTCuK3ahEK1j0+p17e 5L7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OI27jo8N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m14si2392470edr.306.2021.05.13.05.12.21; Thu, 13 May 2021 05:12:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@redhat.com header.s=mimecast20190719 header.b=OI27jo8N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232442AbhEMLnh (ORCPT + 99 others); Thu, 13 May 2021 07:43:37 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:57969 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231414AbhEMLna (ORCPT ); Thu, 13 May 2021 07:43:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620906140; 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=R+xpriwoqMR4hMxYIDQ9tzTIIOzNsv7iGskqwPCMAtI=; b=OI27jo8NIxgomqRr60ykXGsCjDHgwrGm6G0QX0rLYa7GqsbaWTFZBEyG2DSoBKKFUH4mDT fvl90ygMZEZH9fjAwXot8JUE1E6HdyYmdmBLyfdu+kELMjMPqK3XRN965emRnKKApcYXaR wsT+QkA80iJTLKt3zc29VpCMlHUYNCo= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-365-3XUODv0BMMCcyP-do_bO4A-1; Thu, 13 May 2021 07:42:18 -0400 X-MC-Unique: 3XUODv0BMMCcyP-do_bO4A-1 Received: by mail-ej1-f72.google.com with SMTP id bi3-20020a170906a243b02903933c4d9132so8283570ejb.11 for ; Thu, 13 May 2021 04:42:18 -0700 (PDT) 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:references :mime-version:content-disposition:in-reply-to; bh=R+xpriwoqMR4hMxYIDQ9tzTIIOzNsv7iGskqwPCMAtI=; b=ePibLjYc68s4gO6NhKEHUl5LHNrcGoqGvSMz2quRof4dKkU/8Kl76vcNp5kIpEWBu8 travReUWV/iuw82hU2oZ/VImqvEUyzUuDfb5hxl9Gjs/NKOGyJCiZHZ/ZB1CrAjxFISd eGcwAmLlU5kIMckIKUwXWrkwYC8a+wsUW2xZyUKi2PHWMQhpL7y3New0v35a7Bt7wrDk yyJ/qyTRAfXyj65jzJtcppLi0dQlHOcAMd1aysu2juQomi+kGeGyc7U22SO94GPPcRIn uBLH7OlFxuJg5qNzYDaQHQYOQFlBQxeS6CrLKMSS2C7G1RgOCWpriVXzlXnIcmE0+jWB 2M9g== X-Gm-Message-State: AOAM5332yTY7wWuObmqJRSGjA344jiiboficgfaYT2H9GQck6DNtUJOs v/oyKBpJT+fqu5SJTuqFgUOUkhu5Zuj90KyW8061aEfJpOra7Jz0mqBvndlg5tcDnSQEBd2Vj/2 HYirJdAuNAPBiL2aO6Tm/j4// X-Received: by 2002:a17:906:11d5:: with SMTP id o21mr39425182eja.176.1620906137651; Thu, 13 May 2021 04:42:17 -0700 (PDT) X-Received: by 2002:a17:906:11d5:: with SMTP id o21mr39425159eja.176.1620906137418; Thu, 13 May 2021 04:42:17 -0700 (PDT) Received: from steredhat (host-79-18-148-79.retail.telecomitalia.it. [79.18.148.79]) by smtp.gmail.com with ESMTPSA id q25sm1704765ejd.9.2021.05.13.04.42.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 May 2021 04:42:17 -0700 (PDT) Date: Thu, 13 May 2021 13:42:14 +0200 From: Stefano Garzarella To: Arseny Krasnov Cc: Stefan Hajnoczi , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Jakub Kicinski , Jorgen Hansen , Colin Ian King , Andra Paraschiv , Norbert Slusarek , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stsp2@yandex.ru, oxffffaa@gmail.com Subject: Re: [RFC PATCH v9 06/19] af_vsock: rest of SEQPACKET support Message-ID: <20210513114214.66mfm76tp65af5yq@steredhat> References: <20210508163027.3430238-1-arseny.krasnov@kaspersky.com> <20210508163350.3431361-1-arseny.krasnov@kaspersky.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210508163350.3431361-1-arseny.krasnov@kaspersky.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 08, 2021 at 07:33:46PM +0300, Arseny Krasnov wrote: >This does rest of SOCK_SEQPACKET support: >1) Adds socket ops for SEQPACKET type. >2) Allows to create socket with SEQPACKET type. > >Signed-off-by: Arseny Krasnov >Reviewed-by: Stefano Garzarella This patch is changed, so usually you should remove the R-b tags. >--- > include/net/af_vsock.h | 1 + > net/vmw_vsock/af_vsock.c | 36 +++++++++++++++++++++++++++++++++++- > 2 files changed, 36 insertions(+), 1 deletion(-) > >diff --git a/include/net/af_vsock.h b/include/net/af_vsock.h >index 5860027d5173..1747c0b564ef 100644 >--- a/include/net/af_vsock.h >+++ b/include/net/af_vsock.h >@@ -140,6 +140,7 @@ struct vsock_transport { > int flags, bool *msg_ready); > int (*seqpacket_enqueue)(struct vsock_sock *vsk, struct msghdr *msg, > size_t len); >+ bool (*seqpacket_allow)(u32 remote_cid); I'm thinking if it's better to follow .dgram_allow() and .stream_allow(), specifying also the `port` param, but since it's not used, we can add later if needed. So, I think this is fine: Reviewed-by: Stefano Garzarella