Received: by 2002:a05:6512:2355:0:0:0:0 with SMTP id p21csp213890lfu; Wed, 30 Mar 2022 21:17:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAk2E0EOEcstQFUc2AeKG04vyDPhHPbtpqcohtZ33wV7cC9n9Jyb70tTJiKNBciuv5j0SB X-Received: by 2002:a17:902:d2c8:b0:154:2b02:a499 with SMTP id n8-20020a170902d2c800b001542b02a499mr3359965plc.168.1648700228638; Wed, 30 Mar 2022 21:17:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1648700228; cv=pass; d=google.com; s=arc-20160816; b=JA8Jy06kFQlIR4DmJOyHHKoSmmzcDoXJVFlYn+KnQUMqA6DrTe4UcHXqEZWf0aNTTC mD27BZnOxFOL1gOXlVOOuPM6vHmuieK90/yi8kZjJ+1XwQEm7ijoZFwHZ+shSbM+Tany dfDUC30P5efsEo43mSV31CX0XjSoxtTZOSkyWIs2HbuFPaArzxtbTOSrq8/h/zOBTfXu wo6qaRKv99TOHaPKiFVV1WNbcF90YWIUBwi5ZfG0S2YCWXoKGD0S+WkPIGcyOC/khMlC 5q3mKXUg7LVnD0RRYnp+nQcNRm9W2J9iUrMZx+yn7vKldyBl3Fj+L8LAnHyOKdcJrHS2 VjJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :envelope-to:dkim-signature; bh=xJw3odgIIm4wktl69JEsN4AFSv2MdB7sBlfl9Y7IHTQ=; b=Y8twvICxsrdN29lhENFhi2Uxom4SPXkgJc4lIIIgp0oBvhFDtfPHEMZEgGwbeDxfVC KMwfi66TvCzplFy5MlVTaZYGBuuaviyyTtgtj0z1kjiPOxee8XSHRZrcsAq1d18wBKLh NA2wCC46QMlxXX3DDfCnXKZw7J7TPChC4BllC6I+0smkfsRgFcb2Yz9RBxIqsNMAX/az aVMY2NK2okytcI3xD5VzKA7XL2ORWjxWt2emcCi6kiRlbsYZ9p1HPPou2WpTMvCM75C9 OIkX+A9/jVqbwvGtM/HA5FLotbLER+F9m82fSnIsVoJdVWjYzEJRr4GnIpfhGzNLDCt3 2D+A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=XAiaRbE6; arc=pass (i=1 spf=pass spfdomain=xilinx.com dmarc=pass fromdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xilinx.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u12-20020a170902bf4c00b00153b2d1662dsi21391766pls.565.2022.03.30.21.17.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 21:17:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=XAiaRbE6; arc=pass (i=1 spf=pass spfdomain=xilinx.com dmarc=pass fromdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xilinx.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 17C0218C0F6; Wed, 30 Mar 2022 20:13:34 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347848AbiC3SZn (ORCPT + 99 others); Wed, 30 Mar 2022 14:25:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350049AbiC3SU7 (ORCPT ); Wed, 30 Mar 2022 14:20:59 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2085.outbound.protection.outlook.com [40.107.94.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 065692DD55; Wed, 30 Mar 2022 11:18:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xJw3odgIIm4wktl69JEsN4AFSv2MdB7sBlfl9Y7IHTQ=; b=XAiaRbE6aWg481xuOPWHEv1Ika/3P8UCGsjcDEvlrIQ5QVSg/2iNaOnKVobcJmnclUPozhy3fqy1daauniHbui85zjmfGkU1mRHFdesw87vKiKyyklHyOaSorI0P1mqscBfBipoB4gP6dLH4iZAYH4jHeywXyZQpKW8SacBgZJ0= Received: from DM5PR15CA0037.namprd15.prod.outlook.com (2603:10b6:4:4b::23) by BL3PR02MB8018.namprd02.prod.outlook.com (2603:10b6:208:359::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.17; Wed, 30 Mar 2022 18:18:57 +0000 Received: from DM3NAM02FT012.eop-nam02.prod.protection.outlook.com (2603:10b6:4:4b:cafe::4d) by DM5PR15CA0037.outlook.office365.com (2603:10b6:4:4b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.13 via Frontend Transport; Wed, 30 Mar 2022 18:18:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 20.83.241.18) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 20.83.241.18 as permitted sender) receiver=protection.outlook.com; client-ip=20.83.241.18; helo=mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net; Received: from mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net (20.83.241.18) by DM3NAM02FT012.mail.protection.outlook.com (10.13.5.125) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.19 via Frontend Transport; Wed, 30 Mar 2022 18:18:57 +0000 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02lp2045.outbound.protection.outlook.com [104.47.57.45]) by mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net (Postfix) with ESMTPS id 91BD541D82; Wed, 30 Mar 2022 18:18:56 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D9/PXX76sAqIyCyyJnjxPx+TKl/QbO3CwkviFakIIHaqlPdSYOoqxbHvEjFvV9fdDMH5lsujk5gqnT4e1kTQkvGur7S7U+TVRbSe9rx75rB+abqKYVpBvY+i68LmclyNFoJ4BF4+SJFTQT4K+QrZy9CZX/1pOqGOK5vSizahrExWXoAGNT96fC0f43a3GNHD2cuOak9og6YC4O43Ub5wI2kA7BWfqpxb7qbzCRyUnm85PylAaa7CV0uQ6GdbJIAIn7wApg/MlETTFkzPsrs+t4XkuveXT7lAsWnawk3EqeZDRWezxy3g8nm3SLi+Vx7pSZnu8euqPkX6DH764kcjww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xJw3odgIIm4wktl69JEsN4AFSv2MdB7sBlfl9Y7IHTQ=; b=mIzfAr1fbNIl3opj30MEu72Dz3KpCdG341UV7kYrFWWdCd1T8bMOgejwnl43GGUqXHs7cnf0ULve8XxRzGkN6V4ObsRPAsB3p71kHsPM6uAkDlGXiFsuEU2LOvojn8FCywu5i7dt/DnMNdsM1659/pswmxtuekJOfrggZ0MlZe3ab+TO2T6i0CQ0k95KHOeK1NSqbbEXO0feXuZoPrrGYv9VCzA0r3qjqR6MRJYTtD1yZoBlj8WGhhYtPcbVquyBml41h3CkbdUOo/zvTikWdpC/5PcEd8MiFeffTUe3RFu+nJpnABb9EXmGwigSz4AMtgw7HNHDTRxSU/tko38ngg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=redhat.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none Received: from BN9P220CA0025.NAMP220.PROD.OUTLOOK.COM (2603:10b6:408:13e::30) by DM5PR02MB2571.namprd02.prod.outlook.com (2603:10b6:3:3f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.22; Wed, 30 Mar 2022 18:17:55 +0000 Received: from BN1NAM02FT008.eop-nam02.prod.protection.outlook.com (2603:10b6:408:13e:cafe::7d) by BN9P220CA0025.outlook.office365.com (2603:10b6:408:13e::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.13 via Frontend Transport; Wed, 30 Mar 2022 18:17:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by BN1NAM02FT008.mail.protection.outlook.com (10.13.2.126) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5123.19 via Frontend Transport; Wed, 30 Mar 2022 18:17:54 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Wed, 30 Mar 2022 11:17:51 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Wed, 30 Mar 2022 11:17:51 -0700 Envelope-to: mst@redhat.com, jasowang@redhat.com, elic@nvidia.com, sgarzare@redhat.com, parav@nvidia.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, netdev@vger.kernel.org, habetsm.xilinx@gmail.com, ecree.xilinx@gmail.com, eperezma@redhat.com, wuzongyong@linux.alibaba.com, christophe.jaillet@wanadoo.fr, lingshan.zhu@intel.com, xieyongji@bytedance.com, si-wei.liu@oracle.com, longpeng2@huawei.com, dan.carpenter@oracle.com, zhang.min9@zte.com.cn Received: from [10.170.66.102] (port=44662 helo=xndengvm004102.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1nZctD-000CCQ-B8; Wed, 30 Mar 2022 11:17:51 -0700 From: Gautam Dawar To: "Michael S. Tsirkin" , Jason Wang , Gautam Dawar , Eli Cohen , Stefano Garzarella , Parav Pandit , , , , CC: , , , , , , , , , Wu Zongyong , Christophe JAILLET , Zhu Lingshan , Xie Yongji , Si-Wei Liu , Longpeng , Dan Carpenter , Zhang Min Subject: [PATCH v2 16/19] vdpa_sim: advertise VIRTIO_NET_F_MTU Date: Wed, 30 Mar 2022 23:33:56 +0530 Message-ID: <20220330180436.24644-17-gdawar@xilinx.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20220330180436.24644-1-gdawar@xilinx.com> References: <20220330180436.24644-1-gdawar@xilinx.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 8e0ed0cd-8855-4a77-e804-08da1279c173 X-MS-TrafficTypeDiagnostic: DM5PR02MB2571:EE_|DM3NAM02FT012:EE_|BL3PR02MB8018:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: THz0EbVUgHtl7YBV348Ixyr54sT45F3yW9ZZYZrr0cnRFv4/6bg5d28WyZAsxLEzVcpq+9toT05UaSlR0nGqao6sR58p6Ey0Y8afSr3+42HZce9xXfBZKIfidlnCEhb9NbzTFGnNZLEUTRUxS96YLaw0s6hR0wF7uxFQZhBaiGPnYas15BKhUNGdwlJoT0WTw9DLggS47L31u0tzzkOvZRm2xyA9/2+G3VVO6N5t9Zebi1fUInRK6hwdtQCAv5bxc27G6Q6TVzTrcXHgknyA5JZ12vPNSRgXp1tidp66VtPks8kso+UXE8mnHtYtrrMxaY0pzgiBPyRFvrnZhYgNuwvEIh1/UVtdbFGlrB5XvaaORESgZtFFqfGBNA6Ya2tkPU3hgnWo9ErNDi8jBb23rLOi1N9vVAI81ec74WuCjLTyJiztnHmM2G4i5/C+MZSN4nP1Pl5RNjv9TlpBvI9sKPGmvVfkIXTDUN8KtICQDnetJnU30ao8XVVspeN3B1b72/IXChLGFGDLroxSwcl4qNwJ0S8hp69eChoLgiWA46YYEJ4ZhLztSuTqR7pdEbQiKEvQIbJesnLnKY8bsmzU3sGD6j66valribcoS6bct1gDvyJihIWkeWJ72XbNaGUrqYb+uzLC97B8JY8EGleaNT+LsE/cG1G5bxKQceftPprnnF8F0pJ4eUsyQV5LPMs+o5Z6BC5a8u4jPH6CSmNGhXAkPH2ApGTR685e8IroF6o= X-Forefront-Antispam-Report-Untrusted: CIP:149.199.62.198;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapexch01.xlnx.xilinx.com;PTR:unknown-62-198.xilinx.com;CAT:NONE;SFS:(13230001)(4636009)(46966006)(40470700004)(36840700001)(5660300002)(9786002)(1076003)(7696005)(186003)(26005)(4744005)(82310400004)(2906002)(44832011)(8936002)(2616005)(7416002)(508600001)(7636003)(83380400001)(356005)(336012)(8676002)(70206006)(40460700003)(36860700001)(426003)(47076005)(70586007)(316002)(4326008)(36756003)(54906003)(110136005)(921005)(102446001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB2571 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DM3NAM02FT012.eop-nam02.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 083a709e-5c02-4323-9783-08da12799c3e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GTEk/1DzgoTJMMWLrudaIhsDaw3fDRvo9oW/kLLkuZSC0mJYDcST4EJpyfcTGjye3pag9gpIzvt4Ya58GQLyvhWALMACnVb+Hwj6kQVdvurC1lT1sECHUGRn98MwO4Ka2oMp9CKRXwfqroLYR38fNd9ttbriKdqz0hjDBDwIhNmoazs6xzvpMGjZVLd6RhHoB9L4EcQNVCeMoztjZ5cdXlQyqwzMcOEIlM9dNWfK80DFSn3+dJEYbvR7SuiX6I3eshidj6ea09/b9ZDmkegRVqQviffyy9eXkdEcnwNISUzARJXqP7EwHFEodYScscS14Q0i8SL5W3qYMdtzvgC+riU3/8upGppgquwmmCKho8AXURcmDckC4ESylEYKMU1Nd7CR7BFQryL2Qh/4aJ3I6cSfijEWfL7vyr4TDOgrMaGurdhHyCahOxkREhDHYgTFUv8XTPa2cxCuMSyt2FtpMN5TF5e4Bn4tdPvH04vDxRBbMBD4PnjvYe3scaniUQUMGxEQNSp1G6WJpEeMxSbomqpRBLKgIvzcjo3z5D6LU2hfqQI4lLYHgDTG5ba4bvJfgkf7PSE0ngJftczwEprXW3/P9bWtfr9tV+ZPI/4cFgjkZlOYTPIpfanAX9Dp19iLhQH9/7Z2pReWBxqQlr1Oamaoz2jKxvhxJUCeRpr8y0i40Lj/6+YCaJhF+QZaQD2Ur0yQvkUD/7iN15i3K2NZhoBV/V0KQUiqOUDpMG8LbUMoJNJbuc8oDlN5tSuSBKQb2ljaQfnzocOekUS1kzgV7A== X-Forefront-Antispam-Report: CIP:20.83.241.18;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230001)(4636009)(40470700004)(36840700001)(46966006)(7696005)(44832011)(8676002)(83380400001)(36860700001)(4326008)(82310400004)(1076003)(26005)(186003)(336012)(426003)(2616005)(4744005)(47076005)(2906002)(70206006)(508600001)(316002)(5660300002)(110136005)(921005)(81166007)(9786002)(54906003)(36756003)(7416002)(40460700003)(8936002)(102446001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2022 18:18:57.1194 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8e0ed0cd-8855-4a77-e804-08da1279c173 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[20.83.241.18];Helo=[mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-DM3NAM02FT012.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR02MB8018 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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..2d1d8c59d0ea 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)) #define VDPASIM_NET_VQ_NUM 2 -- 2.30.1