From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751185AbeBIMwE (ORCPT ); Fri, 9 Feb 2018 07:52:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60598 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750961AbeBIMwC (ORCPT ); Fri, 9 Feb 2018 07:52:02 -0500 Subject: Re: net: thunder: change q_len's type to handle max ring size To: Sunil Kovvuri Cc: David Miller , Vadim.Lomovtsev@cavium.com, Robert Richter , Linux Netdev List , LKML , Sunil Goutham , LAKML References: <151811766130.10712.18293368656209944798.email-sent-by-dnelson@aqua> <20180208.153453.774785043965984772.davem@davemloft.net> <41824374-cdea-a3ef-0109-20565dbba43e@redhat.com> From: Dean Nelson Message-ID: Date: Fri, 9 Feb 2018 06:52:01 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/08/2018 10:29 PM, Sunil Kovvuri wrote: > On Fri, Feb 9, 2018 at 3:27 AM, Dean Nelson wrote: >> On 02/08/2018 02:34 PM, David Miller wrote: >>> >>> From: Dean Nelson >>> Date: >>> >>>> The Cavium thunder nicvf driver supports rx/tx rings of up to 65536 >>>> entries per. ... >>> >>> Another way to solve this could have been to encode that length >>> as "length - 1" >> >> >> True. I had pondered that, but felt that since changing q_len's type >> didn't add any length to the structure and that it was less impactful >> from a number-of-lines of code changed perspective, I'd opt for this >> route. >> >> Cavium, if you'd prefer this goes the route that Dave just mentioned, >> please let me know and I can make a new patch against what's been >> applied? > > Thanks for fixing this and i think the current patch is fine. You're welcome. And thanks for responding. So I'll leave things as they are.