Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932997AbcLGUlz (ORCPT ); Wed, 7 Dec 2016 15:41:55 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:47259 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932956AbcLGUly (ORCPT ); Wed, 7 Dec 2016 15:41:54 -0500 From: Santosh Shilimkar Subject: Re: [net-next][PATCH v2 18/18] RDS: IB: add missing connection cache usage info To: David Miller References: <20161207.120536.1153607792891600896.davem@davemloft.net> <6159757e-c799-ee7f-0ee0-c9b3534a4237@oracle.com> <20161207.123642.1553217272033137094.davem@davemloft.net> Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Organization: Oracle Corporation Message-ID: <79b08015-4f9c-50cd-edc5-b89a15627fef@oracle.com> Date: Wed, 7 Dec 2016 12:42:10 -0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20161207.123642.1553217272033137094.davem@davemloft.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 905 Lines: 28 On 12/7/2016 9:36 AM, David Miller wrote: [...] > What does the newer tool do on an older kernel if it doesn't see > the fields? Does it check the size of the structure given back > to it, and conditionally handle the older vs. the newer layout? > > It must do this. > Right but the rds-tool doesn't handle it well and needs to be fixed before this or any additional change in rds-info structures. To handle the kernel struct size issues with its user copy, there is a provision to probe kernel struct len and then decide on layout buts its not used/implemented in tools. The parsing comment I made is also not completely accurate. For now, I will drop this patch and submit it once the tools code is fixed along with other used fields to handle both layouts. I should have checked the full compatibility matrix as you commented. Sorry for oversight. Thanks for your comments Dave. Regard, Santosh