* Initialize IPC message. * * @param[in] dev * Pointer to Ethernet structure. * @param[out] msg * Pointer to message to fill in. * @param[in] type * Message type. */
| 27 | * Message type. |
| 28 | */ |
| 29 | static inline void |
| 30 | mp_init_msg(struct rte_eth_dev *dev, struct rte_mp_msg *msg, |
| 31 | enum mlx4_mp_req_type type) |
| 32 | { |
| 33 | struct mlx4_mp_param *param = (struct mlx4_mp_param *)msg->param; |
| 34 | |
| 35 | memset(msg, 0, sizeof(*msg)); |
| 36 | strlcpy(msg->name, MLX4_MP_NAME, sizeof(msg->name)); |
| 37 | msg->len_param = sizeof(*param); |
| 38 | param->type = type; |
| 39 | param->port_id = dev->data->port_id; |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * IPC message handler of primary process. |
no test coverage detected