aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mlx4/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/mlx4/main.c')
-rw-r--r--drivers/net/mlx4/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/mlx4/main.c b/drivers/net/mlx4/main.c
index 560e1962212e..28f36b88de38 100644
--- a/drivers/net/mlx4/main.c
+++ b/drivers/net/mlx4/main.c
@@ -133,10 +133,12 @@ static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap)
133 dev->caps.num_ports = dev_cap->num_ports; 133 dev->caps.num_ports = dev_cap->num_ports;
134 for (i = 1; i <= dev->caps.num_ports; ++i) { 134 for (i = 1; i <= dev->caps.num_ports; ++i) {
135 dev->caps.vl_cap[i] = dev_cap->max_vl[i]; 135 dev->caps.vl_cap[i] = dev_cap->max_vl[i];
136 dev->caps.mtu_cap[i] = dev_cap->max_mtu[i]; 136 dev->caps.ib_mtu_cap[i] = dev_cap->ib_mtu[i];
137 dev->caps.gid_table_len[i] = dev_cap->max_gids[i]; 137 dev->caps.gid_table_len[i] = dev_cap->max_gids[i];
138 dev->caps.pkey_table_len[i] = dev_cap->max_pkeys[i]; 138 dev->caps.pkey_table_len[i] = dev_cap->max_pkeys[i];
139 dev->caps.port_width_cap[i] = dev_cap->max_port_width[i]; 139 dev->caps.port_width_cap[i] = dev_cap->max_port_width[i];
140 dev->caps.eth_mtu_cap[i] = dev_cap->eth_mtu[i];
141 dev->caps.def_mac[i] = dev_cap->def_mac[i];
140 } 142 }
141 143
142 dev->caps.num_uars = dev_cap->uar_size / PAGE_SIZE; 144 dev->caps.num_uars = dev_cap->uar_size / PAGE_SIZE;