Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752096AbbLFGnU (ORCPT ); Sun, 6 Dec 2015 01:43:20 -0500 Received: from mail-by2on0105.outbound.protection.outlook.com ([207.46.100.105]:44160 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751023AbbLFGnR convert rfc822-to-8bit (ORCPT ); Sun, 6 Dec 2015 01:43:17 -0500 From: Yuval Mintz To: Salil Mehta , Salil Mehta , David Miller , "robh+dt@kernel.org" , "pawel.moll@arm.com" , "mark.rutland@arm.com" , "paul.gortmaker@windriver.com" , "ijc+devicetree@hellion.org.uk" , "galak@codeaurora.org" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "arnd@arndb.de" , "liguozhu@hisilicon.com" , "yisen.zhuang@huawei.com" , "dingtianhong@huawei.com" , "zhangfei.gao@linaro.org" , "huangdaode@hisilicon.com" , "kenneth-lee-2012@foxmail.com" , "xuwei5@hisilicon.com" , "lisheng011@huawei.com" , "devicetree@vger.kernel.org" , linux-kernel , "linux-arm-kernel@lists.infradead.org" , netdev , "linuxarm@huawei.com" Subject: RE: [PATCH V4 net-next 4/5] net:hns: Add support of ethtool TSO set option for Hip06 in HNS Thread-Topic: [PATCH V4 net-next 4/5] net:hns: Add support of ethtool TSO set option for Hip06 in HNS Thread-Index: AQHRI8q+/86f2jNjOEOKhpIJ6D1V/J6n5lJQgA5SI4CAB2DV8A== Date: Sun, 6 Dec 2015 06:43:12 +0000 Message-ID: References: <1448048952-146714-1-git-send-email-salil.mehta@huawei.com> <1448048952-146714-5-git-send-email-salil.mehta@huawei.com> <565DA6F5.7040804@gmail.com> In-Reply-To: <565DA6F5.7040804@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Yuval.Mintz@qlogic.com; x-originating-ip: [31.168.140.228] x-microsoft-exchange-diagnostics: 1;CO2PR11MB0085;5:mKm9XBsO84VRPnllg1c851IRXckQiHGp2PdCSKjDc88Zcfq9IKFPfBE1IAZSgg59tkbQz/p08sUBfHImyzdGcEqN987moDu5iWRa0It6dyrEg1weQLebuXMNa63g9oa0SlhtsA3b+QLzpGyFRajj7w==;24:0xVpEvldD208+sWqP2xLDJuz67GhhsAjBVrUwjhHPn8dafENQHy8iSlERwuGcpjuC1gZJgtHrit6JjZOmRPEgT7b5R/k/rlWb1/1hShjxCY=;20:YLf/2slOlY1aE3vtz4ZsxCOUN7MdqdlWgq8unHjnF7h6dAXO9p5WaubR+yzhZNjLYlsJn8DdPHRSQ5YOB9aAs/sbkPifkljBELIjVtU0X5SHOiKSayWYRz5tmPUhz7Azahn19/H9L4m/ynxOC44lnotqsLtQSw+vBPQjlq9vFOg= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CO2PR11MB0085; x-ld-processed: 0d68a1f9-1490-4d0e-8767-a87dab3ef2ba,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046);SRVR:CO2PR11MB0085;BCL:0;PCL:0;RULEID:;SRVR:CO2PR11MB0085; x-forefront-prvs: 0782EC617F x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(189002)(199003)(5001770100001)(189998001)(76576001)(87936001)(106356001)(105586002)(106116001)(122556002)(5002640100001)(2501003)(74316001)(92566002)(99286002)(40100003)(86362001)(93886004)(2201001)(5003600100002)(66066001)(11100500001)(1220700001)(5004730100002)(1096002)(586003)(50986999)(102836003)(101416001)(33656002)(3846002)(6116002)(2950100001)(77096005)(2900100001)(81156007)(97736004)(5001960100002)(5008740100001)(76176999)(54356999)(10400500002)(107886002)(921003)(1121003);DIR:OUT;SFP:1102;SCL:1;SRVR:CO2PR11MB0085;H:CO2PR11MB0088.namprd11.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: qlogic.com X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Dec 2015 06:43:12.6990 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0d68a1f9-1490-4d0e-8767-a87dab3ef2ba X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR11MB0085 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1199 Lines: 26 > > Isn't AE_VERSION_1 something fixed once you publish your features? > > If it can't be changed, why not simply remove the features from > > `hw_features' instead of having to implement this ndo? > There could be a case where the feature is supported by the SoC > and therefore it is already part of the 'hw_features' but it has been > say DISABLED or ENABLED by ethtool. In such a case, we need to > make sure we strike off that feature from the 'features' flag. > > Therefore, we need this leg I suppose. Let me know If I am missing > something here or there is a gap in my understanding. Look at ethtool_set_features() - if something isn't listed in hw_features, you're not support to be able to change it. If you can make a one-time decision when registering the netdevice whether this feature is supported by HW or not [assuming AE_VERSION_1 is available at that point and can't later change] than it's the better alternative. Cheers, Yuval -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/