X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fmlx4%2Fmlx4.h;h=982357716946390cb4d5ed498f199b4ddba6eb57;hb=8ac3591694e105d47968f5f29b8c19511f21e41c;hp=d4e56e879efd6a1b396d7a1065a77579820b8c58;hpb=35b2d13fd6fdcbd191f2a30d74648faeb1186c65;p=dpdk.git diff --git a/drivers/net/mlx4/mlx4.h b/drivers/net/mlx4/mlx4.h index d4e56e879e..9823577169 100644 --- a/drivers/net/mlx4/mlx4.h +++ b/drivers/net/mlx4/mlx4.h @@ -101,7 +101,7 @@ struct txq; struct rte_flow; /** - * Type of objet being allocated. + * Type of object being allocated. */ enum mlx4_verbs_alloc_type { MLX4_VERBS_ALLOC_TYPE_NONE, @@ -159,6 +159,7 @@ struct mlx4_priv { struct ibv_device_attr device_attr; /**< Device properties. */ struct ibv_pd *pd; /**< Protection Domain. */ /* Device properties. */ + unsigned int if_index; /**< Associated network device index */ uint16_t mtu; /**< Configured MTU. */ uint8_t port; /**< Physical port number. */ uint32_t started:1; /**< Device started, flows enabled. */ @@ -242,9 +243,9 @@ void mlx4_mp_req_start_rxtx(struct rte_eth_dev *dev); void mlx4_mp_req_stop_rxtx(struct rte_eth_dev *dev); int mlx4_mp_req_mr_create(struct rte_eth_dev *dev, uintptr_t addr); int mlx4_mp_req_verbs_cmd_fd(struct rte_eth_dev *dev); -void mlx4_mp_init_primary(void); +int mlx4_mp_init_primary(void); void mlx4_mp_uninit_primary(void); -void mlx4_mp_init_secondary(void); +int mlx4_mp_init_secondary(void); void mlx4_mp_uninit_secondary(void); #endif /* RTE_PMD_MLX4_H_ */