diff options
| author | Qiuwen Lu <[email protected]> | 2017-03-22 14:41:35 +0800 |
|---|---|---|
| committer | Qiuwen Lu <[email protected]> | 2017-03-22 14:41:35 +0800 |
| commit | 83de81b8f4b4fe4faabc23517efa791430f65ac2 (patch) | |
| tree | 38f628e646ab9067bcdaa66453ca0b3170fbc439 /include/external | |
| parent | 6e1fe7e6803a50f9a432c489f4d1c3356fce8e9e (diff) | |
增加线程绑定功能。修正虚设备销毁部分实现。修正数据面处理流程的Bug。
Diffstat (limited to 'include/external')
| -rw-r--r-- | include/external/marsio.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/external/marsio.h b/include/external/marsio.h index 7fd9ecc..adf1f56 100644 --- a/include/external/marsio.h +++ b/include/external/marsio.h @@ -32,6 +32,7 @@ extern "C" { #include <stdint.h> #include <stddef.h> +#include <netinet/in.h> typedef uint32_t device_id_t; typedef uint32_t port_id_t; @@ -62,6 +63,9 @@ int marsio_send_burst(struct mr_sendpath * sendpath, queue_id_t qid, marsio_buf int marsio_udp_header_construct(marsio_buff_t * buff, uint16_t s_port, uint16_t d_port); int marsio_ipv4_header_construct(marsio_buff_t * buff, uint32_t s_ip, uint32_t d_ip, uint8_t proto); +struct mr_sendpath * marsio_sendpath_create_by_droute(struct mr_vdev * dest_device, struct in_addr addr); +struct mr_sendpath * marsio_sendpath_create_by_vdev(struct mr_vdev * dest_device); + //simply get control zone data ptr. void *marsio_buff_ctrlzone(marsio_buff_t *m, uint8_t id); |
