diff options
Diffstat (limited to 'drivers/net/mlx4/mlx4.h')
-rw-r--r-- | drivers/net/mlx4/mlx4.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/mlx4/mlx4.h b/drivers/net/mlx4/mlx4.h index 23309f381ee3..fa431fad0eec 100644 --- a/drivers/net/mlx4/mlx4.h +++ b/drivers/net/mlx4/mlx4.h | |||
@@ -277,6 +277,9 @@ struct mlx4_vlan_table { | |||
277 | struct mlx4_port_info { | 277 | struct mlx4_port_info { |
278 | struct mlx4_dev *dev; | 278 | struct mlx4_dev *dev; |
279 | int port; | 279 | int port; |
280 | char dev_name[16]; | ||
281 | struct device_attribute port_attr; | ||
282 | enum mlx4_port_type tmp_type; | ||
280 | struct mlx4_mac_table mac_table; | 283 | struct mlx4_mac_table mac_table; |
281 | struct mlx4_vlan_table vlan_table; | 284 | struct mlx4_vlan_table vlan_table; |
282 | }; | 285 | }; |
@@ -310,6 +313,7 @@ struct mlx4_priv { | |||
310 | struct mlx4_uar driver_uar; | 313 | struct mlx4_uar driver_uar; |
311 | void __iomem *kar; | 314 | void __iomem *kar; |
312 | struct mlx4_port_info port[MLX4_MAX_PORTS + 1]; | 315 | struct mlx4_port_info port[MLX4_MAX_PORTS + 1]; |
316 | struct mutex port_mutex; | ||
313 | }; | 317 | }; |
314 | 318 | ||
315 | static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev) | 319 | static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev) |
@@ -383,4 +387,6 @@ void mlx4_handle_catas_err(struct mlx4_dev *dev); | |||
383 | void mlx4_init_mac_table(struct mlx4_dev *dev, struct mlx4_mac_table *table); | 387 | void mlx4_init_mac_table(struct mlx4_dev *dev, struct mlx4_mac_table *table); |
384 | void mlx4_init_vlan_table(struct mlx4_dev *dev, struct mlx4_vlan_table *table); | 388 | void mlx4_init_vlan_table(struct mlx4_dev *dev, struct mlx4_vlan_table *table); |
385 | 389 | ||
390 | int mlx4_SET_PORT(struct mlx4_dev *dev, u8 port); | ||
391 | |||
386 | #endif /* MLX4_H */ | 392 | #endif /* MLX4_H */ |