From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3595DA057B; Thu, 2 Apr 2020 11:18:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6A25F1BE0C; Thu, 2 Apr 2020 11:18:31 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id D04C31B91B for ; Thu, 2 Apr 2020 11:18:29 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200402091829euoutp02d978d4b3690ae8ba80f603dac194f47a~B9hPpX9lB3096330963euoutp02c for ; Thu, 2 Apr 2020 09:18:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200402091829euoutp02d978d4b3690ae8ba80f603dac194f47a~B9hPpX9lB3096330963euoutp02c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1585819109; bh=PPZp/jig5QVetm/XSATingGgkUFcd4RN94Z/7RWgZiM=; h=From:Subject:To:Cc:Date:In-Reply-To:References:From; b=Y/kSyY0hVAZ8Pwkffih8VF4BGNPN68uaQ2QUvpZ0pMfp5D26M7lUlyqjMNkYJ4u01 5eq3Mb+7kLwIhvQgW5uLNhfC6aX8tX0u+h/TN8ZC29EPIwTjDNuWu6dWj3hNGtfPmf tMJhDEzGTp5sB7fX1F3mTGqFpdmVzQDf6EDPzDJQ= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200402091829eucas1p190b0f7618cc8c848d62cec5e566b49f9~B9hPeVgyN1829718297eucas1p1t; Thu, 2 Apr 2020 09:18:29 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 45.88.61286.4EDA58E5; Thu, 2 Apr 2020 10:18:28 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200402091828eucas1p271942c7ccf21127dc1dbbdc679abcb99~B9hPLRtxQ1101811018eucas1p29; Thu, 2 Apr 2020 09:18:28 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200402091828eusmtrp196f403a04bfd767eaf6723fc5f61578c~B9hPKizeb1272812728eusmtrp1i; Thu, 2 Apr 2020 09:18:28 +0000 (GMT) X-AuditID: cbfec7f2-f0bff7000001ef66-92-5e85ade463e0 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id D8.5E.08375.4EDA58E5; Thu, 2 Apr 2020 10:18:28 +0100 (BST) Received: from [106.109.129.29] (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200402091828eusmtip1cd9f3170906a5b36c666e4f096800a9c~B9hOlPcOE2812628126eusmtip1d; Thu, 2 Apr 2020 09:18:27 +0000 (GMT) From: Ivan Dyukov To: Thomas Monjalon Cc: dev@dpdk.org, maxime.coquelin@redhat.com, tiwei.bie@intel.com, amorenoz@redhat.com, zhihong.wang@intel.com, xiaolong.ye@intel.com, =?UTF-8?Q?Morten_Br=c3=b8rup?= Message-ID: <66962d3d-acee-1992-bf4c-e4954067b015@samsung.com> Date: Thu, 2 Apr 2020 12:18:27 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <2966019.2vfOZ694Ok@xps> Content-Transfer-Encoding: 8bit Content-Language: ru-RU X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLKsWRmVeSWpSXmKPExsWy7djPc7pP1rbGGbxpsr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5gDVKz6Yov7QkVSEjv7jEVina0MJIz9DSQs/IxFLP0Ng81srIVEnfziYlNSezLLVI 3y5BL2P+0VesBfdZKx5vMGlgPMHSxcjJISFgIrH68WYgm4tDSGApo8TxDQvZuhg5gBISEq+f MEPUCEv8udbFBlHzllHi94TbjCAJNgENidMd85hA6oUFPCR27MsFCYsIaErc/j6LEaSeWeAI o8S9tYvYIZqvMErM637AAtLAK2An0bpIB6SBRUBF4vqPjawgtqhAhMTjie1g83kFBCVOznwC diingKrE3ENvwOLMAmYS8zY/ZIaw5SWat86GssUlPmw/yDaBUWgWkvZZSFpmIWmZhaRlASPL KkaR1NLi3PTcYkO94sTc4tK8dL3k/NxNjMDY23bs5+YdjJc2Bh9iFOBgVOLhrchoiRNiTSwr rsw9xCjBwawkwus4ozVOiDclsbIqtSg/vqg0J7X4EKMp0HMTmaVEk/OBaSGvJN7Q1NDcwtLQ 3Njc2MxCSZy3Q+BgjJBAemJJanZqakFqEUwfEwenVAPjpNOvF3joKSqsvfK4MZz5806eNsZA hS2y/p1y/6fwvMlqi9XqDepOkxWLcy60nMm7aGYn1+K0WYY+Txce5Dd+ldip9k0+Y55jkgZj YvGa/JTibz9XqMVlleU9fH9J1ueteOb8+k1Lb52uXhPLLjdX+GydhmfA9N0Ve0VeqiY+UHsh NdnBm0WJpTgj0VCLuag4EQBtvHt10wIAAA== X-CMS-MailID: 20200402091828eucas1p271942c7ccf21127dc1dbbdc679abcb99 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200330075829eucas1p1b21f029dafd6056b950bdd810fe8458e X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200330075829eucas1p1b21f029dafd6056b950bdd810fe8458e References: <20191212085012.9170-1-i.dyukov@samsung.com> <20200330075814.6857-3-i.dyukov@samsung.com> <2966019.2vfOZ694Ok@xps> Subject: Re: [dpdk-dev] [PATCH v8 2/5] net/virtio: add link speed devarg X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hello Thomas, 01.04.2020 13:57, Thomas Monjalon пишет: > 30/03/2020 09:57, Ivan Dyukov: >> Some applications like pktgen use link speed to calculate >> transmission rate. It limits outcome traffic to hardcoded 10G. >> >> This patch adds speed devarg which allows to configure >> link speed of virtio device. > Is it really a good idea to fake such information? > Shouldn't it be managed differently in the application instead? > > > This is main stream of net devices. Device provides speed to application. Application calculates the packet rate. In case of virtio, speed is not limited by device. It could be specified by user. This patch just gives this posibility to user. Best regards, Ivan.