Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1604209imj; Thu, 14 Feb 2019 09:02:56 -0800 (PST) X-Google-Smtp-Source: AHgI3IY12mU6132CNwk/sVYWUkufmjvgEB/bXvOX6Lf9Vg8ycM2mqYOdr045fY0/hgtgTL+4yqtR X-Received: by 2002:a17:902:a50e:: with SMTP id s14mr5229795plq.311.1550163776275; Thu, 14 Feb 2019 09:02:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550163776; cv=none; d=google.com; s=arc-20160816; b=L7E+t/PVcusNF8e5fslIANZk4SVlhHfeAtEZnYSwX3P7ap0xL5yiZiJ9+AO5hbEBVO 4Z1Mt9/Qil3EJKz/ggw/YhzYGMQg7eBsmRlfvQ+5gYcqbk6WJcYZB9FEEitgmI3sIF/R CYdByh0BCj6gImLdw0iaGP4JuXpBZxMEL/KvjsYTzvcayG87ynr2MDcBaTaPrY3MJHLD Y2ApgGgJUUj5cd91a9HvITADTVRa+k3nhyV4STPeFycjT0YXKyDReCA/h3lIyS2P+OYZ 9vr5zawIINhz8KQQ59gR09SSu+bM6N7tTZT8zWQqbhlsuHdbQWOjcp63cLmzXUms9Jt3 02Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yBwSSlNv9tCyPDX/sqUOFEoAcNsBJ8hUgkR8QwekNPc=; b=VhLHyOVFtHbkXDCnXBA14oirQQZDO2GN/EuRZrbdtwdqGrFhIZ9uWEbQdJrJW2Tnkm hrfP0yxXcICAlGbbPMg3iBBl31IbFkck5AFPCt7SASoKZs2m7gE8ZIKYX8QOjo6RJcrg JV9gImztXbEWxvrxDNUcqFUFdY7SMFpUDHLlgsXdP4q3FMsxCu5eaWPUAVjt1AqV7PfL lqyV7+xbrtenG9SdBgUsO1kA/RmlQX/twQxxZ2E/ii0DW83UMbscmzN2A14splKQQVFD lHE9tR3xrUAOsRHkalYSpCku4Vha5YNwZlW+oVx3ZKJyXbvRnz9o9WYIkNsu7pwi4SMn bgIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@daynix-com.20150623.gappssmtp.com header.s=20150623 header.b=LXiBP3YV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 37si2782382pgs.447.2019.02.14.09.02.38; Thu, 14 Feb 2019 09:02:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@daynix-com.20150623.gappssmtp.com header.s=20150623 header.b=LXiBP3YV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406115AbfBNHz1 (ORCPT + 99 others); Thu, 14 Feb 2019 02:55:27 -0500 Received: from mail-yw1-f67.google.com ([209.85.161.67]:36285 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731244AbfBNHz1 (ORCPT ); Thu, 14 Feb 2019 02:55:27 -0500 Received: by mail-yw1-f67.google.com with SMTP id 189so1989922ywi.3 for ; Wed, 13 Feb 2019 23:55:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=yBwSSlNv9tCyPDX/sqUOFEoAcNsBJ8hUgkR8QwekNPc=; b=LXiBP3YVwUoJYM9R7Y6HmgAPbLmALMeOLVMlAuQI2AASyM9TF8cs+09o2Wn5YmGlcG fJVY5IdFShBJpvqKjfXJoCSbv13xnYbBJTUbolx3B3NayUWIMXv3W5zZgzZfge9ScRlh xeuEa8chAb0m7k/MxjX5Q/oRWUXHH6Bni9G7260kl0HplK12sLXPJMd4iKkn0a1qR69g JwTpQJNElgM/hTpMx9i2vuG2tUwFGGXJVDhQj0cHg0PCB7vdENPQfPp7BIonWfyTVsSh q8EtJU/wF8B3ynqJTIuLcPhrJx0BUQ7gfpQdTMnk6URLQBWMIN/QOE1KC9ygQYxu6mBH 5W/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=yBwSSlNv9tCyPDX/sqUOFEoAcNsBJ8hUgkR8QwekNPc=; b=Aob8StKa9ymE48eoiv2pT5A15+J+uxtR3SjdSk7TuM0ukNYwfJhsOt8R1BjLWcwcs1 no/Qvv0Hr2sp0eZAn+smCodtlJLbzZ62xzTwybgaP1ecXbWpENQouKYwWac1lgc+kMRM pQb5aOyzp8ey4VdxPF3s/zlg5wEx8ij73dzUXHeND1IWYRskxXK7ctITWRE+JWfctVZq 1dr7SgBXEuCYdBfqjOnGwJc9e4cfiNQ/u9LMJh1Kx003UIGHvxD777aghzzXeAMH1ir8 DFgKTeEPNBLqtKh7RGIe0hrS1h8B62hUFFUY+T0E69fmN0tcXLx5GoPrsX+mbNH5dCfF DkPA== X-Gm-Message-State: AHQUAuaqcAqs5nEYqaPwe2+bp3m1WCnJGW+/TtiKnY7HkXbdNAfdUmtg RbLzCpWRE4+HEC6IvpRpzq0JqIo7BDGtRiQGxGb/pA== X-Received: by 2002:a81:2fcc:: with SMTP id v195mr1794829ywv.419.1550130926284; Wed, 13 Feb 2019 23:55:26 -0800 (PST) MIME-Version: 1.0 References: <20190201085035.18481-1-yuri.benditovich@daynix.com> In-Reply-To: <20190201085035.18481-1-yuri.benditovich@daynix.com> From: Yuri Benditovich Date: Thu, 14 Feb 2019 09:55:17 +0200 Message-ID: Subject: Re: [PATCH v2] virtio_net: Introduce extended RSC feature To: "Michael S . Tsirkin" , Jason Wang , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Can you please let me know whether this patch accepted? Is yes, I'll post similar change to qemu to prevent future compilation error when linux header will be updated. Thanks, Yuri On Fri, Feb 1, 2019 at 10:50 AM Yuri Benditovich wrote: > > VIRTIO_NET_F_RSC_EXT feature bit indicates that the device > is able to provide extended RSC information. When the feature > is active and 'gso_type' field in received packet is not GSO_NONE, > the device reports number of coalesced packets in 'csum_start' > field and number of duplicated acks in 'csum_offset' field > and sets VIRTIO_NET_HDR_F_RSC_INFO in 'flags' field. > > Signed-off-by: Yuri Benditovich > --- > include/uapi/linux/virtio_net.h | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > > diff --git a/include/uapi/linux/virtio_net.h b/include/uapi/linux/virtio_net.h > index a3715a3224c1..23e73d666fc2 100644 > --- a/include/uapi/linux/virtio_net.h > +++ b/include/uapi/linux/virtio_net.h > @@ -56,7 +56,7 @@ > #define VIRTIO_NET_F_MQ 22 /* Device supports Receive Flow > * Steering */ > #define VIRTIO_NET_F_CTRL_MAC_ADDR 23 /* Set MAC address */ > - > +#define VIRTIO_NET_F_RSC_EXT 61 /* Provides extended RSC info */ > #define VIRTIO_NET_F_STANDBY 62 /* Act as standby for another device > * with the same MAC. > */ > @@ -104,6 +104,7 @@ struct virtio_net_config { > struct virtio_net_hdr_v1 { > #define VIRTIO_NET_HDR_F_NEEDS_CSUM 1 /* Use csum_start, csum_offset */ > #define VIRTIO_NET_HDR_F_DATA_VALID 2 /* Csum is valid */ > +#define VIRTIO_NET_HDR_F_RSC_INFO 4 /* rsc_ext data in csum_ fields */ > __u8 flags; > #define VIRTIO_NET_HDR_GSO_NONE 0 /* Not a GSO frame */ > #define VIRTIO_NET_HDR_GSO_TCPV4 1 /* GSO frame, IPv4 TCP (TSO) */ > @@ -118,6 +119,15 @@ struct virtio_net_hdr_v1 { > __virtio16 num_buffers; /* Number of merged rx buffers */ > }; > > +/* if VIRTIO_NET_HDR_F_RSC_INFO is set, the csum_start > + * field contains number of coalesced segments > + */ > +#define virtio_net_rsc_ext_num_packets csum_start > +/* if VIRTIO_NET_HDR_F_RSC_INFO is set, the csum_offset > + * field contains number of duplicated acks > + */ > +#define virtio_net_rsc_ext_num_dupacks csum_offset > + > #ifndef VIRTIO_NET_NO_LEGACY > /* This header comes first in the scatter-gather list. > * For legacy virtio, if VIRTIO_F_ANY_LAYOUT is not negotiated, it must > -- > 2.17.1 >