Re: [PATCH] mlx4: Use kernel sizeof and alloc styles

2016-12-04 Thread Joe Perches
On Sun, 2016-12-04 at 12:58 -0800, Eric Dumazet wrote: > On Sun, 2016-12-04 at 12:11 -0800, Joe Perches wrote: > > Convert sizeof foo to sizeof(foo) and allocations with multiplications > > to the appropriate kcalloc/kmalloc_array styles. > > > > Signed-off-by: Joe Perches > > --- > > Gah. > >

Re: [PATCH] mlx4: Use kernel sizeof and alloc styles

2016-12-04 Thread Eric Dumazet
On Sun, 2016-12-04 at 12:11 -0800, Joe Perches wrote: > Convert sizeof foo to sizeof(foo) and allocations with multiplications > to the appropriate kcalloc/kmalloc_array styles. > > Signed-off-by: Joe Perches > --- Gah. This is one of the hotest NIC driver on linux at this moment, with XDP and

[PATCH] mlx4: Use kernel sizeof and alloc styles

2016-12-04 Thread Joe Perches
Convert sizeof foo to sizeof(foo) and allocations with multiplications to the appropriate kcalloc/kmalloc_array styles. Signed-off-by: Joe Perches --- drivers/net/ethernet/mellanox/mlx4/alloc.c | 6 +++--- drivers/net/ethernet/mellanox/mlx4/cmd.c | 8 drivers/net/eth