Received: by 2002:ac2:48a3:0:0:0:0:0 with SMTP id u3csp7948lfg; Thu, 10 Mar 2022 20:59:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJyn8J4zKmPsg1aN40QK31NGOLqj8qyuZb4SHJuTMrcvcjN/bThmK7AWx5O1RoQp9mrA8DKl X-Received: by 2002:a05:6402:34ce:b0:417:7a71:c4b9 with SMTP id w14-20020a05640234ce00b004177a71c4b9mr626762edc.329.1646974742876; Thu, 10 Mar 2022 20:59:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646974742; cv=none; d=google.com; s=arc-20160816; b=JBwH6mf9fe3Jcj7O+NCjmpj/AtrXdrehDkBmbRk9PeUuh4jh/XiCoCjiW+sapgpVIz iCdZHnHTGgR6ncjRXHx9cBInAaF/pcx0haRpgbAysD8mbh31/0PTtaCF/vh1eOQJzLyP lw8E3e0JSlaNJLA3bVDNLQux6mjEUNmOt4xnAirAdQ0Vq15i1YeL1IyLgdDaGjElGVur kajUMF9bTZbynaR0n1pvownAP6Y3ZfDSGMQ8z/7pjHX3Qb947KWFSOaKoR7nbjJG85EG tg2AlB3rMw0H0h45zm7Uispyg++d6Y+SmSs3x8BG0M8j4g2678Vc63uvKYTZUNRa5d6i pncg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=rkPBo3Z97DCJCmqrebEMdZGQBy/a9FPya5vrhdSYtWI=; b=oQYnQpqZuu/gmCK2iIA6qMPaPq7/52oZWqM4+PQm/sCLq1+eE2APxDEyc9TDTcXX4Z VxcMs05dV7WtZ26hl5o8UUmB+ecl5ayV0AQtBG1cRAXTatNDwoF0KmKy5OfBLlOkCKYk xdp9cj5H2+vF4p4D6FX0i5gY7e3bqy/+KD8ItiI/DYzKHKx1RRWprcTu3t6ziy6ixUua 276yjr1A4f8K5BeiEqji8CZpacRuPZbm3kFT6nDR0QGNn67J6nq3W7p2HLDk9dDpQ82O AiEdE+B5WwgKwMUusia4TflswAvWMNuBmdylSbQdzl7IWHeAnD38w7KEYKB7x1O5/mAg nhEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZgIXzzmF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p11-20020a50c94b000000b004162991fe46si4072425edh.418.2022.03.10.20.58.40; Thu, 10 Mar 2022 20:59:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZgIXzzmF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S243999AbiCJR50 (ORCPT + 99 others); Thu, 10 Mar 2022 12:57:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236272AbiCJR50 (ORCPT ); Thu, 10 Mar 2022 12:57:26 -0500 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 2247115F360 for ; Thu, 10 Mar 2022 09:56:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646934984; 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=rkPBo3Z97DCJCmqrebEMdZGQBy/a9FPya5vrhdSYtWI=; b=ZgIXzzmFlgJLh3Icmr5Z4nOyPl8IS01CTmgPvS1s+FrOlMOGPFSYNMrOJKJAs1oqI4Yipq 53jsR5uOW70Ds7b80vIX9ZY4LGM6HDUu7+HNWgS1QSdAN40i1eByFIrIwQ1oul3CMlFWqv jeBGmNwlgg21V8HWM+3Y8RFdW8fmTk8= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-536-JXi6is4INyCbO1OEN9ViTw-1; Thu, 10 Mar 2022 12:56:23 -0500 X-MC-Unique: JXi6is4INyCbO1OEN9ViTw-1 Received: by mail-qv1-f69.google.com with SMTP id b3-20020a056214134300b004352de5b5f0so5418478qvw.20 for ; Thu, 10 Mar 2022 09:56:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rkPBo3Z97DCJCmqrebEMdZGQBy/a9FPya5vrhdSYtWI=; b=3EqOA/7z0Kh+TYZ5zRvWB3OPwQnHGQ0zbpugqmfAJD0nIVeuIdzfwWOpg4J5L4Dcvj 8KxBnjpKPhNp0TuSVdRw3gbp9O2F2AwXpGsqSpTqWMiGKdiBuLq6YPNYzCFob0gh0Gk2 YjtefDQTHJvLpUILeRhleb+aBaYV8PNoTGcCdkfIGupqpEw8sVP0xye9GHfK7sB453yd Ty/yj5xKDtsiNIlB/K/OsYzurjbdcTlQUTiRnfc9a+j01YbfzO9G2JRcNkrL2ei7W0k8 b5Ffx0bq/G35RVIph1Aj4xG54wHIWxK2JYqFoekrTShdngPL49VCZS9KA6Rs1hoEEGRH tD9g== X-Gm-Message-State: AOAM533qcRfrZKG20Xh5neIkiNXLxmG6QnmaYuDeFCW2q06f3KbLj9Wq /sApBPNAq2IOkiPQZh6ZgtAh6IbuKh60by7BIgjRboGEbKZmQtq2cOCva7+ZO8D2F1MXqiFElFr YAb2xBcUdhDBFHQv8XwF1hWgO28ee9cmR7F31a1rZ X-Received: by 2002:a05:620a:17a6:b0:67b:cd:72d0 with SMTP id ay38-20020a05620a17a600b0067b00cd72d0mr3931883qkb.406.1646934982801; Thu, 10 Mar 2022 09:56:22 -0800 (PST) X-Received: by 2002:a05:620a:17a6:b0:67b:cd:72d0 with SMTP id ay38-20020a05620a17a600b0067b00cd72d0mr3931868qkb.406.1646934982618; Thu, 10 Mar 2022 09:56:22 -0800 (PST) MIME-Version: 1.0 References: <20201216064818.48239-1-jasowang@redhat.com> <20220224212314.1326-1-gdawar@xilinx.com> <20220224212314.1326-17-gdawar@xilinx.com> In-Reply-To: <20220224212314.1326-17-gdawar@xilinx.com> From: Eugenio Perez Martin Date: Thu, 10 Mar 2022 18:55:46 +0100 Message-ID: Subject: Re: [RFC PATCH v2 16/19] vdpa_sim: advertise VIRTIO_NET_F_MTU To: Gautam Dawar Cc: Gautam Dawar , Martin Petrus Hubertus Habets , Harpreet Singh Anand , Tanuj Murlidhar Kamde , Jason Wang , "Michael S. Tsirkin" , Zhu Lingshan , Stefano Garzarella , Xie Yongji , Eli Cohen , Si-Wei Liu , Parav Pandit , Longpeng , virtualization , linux-kernel@vger.kernel.org, kvm list , netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Thu, Feb 24, 2022 at 10:28 PM Gautam Dawar wrote: > > We've already reported maximum mtu via config space, so let's > advertise the feature. > > Signed-off-by: Jason Wang > Signed-off-by: Gautam Dawar > --- > drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim_net.c b/drivers/vdpa/vdpa_sim/vdpa_sim_net.c > index d5324f6fd8c7..ff22cc56f40b 100644 > --- a/drivers/vdpa/vdpa_sim/vdpa_sim_net.c > +++ b/drivers/vdpa/vdpa_sim/vdpa_sim_net.c > @@ -26,7 +26,8 @@ > #define DRV_LICENSE "GPL v2" > > #define VDPASIM_NET_FEATURES (VDPASIM_FEATURES | \ > - (1ULL << VIRTIO_NET_F_MAC)) > + (1ULL << VIRTIO_NET_F_MAC) | \ > + (1ULL << VIRTIO_NET_F_MTU)); Extra semicolon at the end of macro. Thanks. > > #define VDPASIM_NET_VQ_NUM 2 > > -- > 2.25.0 >