From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 68BEBA49 for ; Mon, 6 May 2019 10:09:58 +0200 (CEST) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us1.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id CF831400056; Mon, 6 May 2019 08:09:56 +0000 (UTC) Received: from [192.168.38.17] (91.220.146.112) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 6 May 2019 09:09:50 +0100 To: Thomas Monjalon , Ferruh Yigit CC: , Wenzhuo Lu , Jingjing Wu , Bernard Iremonger , WenjieX A Li References: <20190424220309.84270-1-ferruh.yigit@intel.com> <2207858.tCSXyMIbcb@xps> <1873539.KBY3f8jFuF@xps> From: Andrew Rybchenko Message-ID: <34775dd7-e426-7464-02e9-8fa8730c0cfe@solarflare.com> Date: Mon, 6 May 2019 11:09:46 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <1873539.KBY3f8jFuF@xps> Content-Language: en-GB X-Originating-IP: [91.220.146.112] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24594.003 X-TM-AS-Result: No-17.569100-8.000000-10 X-TMASE-MatchedRID: 6lay9u8oTUMOwH4pD14DsPHkpkyUphL9lIvcAfYJnEoiQjSmlnf1z1YW GY8tbKb+MJ6tO4rthoaOraeluNwoM/6sIX4Dc0fpjNvYZHpO13fE44eLDReByy/h9VOvT6AgjUA h7+CgT2r1OzOB90vIEB6F6WRPswqhghwwq9GACbfidvCqqY53aTGZtPrBBPZrbJknz+3f3aVqE/ /WNEnqnP53ptaR0h9j4JuPmqTUWwvMHUInqqZ02qMVgdN9w+TCwx0jRRxcQfPb6Y+fnTZUL7f2y m4GBSKatDlF2olT49Yh6aPiL+eFcuHXfiMoZowZaDgPZBX/bMvqvccKLF+4pwwv1ZvdCH+FVM2p /cRDyjFic/5yraYWDlebGpjHs5mWxldSKOGXaXwZCVRU/aI9zMdtmwbxPlmOikvE2QGlUYTdKUS BW7I322+5ieh24ZYRX7bicKxRIU23sNbcHjySQQD6RpjqQGaFtVX2a1/ZsVhFLBDlbDbHvna8GZ ilaEG0n+2N+OWXg4yhi/5kmHH96AakFuf5Urf9nq/yhDbK6jp2DP20k2F8Nx6vZHhQhHhdp2vwS QWP4mE= X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--17.569100-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24594.003 X-MDID: 1557130197-7WizcMDUt_5R Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH] Revert "app/testpmd: set fixed flag for exact link speed" 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: , X-List-Received-Date: Mon, 06 May 2019 08:09:58 -0000 On 5/4/19 11:45 PM, Thomas Monjalon wrote: > 02/05/2019 22:27, Thomas Monjalon: >> 02/05/2019 20:31, Ferruh Yigit: >>> On 4/29/2019 10:52 AM, Thomas Monjalon wrote: >>>> 25/04/2019 17:27, Ferruh Yigit: >>>>> On 4/25/2019 2:29 PM, Thomas Monjalon wrote: >>>>>> 25/04/2019 13:47, Ferruh Yigit: >>>>>>> On 4/25/2019 9:19 AM, Thomas Monjalon wrote: >>>>>>>> 25/04/2019 00:03, Ferruh Yigit: >>>>>>>>> This reverts commit bdca79053b6aea504d02691d9319fa976062457f. >>>>>>>>> >>>>>>>>> Not all PMDs support the fixed link speed set, and link speed can be set >>>>>>>>> even with auto negotiation enabled. Reverting the patch to not break >>>>>>>>> existing usage. >>>>>>>> Which PMDs do not support this flag? >>>>>>>> Why not fixing the PMDs? >>>>>>>> >>>>>>> At least ixgbe and i40e is not supporting setting a fixed speed. >>>>>>> But I am not sure if this is something to fix, the command in testpmd is to set >>>>>>> the link speed, what is the problem with setting the link speed without >>>>>>> disabling the auto-negotiation? >>>>>> It means it will negotiate with only one speed proposed. >>>>> Yes. >>>>> >>>>>> The real issue is to not support the fixed flag. >>>>> I don't know if this is a real issue but >>>>> even it is, is it an issue in the scope of this testpmd command? >>>>> >>>>> right now we are first updating the command to set fixed speed flag, and >>>>> requesting PMDs to fix for it, I am suggesting not to update the command at all. >>>> I understand. But this change shows a broken behaviour. >>>> This is the intent of testpmd to show what works or not in PMDs. >>>> How hard is it to fix the PMDs in your opinion? >>>> >>> As far as I can see the the fixed link speed set is not supported in the PMD. >>> >>> It may be easy to add perhaps, I don't know, but is it really a "broken >>> behavior" to not have this support? >>> What defines that setting speed has to be "fixed speed", if this demand is not >>> there, should testpmd enforce it? >> I think a PMD should support both: fixed or not. >> >>> In mail thread we have talked that this testpmd command can get an extra >>> argument to define the speed fixed or not, this can be used to test fixed speed >>> by who wants to test/use fixed speed. >>> >>> I am for reverting this for the release, and adding a new version next release >>> with fixed speed argument, otherwise testpmd won't be used to set the speed for >>> some PMDs. >> OK > We could have an option in testpmd to test ETH_LINK_SPEED_FIXED. > > Revert applied. I agree that revert is the best option for the release, but not long term. Typical options are (in order):  1. Auto-negotiation of whatever port supports  2. Fixed exactly one speed with autoneg disabled  3. Auto-negotiation with limitations (and it is really the third option which makes sense if and only if interface allows to specify more than one speed to be negotiated) Right now testpmd supports (1) and (3) with limitation to only one speed to be negotiated. I think it is wrong. Andrew. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 4DEDEA0096 for ; Mon, 6 May 2019 10:10:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5FC882BBB; Mon, 6 May 2019 10:09:59 +0200 (CEST) Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 68BEBA49 for ; Mon, 6 May 2019 10:09:58 +0200 (CEST) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us1.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id CF831400056; Mon, 6 May 2019 08:09:56 +0000 (UTC) Received: from [192.168.38.17] (91.220.146.112) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 6 May 2019 09:09:50 +0100 To: Thomas Monjalon , Ferruh Yigit CC: , Wenzhuo Lu , Jingjing Wu , Bernard Iremonger , WenjieX A Li References: <20190424220309.84270-1-ferruh.yigit@intel.com> <2207858.tCSXyMIbcb@xps> <1873539.KBY3f8jFuF@xps> From: Andrew Rybchenko Message-ID: <34775dd7-e426-7464-02e9-8fa8730c0cfe@solarflare.com> Date: Mon, 6 May 2019 11:09:46 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <1873539.KBY3f8jFuF@xps> Content-Language: en-GB X-Originating-IP: [91.220.146.112] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24594.003 X-TM-AS-Result: No-17.569100-8.000000-10 X-TMASE-MatchedRID: 6lay9u8oTUMOwH4pD14DsPHkpkyUphL9lIvcAfYJnEoiQjSmlnf1z1YW GY8tbKb+MJ6tO4rthoaOraeluNwoM/6sIX4Dc0fpjNvYZHpO13fE44eLDReByy/h9VOvT6AgjUA h7+CgT2r1OzOB90vIEB6F6WRPswqhghwwq9GACbfidvCqqY53aTGZtPrBBPZrbJknz+3f3aVqE/ /WNEnqnP53ptaR0h9j4JuPmqTUWwvMHUInqqZ02qMVgdN9w+TCwx0jRRxcQfPb6Y+fnTZUL7f2y m4GBSKatDlF2olT49Yh6aPiL+eFcuHXfiMoZowZaDgPZBX/bMvqvccKLF+4pwwv1ZvdCH+FVM2p /cRDyjFic/5yraYWDlebGpjHs5mWxldSKOGXaXwZCVRU/aI9zMdtmwbxPlmOikvE2QGlUYTdKUS BW7I322+5ieh24ZYRX7bicKxRIU23sNbcHjySQQD6RpjqQGaFtVX2a1/ZsVhFLBDlbDbHvna8GZ ilaEG0n+2N+OWXg4yhi/5kmHH96AakFuf5Urf9nq/yhDbK6jp2DP20k2F8Nx6vZHhQhHhdp2vwS QWP4mE= X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--17.569100-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24594.003 X-MDID: 1557130197-7WizcMDUt_5R Content-Type: text/plain; charset="UTF-8"; format="flowed" Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH] Revert "app/testpmd: set fixed flag for exact link speed" 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" Message-ID: <20190506080946.C8YIckYTxreRSaRg8NbjsAsLbHsU-VeRAoJqbKECVX0@z> On 5/4/19 11:45 PM, Thomas Monjalon wrote: > 02/05/2019 22:27, Thomas Monjalon: >> 02/05/2019 20:31, Ferruh Yigit: >>> On 4/29/2019 10:52 AM, Thomas Monjalon wrote: >>>> 25/04/2019 17:27, Ferruh Yigit: >>>>> On 4/25/2019 2:29 PM, Thomas Monjalon wrote: >>>>>> 25/04/2019 13:47, Ferruh Yigit: >>>>>>> On 4/25/2019 9:19 AM, Thomas Monjalon wrote: >>>>>>>> 25/04/2019 00:03, Ferruh Yigit: >>>>>>>>> This reverts commit bdca79053b6aea504d02691d9319fa976062457f. >>>>>>>>> >>>>>>>>> Not all PMDs support the fixed link speed set, and link speed can be set >>>>>>>>> even with auto negotiation enabled. Reverting the patch to not break >>>>>>>>> existing usage. >>>>>>>> Which PMDs do not support this flag? >>>>>>>> Why not fixing the PMDs? >>>>>>>> >>>>>>> At least ixgbe and i40e is not supporting setting a fixed speed. >>>>>>> But I am not sure if this is something to fix, the command in testpmd is to set >>>>>>> the link speed, what is the problem with setting the link speed without >>>>>>> disabling the auto-negotiation? >>>>>> It means it will negotiate with only one speed proposed. >>>>> Yes. >>>>> >>>>>> The real issue is to not support the fixed flag. >>>>> I don't know if this is a real issue but >>>>> even it is, is it an issue in the scope of this testpmd command? >>>>> >>>>> right now we are first updating the command to set fixed speed flag, and >>>>> requesting PMDs to fix for it, I am suggesting not to update the command at all. >>>> I understand. But this change shows a broken behaviour. >>>> This is the intent of testpmd to show what works or not in PMDs. >>>> How hard is it to fix the PMDs in your opinion? >>>> >>> As far as I can see the the fixed link speed set is not supported in the PMD. >>> >>> It may be easy to add perhaps, I don't know, but is it really a "broken >>> behavior" to not have this support? >>> What defines that setting speed has to be "fixed speed", if this demand is not >>> there, should testpmd enforce it? >> I think a PMD should support both: fixed or not. >> >>> In mail thread we have talked that this testpmd command can get an extra >>> argument to define the speed fixed or not, this can be used to test fixed speed >>> by who wants to test/use fixed speed. >>> >>> I am for reverting this for the release, and adding a new version next release >>> with fixed speed argument, otherwise testpmd won't be used to set the speed for >>> some PMDs. >> OK > We could have an option in testpmd to test ETH_LINK_SPEED_FIXED. > > Revert applied. I agree that revert is the best option for the release, but not long term. Typical options are (in order):  1. Auto-negotiation of whatever port supports  2. Fixed exactly one speed with autoneg disabled  3. Auto-negotiation with limitations (and it is really the third option which makes sense if and only if interface allows to specify more than one speed to be negotiated) Right now testpmd supports (1) and (3) with limitation to only one speed to be negotiated. I think it is wrong. Andrew.