From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751446AbdDBVtY (ORCPT ); Sun, 2 Apr 2017 17:49:24 -0400 Received: from smtprelay0137.hostedemail.com ([216.40.44.137]:48177 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750953AbdDBVtX (ORCPT ); Sun, 2 Apr 2017 17:49:23 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:541:599:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2110:2198:2199:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4321:5007:9010:10004:10400:10848:11026:11232:11658:11914:12043:12296:12438:12740:12760:12895:13069:13311:13357:13439:14180:14659:14721:14819:21060:21080:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: kitty35_6e9d450028a5f X-Filterd-Recvd-Size: 1690 Message-ID: <1491169758.27353.50.camel@perches.com> Subject: Re: [PATCH] phy/ethtool: Add missing SPEED_ strings From: Joe Perches To: Andrew Lunn Cc: Florian Fainelli , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sun, 02 Apr 2017 14:49:18 -0700 In-Reply-To: <20170402214031.GH5189@lunn.ch> References: <7a10ea1f8a35c40fd721e15f3643c99d98cca7d8.1491168585.git.joe@perches.com> <20170402214031.GH5189@lunn.ch> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.3-0ubuntu0.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2017-04-02 at 23:40 +0200, Andrew Lunn wrote: > On Sun, Apr 02, 2017 at 02:30:06PM -0700, Joe Perches wrote: > > Add all the currently available SPEED_ strings. [] > > diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h [] > > @@ -1487,6 +1487,7 @@ enum ethtool_link_mode_bit_indices { > > */ > > > > /* The forced speed, in units of 1Mb. All values 0 to INT_MAX are legal. */ > > Hi Joe > > Given that this list is getting longer and longer, and the comment > that 0..INT_MAX are legal, is it time to replace this with something > dynamic? Hey Andrew. Probably not. INT_MAX in units of millions is likely large enough for quite awhile yet, maybe 2 decades or even more. If you feel ambitious, and remember ethtool.h and SPEED_ uses are a public API, write something up. cheers, Joe