修改packet_io API的函数命名
This commit is contained in:
@@ -109,7 +109,7 @@ inline struct gtest_frame *gtest_frame_new(const char *json_file, const char *de
|
||||
thread_ctx->ref_sce_ctx = sce_ctx;
|
||||
thread_ctx->session_table_need_reset = 0;
|
||||
|
||||
EXPECT_TRUE(packet_io_thread_init(sce_ctx->io, thread_ctx) == 0);
|
||||
EXPECT_TRUE(packet_io_init(sce_ctx->io, thread_ctx) == 0);
|
||||
|
||||
instance->sce_ctx = sce_ctx;
|
||||
instance->json_file = strdup(json_file);
|
||||
@@ -159,11 +159,11 @@ inline void gtest_frame_run(struct gtest_frame *instance, marsio_buff_t *tx_mbuf
|
||||
|
||||
if (is_poll_nf)
|
||||
{
|
||||
EXPECT_TRUE(packet_io_thread_polling_nf(sce_ctx->io, thread_ctx) == 1);
|
||||
EXPECT_TRUE(packet_io_polling_nf(sce_ctx->io, thread_ctx) == 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
EXPECT_TRUE(packet_io_thread_polling_endpoint_l3(sce_ctx->io, thread_ctx) == 1);
|
||||
EXPECT_TRUE(packet_io_polling_endpoint_l3(sce_ctx->io, thread_ctx) == 1);
|
||||
}
|
||||
|
||||
rx_mbuf = marsio_get_send_mbuff(mr_instance);
|
||||
|
||||
Reference in New Issue
Block a user