Re: [PATCH net-next 3/6] net/mlx5: Add DCBX firmware commands support

2016-09-01 Thread Huy Nguyen
> On Aug 31, 2016, at 6:24 AM, zhuyj wrote: > > + u32 in[MLX5_ST_SZ_DW(dcbx_param)]; > + > + memset(in, 0, sizeof(in)); > > can we replace the above with "u32 in[MLX5_ST_SZ_DW(dcbx_param)] = {0};"? > > > >> On Tue, Aug 30, 2016 at 7:29 PM, Saeed Mahameed

Re: [PATCH net-next 3/6] net/mlx5: Add DCBX firmware commands support

2016-08-31 Thread Saeed Mahameed
On Wed, Aug 31, 2016 at 2:24 PM, zhuyj wrote: > + u32 in[MLX5_ST_SZ_DW(dcbx_param)]; > + > + memset(in, 0, sizeof(in)); > > can we replace the above with "u32 in[MLX5_ST_SZ_DW(dcbx_param)] = {0};"? yes, we will change it in V2. Thanks.

Re: [PATCH net-next 3/6] net/mlx5: Add DCBX firmware commands support

2016-08-31 Thread zhuyj
+ u32 in[MLX5_ST_SZ_DW(dcbx_param)]; + + memset(in, 0, sizeof(in)); can we replace the above with "u32 in[MLX5_ST_SZ_DW(dcbx_param)] = {0};"? On Tue, Aug 30, 2016 at 7:29 PM, Saeed Mahameed wrote: > From: Huy Nguyen > > Add set/query

[PATCH net-next 3/6] net/mlx5: Add DCBX firmware commands support

2016-08-30 Thread Saeed Mahameed
From: Huy Nguyen Add set/query commands for DCBX_PARAM register Signed-off-by: Huy Nguyen Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/port.c | 22 ++ include/linux/mlx5/driver.h