From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B2E7C433DB for ; Fri, 12 Mar 2021 15:32:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 27D4465006 for ; Fri, 12 Mar 2021 15:32:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232248AbhCLPbk (ORCPT ); Fri, 12 Mar 2021 10:31:40 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:47709 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232246AbhCLPbX (ORCPT ); Fri, 12 Mar 2021 10:31:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615563082; 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=dqP8/iSv8z7OYLNatC6uWrHlEt8bV6+WSEJM+AzQzGQ=; b=eERN+skkLWgnwLPVjVkNLWf9mw4dKVI1OR+PjwxzUXGg5A45NaOAs587sZfNldIbP3mV96 US9wn0FTzV6FixY8HXXJaNR/sjdI1YWqf6DX3d9EqHx77OZR8FQGKTXoH0cJmXk8kGApmu 4c7zpZJAgGSMK4R8Q86h9CbB0D1FHCw= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-522-VHlywqpyMemK-VgbbbL4Tg-1; Fri, 12 Mar 2021 10:31:20 -0500 X-MC-Unique: VHlywqpyMemK-VgbbbL4Tg-1 Received: by mail-wm1-f70.google.com with SMTP id s192so5490245wme.6 for ; Fri, 12 Mar 2021 07:31:20 -0800 (PST) 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=dqP8/iSv8z7OYLNatC6uWrHlEt8bV6+WSEJM+AzQzGQ=; b=lEC06oj1a2ljlvAlgwZpsYrQheMPbFQpYpgJnrzMD65RxL8Lx/YQjfUGn82zhuspgG 0O+lYHJTk4MqznkXng6+Tg5dWwZjQ+2r5cpiPhYORrKTNow2xjJH2thlbXDay34hHZnZ g2Wf1qjKDW4eHwmntkV6dWnsowMpWKqFpwcpYrshzbiqEB7pPPoAfPD1t/7eAWTtZaef fopvlSw/R0xTp6GP9nRMaVVGjSEcb+A5puzOcuLCCB3lqjP+xSSiks02eXERNCk1WFUj XQhHLj1UEOHJJp9Wl4VyD4XJJG7chx9NKmGF6bBYBtiUuyWsGZyl8op1r7sMUYCOQm5k mZzQ== X-Gm-Message-State: AOAM532KVjmDGFxlyEvLayNmH1lJOXDYGyc2CxPkV815h3WqJ+sEMaFh FBgBSvlvnPdzF3otgLbgiah+t90d2mfITCSfuycZqWzWB/kMa2vTs0saKAdwBUgwAfY/glrV6zt GeNxhEXBHvWDC X-Received: by 2002:a05:600c:198d:: with SMTP id t13mr13968825wmq.73.1615563079596; Fri, 12 Mar 2021 07:31:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsigtJAKBTjGiEoVSbW5etqcx7WQtQts6oCyXsi10ljlCxqfwYO6rEoSzUUEkOfAk+AuCklA== X-Received: by 2002:a05:600c:198d:: with SMTP id t13mr13968802wmq.73.1615563079413; Fri, 12 Mar 2021 07:31:19 -0800 (PST) Received: from steredhat (host-79-34-249-199.business.telecomitalia.it. [79.34.249.199]) by smtp.gmail.com with ESMTPSA id p6sm8096595wru.2.2021.03.12.07.31.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 07:31:19 -0800 (PST) Date: Fri, 12 Mar 2021 16:31:16 +0100 From: Stefano Garzarella To: Arseny Krasnov Cc: Stefan Hajnoczi , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Jakub Kicinski , Jorgen Hansen , Norbert Slusarek , Andra Paraschiv , Colin Ian King , 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 v6 09/22] virtio/vsock: set packet's type in virtio_transport_send_pkt_info() Message-ID: <20210312153116.ot7g4dcb2aidwne4@steredhat> References: <20210307175722.3464068-1-arseny.krasnov@kaspersky.com> <20210307180125.3465547-1-arseny.krasnov@kaspersky.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210307180125.3465547-1-arseny.krasnov@kaspersky.com> Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Sun, Mar 07, 2021 at 09:01:22PM +0300, Arseny Krasnov wrote: >This moves passing type of packet from 'info' structure to 'virtio_ >transport_send_pkt_info()' function. There is no need to set type of >packet which differs from type of socket. Since at current time only >stream type is supported, set it directly in 'virtio_transport_send_ >pkt_info()', so callers don't need to set it. > >Signed-off-by: Arseny Krasnov >--- > net/vmw_vsock/virtio_transport_common.c | 19 +++++-------------- > 1 file changed, 5 insertions(+), 14 deletions(-) Reviewed-by: Stefano Garzarella