Re: [PATCH net-next] bnxt_en: Fix allocation of zero statistics block size regression.

2019-08-24 Thread David Miller
From: Michael Chan Date: Fri, 23 Aug 2019 01:51:41 -0400 > Recent commit added logic to determine the appropriate statistics block > size to allocate and the size is stored in bp->hw_ring_stats_size. But > if the firmware spec is older than 1.6.0, it is 0 and not initialized. > This causes the a

Re: [PATCH net-next] bnxt_en: Fix allocation of zero statistics block size regression.

2019-08-23 Thread Jonathan Lemon
On 22 Aug 2019, at 22:51, Michael Chan wrote: Recent commit added logic to determine the appropriate statistics block size to allocate and the size is stored in bp->hw_ring_stats_size. But if the firmware spec is older than 1.6.0, it is 0 and not initialized. This causes the allocation to

[PATCH net-next] bnxt_en: Fix allocation of zero statistics block size regression.

2019-08-22 Thread Michael Chan
Recent commit added logic to determine the appropriate statistics block size to allocate and the size is stored in bp->hw_ring_stats_size. But if the firmware spec is older than 1.6.0, it is 0 and not initialized. This causes the allocation to fail with size 0 and bnxt_open() to abort. Fix it by