diff options
author | Eran Ben Elisha <eranbe@mellanox.com> | 2017-08-28 16:38:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-30 00:58:32 +0300 |
commit | c73c8b1e47ca275388f774fd36560ab7e994e99e (patch) | |
tree | 4ba92665eef8e853354dc36a09a96e49fe40cd67 /drivers/net/ethernet/mellanox/mlx4/fw.h | |
parent | b74fd306ef2d48781e807dd506cca818bb83d749 (diff) | |
download | linux-c73c8b1e47ca275388f774fd36560ab7e994e99e.tar.xz |
net/mlx4_core: Dynamically allocate structs at mlx4_slave_cap
In order to avoid temporary large structs on the stack,
allocate them dynamically.
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Tal Alon <talal@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/fw.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/fw.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/fw.h b/drivers/net/ethernet/mellanox/mlx4/fw.h index b52ba01aa486..cd6399c76bfd 100644 --- a/drivers/net/ethernet/mellanox/mlx4/fw.h +++ b/drivers/net/ethernet/mellanox/mlx4/fw.h @@ -144,11 +144,7 @@ struct mlx4_func_cap { int max_eq; int reserved_eq; int mcg_quota; - u32 qp0_qkey; - u32 qp0_tunnel_qpn; - u32 qp0_proxy_qpn; - u32 qp1_tunnel_qpn; - u32 qp1_proxy_qpn; + struct mlx4_spec_qps spec_qps; u32 reserved_lkey; u8 physical_port; u8 flags0; |