Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp403344pxt; Fri, 6 Aug 2021 05:02:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMz1XOmc1ecqBjiAvm5tr4HSKm16Em2BUV9iMu/r4jyBYlhAZ84m7EEob6H8Djr9DE0ZLI X-Received: by 2002:a17:906:2d51:: with SMTP id e17mr9278989eji.500.1628251331738; Fri, 06 Aug 2021 05:02:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628251331; cv=none; d=google.com; s=arc-20160816; b=kG7KDNhGTIokIcq5pIjZ9uiIXW506g2UV+bKj/ys0m+rRzc1IV0qSEhDodwa0Ixws7 61HOxnu7tfT8mSpHC7jzvLpJCabyk9P5pjP8ZQ5c8DW18s9xqBWXH6PXZU1et4FdE73n c5wBRWB4TtVL+FSdllCzE2oX4uBxWr4EMhN+LLz83NNYJx6CQV7q3f975qlpYppf0NaT aINgM/zMzhkyPRZgimjZeaZSvyG1kOCi6kgPsGkdyXuEvVcHFIqsRqPM9PSi7rheWN3z HYaIudrvWeCDLINFeK6JtTMgo0oKxe0HjB/qsVBmORO99uzZNXEu5kRWWFyRXbpeolZz xHSw== 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=Y3mKwkaoUVrfQ+lC5tkgN91edlf3gr8pvb0ti7ZT+lk=; b=ykFmSZf3MVtA+meh/KvyOVA4tRXalMjzOVyDmwEzKEF/g/Z29/quc2GAlQjoJ87a7a /OtU62OWbSq1OOhZeh6P8dZ27kU4qn/ZpPjt1/jQRbtz0HaHBTysu6i7EaK4f3CWfTWC XFZsBYy2rUERMXMito0/Pk2JEsc1ae6HWfm6Bz7olEfsdyusMxDD1DQfDED8TrsqGOb6 vWpl74vfer4m9jf9xhX1i9Go6y00f1QX+4xt2h8T/7vDv/a416GVWNG+PYOO2o74GTE1 Tq6huSyHr/R6h8hmCaxQ5nSMw41AW1oxK3JCWl4N3p+7lDiTfPS1kbxnQKdCecxy9knK EQ+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ea+3BASv; 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 lv23si9157775ejb.287.2021.08.06.05.01.42; Fri, 06 Aug 2021 05:02:11 -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=ea+3BASv; 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 S243577AbhHFHTX (ORCPT + 99 others); Fri, 6 Aug 2021 03:19:23 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:56120 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243582AbhHFHTR (ORCPT ); Fri, 6 Aug 2021 03:19:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628234342; 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=Y3mKwkaoUVrfQ+lC5tkgN91edlf3gr8pvb0ti7ZT+lk=; b=ea+3BASv/yl5fT0y35R0yF6ZkdXj1lFlyhCSbu7jo2j59UNHG2RdICL61MP0P58UJ8HMEV 5ceNXcJCZvLdhetCkICqU3i7/nJfkFAe8Ij+ecSW3DH/5wYNU6Y6/H+14STvpj+6gRdhaM fMjWfR4I7r7lSbf3QGbD7/qfjRURmh4= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-476-BytAMJOtOW-Ivk7v-N5uuA-1; Fri, 06 Aug 2021 03:19:01 -0400 X-MC-Unique: BytAMJOtOW-Ivk7v-N5uuA-1 Received: by mail-ed1-f69.google.com with SMTP id l3-20020aa7c3030000b02903bccf1897f9so4419657edq.19 for ; Fri, 06 Aug 2021 00:19:00 -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=Y3mKwkaoUVrfQ+lC5tkgN91edlf3gr8pvb0ti7ZT+lk=; b=aSr3JKaHX+TDFnOUeUWRt5rurX5dWtzSap86GuzqDbyPdAZnGMK7dAiHEbOlAVH5Qe lzabOZi/fDdvLGTjuUOCwIlv/5QVjV+u4VSQu51kA57yPQEuZmEQu8x1SIaDV2GgrZBe ayUKiX971AFdaTHwoojBKYZNV21/dHi65auUwWJt1NjyICSINbe5ZanoeauKTLQt0Hx+ Rt233ou3kSOWrqql8KwYSQILyYFuQrjz3P2liJqZsYmNaUfHKLSBXtjr3yvqpNUs3NjZ g8FAJkIna3YL0XkFwiA/yvKwBIY+3AFFN+PEl7fvIkXAcvpffm9zdk9r4yac7a2Vq1I5 oJKQ== X-Gm-Message-State: AOAM532xQrmQbRnnSCqciaavL5yy2v2po3fYyCzsy7yOE9+O6rDwKwxh kCFLKsyyBFMi0ukkw3dYrUkwAcNhRDdiJq0FsyHBBzvdPny+EAmZO0XwoC0EaXP6zSP2QZrreau A5LsYGAk3MJdKnbhOqQb/kE0i X-Received: by 2002:a17:906:1c81:: with SMTP id g1mr8634572ejh.361.1628234339944; Fri, 06 Aug 2021 00:18:59 -0700 (PDT) X-Received: by 2002:a17:906:1c81:: with SMTP id g1mr8634556ejh.361.1628234339817; Fri, 06 Aug 2021 00:18:59 -0700 (PDT) Received: from steredhat (host-79-18-148-79.retail.telecomitalia.it. [79.18.148.79]) by smtp.gmail.com with ESMTPSA id g9sm3459573edl.52.2021.08.06.00.18.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Aug 2021 00:18:59 -0700 (PDT) Date: Fri, 6 Aug 2021 09:18:57 +0200 From: Stefano Garzarella To: Arseny Krasnov Cc: Stefan Hajnoczi , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Jakub Kicinski , Jorgen Hansen , Andra Paraschiv , Norbert Slusarek , Colin Ian King , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, oxffffaa@gmail.com Subject: Re: [RFC PATCH v1 1/7] virtio/vsock: add 'VIRTIO_VSOCK_SEQ_EOM' bit Message-ID: <20210806071857.h4zneiblcf5tathq@steredhat> References: <20210726163137.2589102-1-arseny.krasnov@kaspersky.com> <20210726163307.2589516-1-arseny.krasnov@kaspersky.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210726163307.2589516-1-arseny.krasnov@kaspersky.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 26, 2021 at 07:33:04PM +0300, Arseny Krasnov wrote: >This bit is used to mark end of messages('EOM' - end of message), while >'VIRIO_VSOCK_SEQ_EOR' is used to pass MSG_EOR. > >Signed-off-by: Arseny Krasnov >--- > include/uapi/linux/virtio_vsock.h | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/include/uapi/linux/virtio_vsock.h b/include/uapi/linux/virtio_vsock.h >index 3dd3555b2740..1de3211a2988 100644 >--- a/include/uapi/linux/virtio_vsock.h >+++ b/include/uapi/linux/virtio_vsock.h >@@ -98,6 +98,7 @@ enum virtio_vsock_shutdown { > /* VIRTIO_VSOCK_OP_RW flags values */ > enum virtio_vsock_rw { > VIRTIO_VSOCK_SEQ_EOR = 1, >+ VIRTIO_VSOCK_SEQ_EOM = 2, > }; Already said, but I'll repeat it for completeness. It's better to rename the flag 1 and use it in the same way we did before, so it's backward compatible. Obviously we have to update the specifications too, explaining the difference between the two :-) Thanks, Stefano