TSG-10708 KNI使用io_uring替换read/write以实现I/O加速

* support iouring: 按需动态分配内存
This commit is contained in:
luwenpeng
2022-05-31 17:38:00 +08:00
parent f7ea81dad8
commit 990d8ae173
11 changed files with 441 additions and 39 deletions

View File

@@ -7,6 +7,7 @@
#include <tsg/tsg_statistic.h>
#include "tfe_mgr.h"
#include <tsg/tsg_label.h>
#include "kni_iouring.h"
#define BURST_MAX 1
#define CALLER_SAPP 0
@@ -196,6 +197,9 @@ struct per_thread_handle{
MESA_htable_handle tuple2stream_htable;
MESA_htable_handle traceid2sslinfo_htable;
struct expiry_dablooms_handle *dabloom_handle;
#if (SUPPORT_LIBURING)
struct io_uring_handle *iouring_handle;
#endif
};
struct tuple2stream_htable_value{
@@ -211,6 +215,7 @@ struct security_policy_shunt_tsg_diagnose{
};
struct kni_handle{
struct io_uring_conf iouring_conf;
struct kni_marsio_handle *marsio_handle;
struct bpf_ctx *tap_bpf_ctx;
struct kni_maat_handle *maat_handle;