[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170516065659.GB11965@vergenet.net>
Date: Tue, 16 May 2017 08:57:01 +0200
From: Simon Horman <simon.horman@...ronome.com>
To: Jakub Kicinski <jakub.kicinski@...ronome.com>
Cc: netdev@...r.kernel.org, oss-drivers@...ronome.com
Subject: Re: [oss-drivers] [PATCH net-next 9/9] nfp: eliminate an if
statement in calculation of completed frames
On Mon, May 15, 2017 at 05:55:23PM -0700, Jakub Kicinski wrote:
> Given that our rings are always a power of 2, we can simplify the
> calculation of number of completed TX descriptors by using masking
> instead of if statement based on whether the index have wrapped
> or not.
>
> Signed-off-by: Jakub Kicinski <jakub.kicinski@...ronome.com>
Reviewed-by: Simon Horman <simon.horman@...ronome.com>
Powered by blists - more mailing lists