[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200812.130606.1336382904304655382.davem@davemloft.net>
Date: Wed, 12 Aug 2020 13:06:06 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: ecree@...arflare.com
Cc: linux-net-drivers@...arflare.com, netdev@...r.kernel.org,
linux@...ck-us.net
Subject: Re: [PATCH net] sfc: fix ef100 design-param checking
From: Edward Cree <ecree@...arflare.com>
Date: Wed, 12 Aug 2020 10:32:49 +0100
> The handling of the RXQ/TXQ size granularity design-params had two
> problems: it had a 64-bit divide that didn't build on 32-bit platforms,
> and it could divide by zero if the NIC supplied 0 as the value of the
> design-param. Fix both by checking for 0 and for a granularity bigger
> than our min-size; if the granularity <= EFX_MIN_DMAQ_SIZE then it fits
> in 32 bits, so we can cast it to u32 for the divide.
>
> Reported-by: kernel test robot <lkp@...el.com>
> Signed-off-by: Edward Cree <ecree@...arflare.com>
Applied.
Powered by blists - more mailing lists