Received: by 10.223.176.5 with SMTP id f5csp634051wra; Fri, 9 Feb 2018 04:52:58 -0800 (PST) X-Google-Smtp-Source: AH8x226KnKLnJ7p0gnNjI1BzfMn4CcbpUDyyPAuVHS5KwNUAiWrCIiehny5oGsVWvWypAzajfQ49 X-Received: by 2002:a17:902:a984:: with SMTP id bh4-v6mr2461533plb.95.1518180778202; Fri, 09 Feb 2018 04:52:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518180778; cv=none; d=google.com; s=arc-20160816; b=MqAgHd42LqAXw+gOBuSwRHhSlYnq3UQlK1mNUpkp8yuXjaIXLBzQpVaS0bSR2dtSnb eK4Oewd5QYn00bEwb6gHEHCnTNSBpQ8X87hhvoF7bBrd/AGND62AyzMIZlxZgG/N0sSE 2cQtBkv4k+axhtMo77unEtHTcNxFNWAusUPPHPWbiyyHwzN4NK5JVI2ydpMgnqaxfWMx xW4pAOhm8yJ/onV+XcMpreqD3O/1INS5C26QO9D16SdoBUt2vxa78QLgV/dXkpNeq0Np VQhCVrE+BOX/ozk2z7LKz+Y5xZWaNYYGY9JPgrqPGMmY+HujVqD4VuJvkgQxjKdYL6PN 0HQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=NYPHmCwOrQJoknTyNRldHUloWaZ8rOYC7Pa996nZ8JM=; b=cW9GSjC4DvEWzbfnIJC5HdAsxsP5CJwmIr2RQrklnIsyp1lRwgT3hwmG8e4nAWSGfx 22bikwpngRJ+YHqujjsoCcZTTv5ejgrAEe2hRVI6I9pFPXdk/9NIjlwPRYyuvv8cvS40 27yT48PsAD+qAr9agMG4LhO/HaaloTVLkEqcf1a6XQu2xX44FNM8JmjlIMl7pbODlRJM xXYe2wIMWzdSoKR2Ftw8o2tR17PwAJ1S9EYNeVFWrHhhZ10Smsp/LBEWP/ZtPELAYMVu PFLksRLbfgjgJo3YOzvhquc2YuMIqUfq5cKcmCJhtt8dAFn0+v/DtLk0UIrRud552S+u jybA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18si1648907pfi.167.2018.02.09.04.52.43; Fri, 09 Feb 2018 04:52:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751151AbeBIMwE (ORCPT + 99 others); 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 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4AD473CE24; Fri, 9 Feb 2018 12:52:02 +0000 (UTC) Received: from [10.3.116.36] (ovpn-116-36.phx2.redhat.com [10.3.116.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 86F853818D; Fri, 9 Feb 2018 12:52:01 +0000 (UTC) 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 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 09 Feb 2018 12:52:02 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk 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.