Received: from eggs.gnu.org ([2001:4830:134:3::10]:40985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9lh1-0001VD-Fc for qemu-devel@nongnu.org; Wed, 23 Nov 2016 23:31:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9lgy-000593-D8 for qemu-devel@nongnu.org; Wed, 23 Nov 2016 23:31:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59136) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c9lgy-00058Y-7L for qemu-devel@nongnu.org; Wed, 23 Nov 2016 23:31:24 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 61EC98F28D for ; Thu, 24 Nov 2016 04:31:23 +0000 (UTC) References: <1477935706-4250-1-git-send-email-wexu@redhat.com> <1477935706-4250-2-git-send-email-wexu@redhat.com> <69ada11c-c401-b85a-66bc-78d3a0b82e2c@redhat.com> <20161124062419-mutt-send-email-mst@kernel.org> From: Jason Wang Message-ID: <78ce0060-9b7c-876d-22de-dd71af7df76e@redhat.com> Date: Thu, 24 Nov 2016 12:31:18 +0800 MIME-Version: 1.0 In-Reply-To: <20161124062419-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: wexu@redhat.com, qemu-devel@nongnu.org, dfleytma@redhat.com, yvugenfi@redhat.com On 2016=E5=B9=B411=E6=9C=8824=E6=97=A5 12:26, Michael S. Tsirkin wrote: > On Thu, Nov 24, 2016 at 12:17:21PM +0800, Jason Wang wrote: >>> diff --git a/include/standard-headers/linux/virtio_net.h b/include/st= andard-headers/linux/virtio_net.h >>> index 30ff249..e67b36e 100644 >>> --- a/include/standard-headers/linux/virtio_net.h >>> +++ b/include/standard-headers/linux/virtio_net.h >>> @@ -57,6 +57,9 @@ >>> * Steering */ >>> #define VIRTIO_NET_F_CTRL_MAC_ADDR 23 /* Set MAC address */ >>> +/* Guest can handle coalesced ipv4-tcp packets */ >>> +#define VIRTIO_NET_F_GUEST_RSC4 41 >> Why not use 24? > I think we should use features >31 (virtio 1 only) for > nice-to-have features like RSC. Feature bits <31 are > easy to backport, so it makes more sense to use > them for fundamental things like the MTU > (which for some setups help fix broken networking). Ok, I believe we need clarify this in the spec or somewhere else.