Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp231103pxf; Thu, 25 Mar 2021 02:45:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzn3KEUt2ufOhPKfkh/Ef+i7d0Lc0o95g+qLg9k6K+xglgC1kdBcnZu+ndOxJHcXDrUMmPs X-Received: by 2002:a05:6402:4245:: with SMTP id g5mr8150184edb.306.1616665509000; Thu, 25 Mar 2021 02:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616665508; cv=none; d=google.com; s=arc-20160816; b=IpXavJ70Gv6hS6AuDcMLbE+22DnTjse+q1xpmnd0gFSSZuAnEioRqrenVUcebw2FyH EqfrJDIx70vOBPy2fwp8QgYdVhr5MOzse99AXPyoyqI5M+j45bK7yS86wYKeG2K2ozcK T6ZSzGNwLfPMuePXd6oMuP6wmw+Wgtwo2kkesdAI3I68i6AYpoB2EhTRmuzkIkJU5HWv c+/QLyLCtgHkTOOCm+PxU8F3gNdS2mU8hzePBtZcIzyjomCNIP7huiNsUas3tu/9VUcn 0b4bI7PbWxbKicuGRytA5qjNpcUOYY0AQ3wf9oJ2jYRZ9aQSYbRX0UUm3KpcuHMl/jXb MnXA== 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=iazG2kvbVV7z7jI0Hl0WMxl3hq3T9QCm0mrnWD6S1vM=; b=0eLh/hRY+4eXpEo/9vPBqbrPVCdmuxEORabE45K4jq0x3ugzFxVyzxBrJ0zpWadX3+ 9ww+otD4NFqd1JbXlLY4LrtF0/L/4g5yqqj9DodKdp5jTgh03irEHIxqyX5AZ8PC4zdJ V1bNGqdK9/VPPm4fKeee46BHHIv1DKfbzCyEeJKqzexfcSfnq1ODHCXDxvHEQ2HhYXTw p1HaGlN9zkfYrtqVoNRZZDeqz97lcMHXc5p2T6uOzJlWkshzOAskwFGPOk5PYTsQgDHy UpYe3FaQAQp+BESJmXZKW74yDYZbzOq9pyapP77WlOdYFLYm8bzWWQJAAF8OXyLQYB1K MVKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HZTTwqpz; 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 lj22si3890964ejb.614.2021.03.25.02.44.45; Thu, 25 Mar 2021 02:45:08 -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=HZTTwqpz; 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 S229798AbhCYJnc (ORCPT + 99 others); Thu, 25 Mar 2021 05:43:32 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:34001 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbhCYJm4 (ORCPT ); Thu, 25 Mar 2021 05:42:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616665374; 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=iazG2kvbVV7z7jI0Hl0WMxl3hq3T9QCm0mrnWD6S1vM=; b=HZTTwqpzI5d25dA+u+5V1+FbZO0bikzsheye5w95tALiqhsMxz7v6633IuXdbfPj5LanJl SEOvIrzH0fPCep8L3dTPaDgwJ63xtOpmmDqozhrEbV9rcBZq0oNVNBl8g8PhGU76hbYYzj ntTA+Qs8qgwjyxUjcy0I/fEvZO0dqI0= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-22-_K8jqom3MZ6-HwWsFIEVIQ-1; Thu, 25 Mar 2021 05:42:53 -0400 X-MC-Unique: _K8jqom3MZ6-HwWsFIEVIQ-1 Received: by mail-wr1-f72.google.com with SMTP id a15so675841wrf.19 for ; Thu, 25 Mar 2021 02:42:51 -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=iazG2kvbVV7z7jI0Hl0WMxl3hq3T9QCm0mrnWD6S1vM=; b=TcYLdQsl51IfhFCa5cncE/rJB7B3WtVZd69feEY3zsZan4taLwJeR/nY5mi2Ep13Za 53NB53q2O5u1Pp4gjnucL+BtffRSUGMisWqk8Cjp2ylQqC4IJy9m1PHYI5x7x+lIY0uJ dD8uK6T+QOk0aSnxBHankn0tn9kAwdAiGj2YI2f/bWdebsWSgdNEHjlTyBjjHiDIhq/i M7zT/UH7JYnZuWE3P2Mgc7vgR4e85z10CbQ3sQu9Xkykxo9eeyDl6p+hyrODaMY2/ZIx h58nys+mCjtzri2KM2wDU+3/G8DBzrVmOUy2EcjaqA6S1R4CQO4JuGJa1VvEjn6Zky08 uToQ== X-Gm-Message-State: AOAM532/RawRaPY+yHdgF6KiWkA0uUjY/wUf/4QwCmfTsmJ87jXZpUFB eVToMsjmqKDjBnPCxPa3FVdJZigeqYetK6tR93qefZhDpmaHeTwbEyUjereGtpiMYnKhx4nQKrK 8FPKQqRNdEG66HuJXBPiUexNp X-Received: by 2002:a5d:4e0e:: with SMTP id p14mr7877653wrt.64.1616665370845; Thu, 25 Mar 2021 02:42:50 -0700 (PDT) X-Received: by 2002:a5d:4e0e:: with SMTP id p14mr7877623wrt.64.1616665370676; Thu, 25 Mar 2021 02:42:50 -0700 (PDT) Received: from steredhat (host-79-34-249-199.business.telecomitalia.it. [79.34.249.199]) by smtp.gmail.com with ESMTPSA id j13sm7019686wrt.29.2021.03.25.02.42.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Mar 2021 02:42:50 -0700 (PDT) Date: Thu, 25 Mar 2021 10:42:47 +0100 From: Stefano Garzarella To: Arseny Krasnov Cc: Stefan Hajnoczi , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Jakub Kicinski , Jorgen Hansen , Andra Paraschiv , Colin Ian King , Norbert Slusarek , Jeff Vander Stoep , Alexander Popov , 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 v7 06/22] af_vsock: implement send logic for SEQPACKET Message-ID: <20210325094247.np2hdgwzgcjpgsia@steredhat> References: <20210323130716.2459195-1-arseny.krasnov@kaspersky.com> <20210323131045.2460319-1-arseny.krasnov@kaspersky.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210323131045.2460319-1-arseny.krasnov@kaspersky.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 23, 2021 at 04:10:42PM +0300, Arseny Krasnov wrote: >This adds some logic to current stream enqueue function for SEQPACKET >support: >1) Use transport's seqpacket enqueue callback. >2) Return value from enqueue function is whole record length or error > for SOCK_SEQPACKET. > >Signed-off-by: Arseny Krasnov >--- > v6 -> v7: > 'seqpacket_enqueue' callback interface changed, 'flags' argument was > removed, because it was 'msg_flags' field of 'msg' argument which is > already exists. > > include/net/af_vsock.h | 2 ++ > net/vmw_vsock/af_vsock.c | 21 +++++++++++++++------ > 2 files changed, 17 insertions(+), 6 deletions(-) Reviewed-by: Stefano Garzarella