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 69295A0562; Fri, 3 Apr 2020 10:05:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7C7251C0C2; Fri, 3 Apr 2020 10:05:36 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 15BEE1C0C1 for ; Fri, 3 Apr 2020 10:05:34 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200403080533euoutp01961de54a5a8eb09f1c98b46290b5ea17~CQK2vaI5F0352903529euoutp01Y for ; Fri, 3 Apr 2020 08:05:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200403080533euoutp01961de54a5a8eb09f1c98b46290b5ea17~CQK2vaI5F0352903529euoutp01Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1585901133; bh=BdeSv9R507jJMsysGxAhEe/tLBVdHQ4nR3KyUetBubE=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=p1Msj5xhutWdkYyn9YXSqU+5sAHGNKhKTvCbXYDKXqeGENmzcgvVWmoWoUaDmBRiu j3RCeazHLuWvKp8Too5ln/q37MmbdaU3KjGm5xIKLVVYPxEGV4Tz3PGEsfh0Dr9L8s CgQz1MapGySnZALrdbokMLWli1TlRjxDnJ6AJ9bo= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200403080533eucas1p1e4da705387bfe0d9f4a50ef2ba5cb047~CQK2c2Lgb2632326323eucas1p1O; Fri, 3 Apr 2020 08:05:33 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id CE.E9.60679.D4EE68E5; Fri, 3 Apr 2020 09:05:33 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200403080532eucas1p101d8f221180a82b4930f92351a2a992a~CQK2DV7cE3047330473eucas1p1m; Fri, 3 Apr 2020 08:05:32 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200403080532eusmtrp2999268bb5c88fbbe8b8cda396f582c50~CQK2CmXs11723617236eusmtrp2A; Fri, 3 Apr 2020 08:05:32 +0000 (GMT) X-AuditID: cbfec7f4-0e5ff7000001ed07-bc-5e86ee4d8230 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id B3.74.08375.C4EE68E5; Fri, 3 Apr 2020 09:05:32 +0100 (BST) Received: from [106.109.129.29] (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200403080531eusmtip142673ce93e6f2e946579fc0ff4ea8356~CQK1TgthC2286222862eusmtip1E; Fri, 3 Apr 2020 08:05:31 +0000 (GMT) To: Thomas Monjalon , =?UTF-8?Q?Morten_Br=c3=b8rup?= , Ferruh Yigit , Andrew Rybchenko Cc: dev@dpdk.org, Matan Azrad , "Benoit Ganne (bganne)" , maxime.coquelin@redhat.com, 'Vladimir Kuramshin' , amorenoz@redhat.com, zhihong.wang@intel.com, xiaolong.ye@intel.com From: Ivan Dyukov Message-ID: Date: Fri, 3 Apr 2020 11:05:31 +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: <2511295.FGBNh6B6GM@xps> Content-Transfer-Encoding: 8bit Content-Language: ru-RU X-Brightmail-Tracker: H4sIAAAAAAAAA01Se0hTcRjtd+/d7t104zoNP7QQls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GAxeLBlLts Fj8e97FZvPu0ncnizt7T7BbL5s5ltjjWuYfFou/XVUaLTw9OsFicvrmZ3eLPG1OLzRcnMTnw eEz5vZHV49eCpawei/e8ZPJ4Nv0wk8exm9PYPd7vu8rm0bdlFaPHqUfdzB6rn/xgC+CM0rMp yi8tSVXIyC8usVWKNrQw0jO0tNAzMrHUMzQ2j7UyMlXSt7NJSc3JLEst0rdL0Mv4vHQjU8Fe 1oqFd1kbGLezdDFyckgImEj8PbaDrYuRi0NIYCmjxOup55i6GDmAEhISr58wQ9QIS/y51gVV 85ZR4m37IlaQhLBAqMTdI01gCRGB/YwSx/bNYAFxmAW+MEoseLqVEaJlO5PE4XXPmUBa2AQ0 JE53zAOzeQXsJPb/XMYGYrMIqEh8nrSCEcQWFYiQeDyxnRGiRlDi5MwnYLdyCqhKnH92mR3E ZhYwk5i3+SEzhC0v0bx1NpQtLvFh+0G2CYxCs5C0z0LSMgtJyywkLQsYWVYxiqSWFuem5xYb 6hUn5haX5qXrJefnbmIERvS2Yz8372C8tDH4EKMAB6MSDy/DwdY4IdbEsuLK3EOMEhzMSiK8 jjOAQrwpiZVVqUX58UWlOanFhxhNgZ6byCwlmpwPTDZ5JfGGpobmFpaG5sbmxmYWSuK8HQIH Y4QE0hNLUrNTUwtSi2D6mDg4pRoYWXljRZhc5n90bXsVMT1g0QX5uREivXySN79PnXYlx/va QsZVb2+rqdn6CuTMXqR4+fYdw1iHSyLnHDiNfO+8NTu/4HfGjcDvH455flDgb06N5r5ZmBju snITo4OdvuO6nC/7ZEvteJp2/O/Y9knjhLreNGvB729cfrK2vf4qu1V4LWtUl2S9EktxRqKh FnNRcSIAw8I15P4CAAA= X-CMS-MailID: 20200403080532eucas1p101d8f221180a82b4930f92351a2a992a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200402205851eucas1p15d9b25f7e5238379754bd0959b04adc8 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200402205851eucas1p15d9b25f7e5238379754bd0959b04adc8 References: <98CBD80474FA8B44BF855DF32C47DC35C60F2D@smartserver.smartshare.dk> <98CBD80474FA8B44BF855DF32C47DC35C60F3A@smartserver.smartshare.dk> <2511295.FGBNh6B6GM@xps> Subject: Re: [dpdk-dev] [RFC] ethdev: use special speed for virtual Ethernetdevices 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" 02.04.2020 23:58, Thomas Monjalon пишет: > 02/04/2020 22:41, Ivan Dyukov: >> 02.04.2020 16:50, Morten Brørup пишет: >>>>>> Yes, if speed is unknown, it should be reported as 0. >>> Could the DPDK vNIC PMDs be updated accordingly? At least the virtio driver... >> Current version of dpdk code on master always returns 10G speed for >> virtio device and many application rely on it. e.g. pktgen. If we'll >> change it, we break the apps. > I am OK with breaking such strange assumption. > I can understand the need for specifying the underlying hardware speed > through virtio driver. But hardcoded 10G... no! > > > OK. I'll redefine it to 0xffffffff, like in kernel virtio.