summaryrefslogtreecommitdiff
path: root/common/include/tfe_packet_io.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/include/tfe_packet_io.h')
-rw-r--r--common/include/tfe_packet_io.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/common/include/tfe_packet_io.h b/common/include/tfe_packet_io.h
index 1795cc9..eaf1d74 100644
--- a/common/include/tfe_packet_io.h
+++ b/common/include/tfe_packet_io.h
@@ -26,7 +26,7 @@ struct tap_ctx
char *buff;
};
-struct acceptor_thread_ctx
+struct packet_io_thread_ctx
{
pthread_t tid;
int thread_index;
@@ -36,7 +36,7 @@ struct acceptor_thread_ctx
struct sf_metrics *sf_metrics;
struct packet_io *ref_io;
- struct global_metrics *ref_metrics;
+ struct packet_io_fs *ret_fs_state;
struct policy_enforcer *ref_enforcer;
struct tfe_proxy *ref_proxy;
struct acceptor_kni_v4 *ref_acceptor_ctx;
@@ -71,7 +71,7 @@ struct session_ctx
struct tfe_cmsg *cmsg;
- struct acceptor_thread_ctx *ref_thread_ctx;
+ struct packet_io_thread_ctx *ref_thread_ctx;
};
struct acceptor_kni_v4
@@ -85,8 +85,8 @@ struct acceptor_kni_v4
cpu_set_t coremask;
struct packet_io *io;
- struct global_metrics *metrics;
- struct acceptor_thread_ctx work_threads[TFE_THREAD_MAX];
+ struct packet_io_fs *packet_io_fs;
+ struct packet_io_thread_ctx work_threads[TFE_THREAD_MAX];
struct tfe_proxy *ref_proxy;
};
@@ -96,8 +96,8 @@ int is_enable_iouring(struct packet_io *handle);
void tfe_tap_ctx_destory(struct tap_ctx *handler);
struct tap_ctx *tfe_tap_ctx_create(void *ctx);
-int packet_io_thread_init(struct packet_io *handle, struct acceptor_thread_ctx *thread_ctx);
-void packet_io_thread_wait(struct packet_io *handle, struct acceptor_thread_ctx *thread_ctx, int timeout_ms);
+int packet_io_thread_init(struct packet_io *handle, struct packet_io_thread_ctx *thread_ctx);
+void packet_io_thread_wait(struct packet_io *handle, struct packet_io_thread_ctx *thread_ctx, int timeout_ms);
void packet_io_destory(struct packet_io *handle);
struct packet_io *packet_io_create(const char *profile, int thread_num, cpu_set_t *coremask);