Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp978885pxb; Fri, 15 Apr 2022 17:14:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwy9XMbdIlzyfgZ9BWb47+0GApgRoeqgw2RLDgbvE2XgHh8GaaAFWbfWDtuxgKn3J+GkWVz X-Received: by 2002:aa7:82d9:0:b0:4fa:2c7f:41e with SMTP id f25-20020aa782d9000000b004fa2c7f041emr1296673pfn.1.1650068083403; Fri, 15 Apr 2022 17:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650068083; cv=none; d=google.com; s=arc-20160816; b=sBX7RkpsNiZQ2lBgEh8EZ9ypzbtzUWZPfSIOUcRvktXQqWXCxoGK2eJHU7tSF+4H1b 7t0TvV1/o1S74YtDvsxGkVHtTwut3vpoM7+fq7mMQwfBD87KEiHLjwJSiAQBv/AU9Df+ JtWrlyYmQ5igaCMYbuQhsR28DLhfE10QKmziO89papcNaAcQoSMVBVSo+NhrZmZotBlV VY8n8aGLCVR8wa0qEuDsFsNbAft13vHf0S4nvhr8PNse2uVoKs5vtL/ZIAZ5p2pLWleA tHUf+09K/ExXmZrRuRN2/MxAr8MDyKst77aVBDIBUn3Hx3gUGv/MyTNj5K10QVbo1ZU/ ZIDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=tA0uDOIQJO8DmINdwnol/uT15UPPYSx+8xWvdjqUWss=; b=kJg+Hnbarur7f9Sp4hZgZE6yQFx/W1mQeMXInTgC+kjaUDTAgp2ECPfKZ8l+2Ejk0J Z/Q47sYRRIxfP10zd49SB9tmGJddH18v1gugbpL9PGbNbfSvyrc2eYtufpyfvNaNe0Vb EWEioUGmU1fWirWfl52NS0ND1CVoWbgQtxVtlXDSoAnzgYdTxhwQ7ytwqoEfH1mJNXoZ Dwgzdwl0f6zd+yhyK4x5XFHliZ0HWYLYJHmjVS6wLTmVM3kPkFw8mI6pbmGmU4bhFGcm IXDNrnXvkNXXhoUcPAzSIiuTwGHhxdA/aKMKadKpm7aoagdy/F46os4OPN2t4S17rZ6F 3o3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZM4fGbnE; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h7-20020a170902f54700b001587f055d31si2670782plf.16.2022.04.15.17.14.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 17:14:43 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZM4fGbnE; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DDA3D644C5; Fri, 15 Apr 2022 17:14:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349103AbiDODDM (ORCPT + 99 others); Thu, 14 Apr 2022 23:03:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349069AbiDODDL (ORCPT ); Thu, 14 Apr 2022 23:03:11 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 01C0DAA03C for ; Thu, 14 Apr 2022 20:00:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649991644; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tA0uDOIQJO8DmINdwnol/uT15UPPYSx+8xWvdjqUWss=; b=ZM4fGbnEuRmeKJmuV6e23kpn8Bu+GjGhrle2hqProu6DTfpyFhA+1x3AhZMUOGMYgBN/8Y fgFU2ATfxc2VlYswxRYZccupCqxmxT91IpCg6YeQ6LiYra3nDzOHFQ2E+3mC2uWoQVnfIi l3+04b69K5QILe+8ojPCuPupDTS2FGo= Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-22-otMX9rUmME6eoGlKdgpbBg-1; Thu, 14 Apr 2022 23:00:42 -0400 X-MC-Unique: otMX9rUmME6eoGlKdgpbBg-1 Received: by mail-pj1-f70.google.com with SMTP id v14-20020a17090a0c8e00b001cb778cc439so3794886pja.3 for ; Thu, 14 Apr 2022 20:00:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=tA0uDOIQJO8DmINdwnol/uT15UPPYSx+8xWvdjqUWss=; b=zlcU/7jq3B3tkFr1MPEGbhdNo1YyORFkPlPM/EyBEfsMCiLLz/3kcz2JtJ5ypQSfqs woN+mB8nplCOOjwNCTjSgD/+ay3v/dEt+N4tjsAeVZk/tFSECEnA7Tw3zyyM7fVqyni0 +38L7tIHM5q7MmZhj1FpFWgItjGFGO3W+6ZqtJ3oi+Bh4QPqfxcJpZJRXRfNsY1WA9yU cC0WHeUcDoyELOQ0rTc/iiIzwUm+gSifFdmXHUrnMvfxSv98oNEPF/ff5oakXbch93B4 c0dK1Xru4NozTyMZzQSxOeraMUILge31PRe7xfcPlc4lzqnnjdjL3Esp/tTK5F6TlrFX iRWQ== X-Gm-Message-State: AOAM531A71FbgFwjANdIhdWGGH0BdaxA633PH0i/gw4obbes1A0Vfgha xqaw6VTld6UCaWKV4G/dxqSE6syBNiNyHAPLEcaPTjYSrs/NRqNxg8LtwLQIKV4uQKE8v8D+SzH yGEFTIyd5rCNjwZSFDr0S1SCY X-Received: by 2002:a17:903:3014:b0:158:921b:6ebe with SMTP id o20-20020a170903301400b00158921b6ebemr13621627pla.164.1649991641864; Thu, 14 Apr 2022 20:00:41 -0700 (PDT) X-Received: by 2002:a17:903:3014:b0:158:921b:6ebe with SMTP id o20-20020a170903301400b00158921b6ebemr13621599pla.164.1649991641471; Thu, 14 Apr 2022 20:00:41 -0700 (PDT) Received: from [10.72.13.51] ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id w13-20020a17090a5e0d00b001c7d4099670sm3190794pjf.28.2022.04.14.20.00.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Apr 2022 20:00:40 -0700 (PDT) Message-ID: <87985be4-8cb0-2292-d799-5a91fb32acda@redhat.com> Date: Fri, 15 Apr 2022 11:00:37 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH 2/3] virtio_net: Add control VQ struct to carry vlan id Content-Language: en-US To: Eli Cohen , mst@redhat.com Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, si-wei.liu@oracle.com References: <20220411122942.225717-1-elic@nvidia.com> <20220411122942.225717-3-elic@nvidia.com> From: Jason Wang In-Reply-To: <20220411122942.225717-3-elic@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2022/4/11 20:29, Eli Cohen 写道: > Add structure to define the payload of control VQ messages carrying the > configured vlan ID. It will be used in subsequent patches of this > series. > > Signed-off-by: Eli Cohen > --- > include/uapi/linux/virtio_net.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/uapi/linux/virtio_net.h b/include/uapi/linux/virtio_net.h > index 3f55a4215f11..b94a405fa8d2 100644 > --- a/include/uapi/linux/virtio_net.h > +++ b/include/uapi/linux/virtio_net.h > @@ -270,6 +270,9 @@ struct virtio_net_ctrl_mac { > #define VIRTIO_NET_CTRL_VLAN 2 > #define VIRTIO_NET_CTRL_VLAN_ADD 0 > #define VIRTIO_NET_CTRL_VLAN_DEL 1 > +struct virtio_net_ctrl_vlan { > + __virtio16 id; > +}; It looks to me there's no need to bother uAPI and we can simply use __virtio16 in patch 3? Thanks > > /* > * Control link announce acknowledgement