mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
fdr: remove groups from struct FDR_Runtime_Args
This commit is contained in:
parent
42f23c2c91
commit
9346a9090e
@ -702,8 +702,8 @@ size_t prepareZones(const u8 *buf, size_t len, const u8 *hend,
|
|||||||
|
|
||||||
static never_inline
|
static never_inline
|
||||||
hwlm_error_t fdr_engine_exec(const struct FDR *fdr,
|
hwlm_error_t fdr_engine_exec(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
hwlmcb_rv_t control = *a->groups;
|
hwlm_group_t control) {
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
u32 last_match_id = INVALID_MATCH_ID;
|
u32 last_match_id = INVALID_MATCH_ID;
|
||||||
u64a domain_mask_adjusted = fdr->domainMask << 1;
|
u64a domain_mask_adjusted = fdr->domainMask << 1;
|
||||||
@ -768,7 +768,10 @@ hwlm_error_t fdr_engine_exec(const struct FDR *fdr,
|
|||||||
#define ONLY_AVX2(func) NULL
|
#define ONLY_AVX2(func) NULL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef hwlm_error_t (*FDRFUNCTYPE)(const struct FDR *fdr, const struct FDR_Runtime_Args *a);
|
typedef hwlm_error_t (*FDRFUNCTYPE)(const struct FDR *fdr,
|
||||||
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
static const FDRFUNCTYPE funcs[] = {
|
static const FDRFUNCTYPE funcs[] = {
|
||||||
fdr_engine_exec,
|
fdr_engine_exec,
|
||||||
ONLY_AVX2(fdr_exec_teddy_avx2_msks1_fast),
|
ONLY_AVX2(fdr_exec_teddy_avx2_msks1_fast),
|
||||||
@ -811,7 +814,6 @@ hwlm_error_t fdrExec(const struct FDR *fdr, const u8 *buf, size_t len,
|
|||||||
start,
|
start,
|
||||||
cb,
|
cb,
|
||||||
ctxt,
|
ctxt,
|
||||||
&groups,
|
|
||||||
nextFloodDetect(buf, len, FLOOD_BACKOFF_START),
|
nextFloodDetect(buf, len, FLOOD_BACKOFF_START),
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
@ -819,7 +821,7 @@ hwlm_error_t fdrExec(const struct FDR *fdr, const u8 *buf, size_t len,
|
|||||||
return HWLM_SUCCESS;
|
return HWLM_SUCCESS;
|
||||||
} else {
|
} else {
|
||||||
assert(funcs[fdr->engineID]);
|
assert(funcs[fdr->engineID]);
|
||||||
return funcs[fdr->engineID](fdr, &a);
|
return funcs[fdr->engineID](fdr, &a, groups);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -837,7 +839,6 @@ hwlm_error_t fdrExecStreaming(const struct FDR *fdr, const u8 *hbuf,
|
|||||||
start,
|
start,
|
||||||
cb,
|
cb,
|
||||||
ctxt,
|
ctxt,
|
||||||
&groups,
|
|
||||||
nextFloodDetect(buf, len, FLOOD_BACKOFF_START),
|
nextFloodDetect(buf, len, FLOOD_BACKOFF_START),
|
||||||
/* we are guaranteed to always have 16 initialised bytes at the end of
|
/* we are guaranteed to always have 16 initialised bytes at the end of
|
||||||
* the history buffer (they may be garbage). */
|
* the history buffer (they may be garbage). */
|
||||||
@ -850,7 +851,7 @@ hwlm_error_t fdrExecStreaming(const struct FDR *fdr, const u8 *hbuf,
|
|||||||
ret = HWLM_SUCCESS;
|
ret = HWLM_SUCCESS;
|
||||||
} else {
|
} else {
|
||||||
assert(funcs[fdr->engineID]);
|
assert(funcs[fdr->engineID]);
|
||||||
ret = funcs[fdr->engineID](fdr, &a);
|
ret = funcs[fdr->engineID](fdr, &a, groups);
|
||||||
}
|
}
|
||||||
|
|
||||||
fdrPackState(fdr, &a, stream_state);
|
fdrPackState(fdr, &a, stream_state);
|
||||||
|
@ -105,7 +105,6 @@ struct FDR_Runtime_Args {
|
|||||||
size_t start_offset;
|
size_t start_offset;
|
||||||
HWLMCallback cb;
|
HWLMCallback cb;
|
||||||
void *ctxt;
|
void *ctxt;
|
||||||
hwlm_group_t *groups;
|
|
||||||
const u8 *firstFloodDetect;
|
const u8 *firstFloodDetect;
|
||||||
const u64a histBytes;
|
const u64a histBytes;
|
||||||
};
|
};
|
||||||
|
@ -179,10 +179,10 @@ m128 prep_conf_teddy_m4(const m128 *maskBase, m128 *old_1, m128 *old_2,
|
|||||||
}
|
}
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_msks1(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_msks1(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control) {
|
||||||
const u8 *buf_end = a->buf + a->len;
|
const u8 *buf_end = a->buf + a->len;
|
||||||
const u8 *ptr = a->buf + a->start_offset;
|
const u8 *ptr = a->buf + a->start_offset;
|
||||||
hwlmcb_rv_t control = *a->groups;
|
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
const u8 *tryFloodDetect = a->firstFloodDetect;
|
const u8 *tryFloodDetect = a->firstFloodDetect;
|
||||||
u32 last_match = (u32)-1;
|
u32 last_match = (u32)-1;
|
||||||
@ -233,10 +233,10 @@ hwlm_error_t fdr_exec_teddy_msks1(const struct FDR *fdr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_msks1_pck(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_msks1_pck(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control) {
|
||||||
const u8 *buf_end = a->buf + a->len;
|
const u8 *buf_end = a->buf + a->len;
|
||||||
const u8 *ptr = a->buf + a->start_offset;
|
const u8 *ptr = a->buf + a->start_offset;
|
||||||
hwlmcb_rv_t control = *a->groups;
|
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
const u8 *tryFloodDetect = a->firstFloodDetect;
|
const u8 *tryFloodDetect = a->firstFloodDetect;
|
||||||
u32 last_match = (u32)-1;
|
u32 last_match = (u32)-1;
|
||||||
@ -287,10 +287,10 @@ hwlm_error_t fdr_exec_teddy_msks1_pck(const struct FDR *fdr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_msks2(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_msks2(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control) {
|
||||||
const u8 *buf_end = a->buf + a->len;
|
const u8 *buf_end = a->buf + a->len;
|
||||||
const u8 *ptr = a->buf + a->start_offset;
|
const u8 *ptr = a->buf + a->start_offset;
|
||||||
hwlmcb_rv_t control = *a->groups;
|
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
const u8 *tryFloodDetect = a->firstFloodDetect;
|
const u8 *tryFloodDetect = a->firstFloodDetect;
|
||||||
u32 last_match = (u32)-1;
|
u32 last_match = (u32)-1;
|
||||||
@ -345,10 +345,10 @@ hwlm_error_t fdr_exec_teddy_msks2(const struct FDR *fdr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_msks2_pck(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_msks2_pck(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control) {
|
||||||
const u8 *buf_end = a->buf + a->len;
|
const u8 *buf_end = a->buf + a->len;
|
||||||
const u8 *ptr = a->buf + a->start_offset;
|
const u8 *ptr = a->buf + a->start_offset;
|
||||||
hwlmcb_rv_t control = *a->groups;
|
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
const u8 *tryFloodDetect = a->firstFloodDetect;
|
const u8 *tryFloodDetect = a->firstFloodDetect;
|
||||||
u32 last_match = (u32)-1;
|
u32 last_match = (u32)-1;
|
||||||
@ -403,10 +403,10 @@ hwlm_error_t fdr_exec_teddy_msks2_pck(const struct FDR *fdr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_msks3(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_msks3(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control) {
|
||||||
const u8 *buf_end = a->buf + a->len;
|
const u8 *buf_end = a->buf + a->len;
|
||||||
const u8 *ptr = a->buf + a->start_offset;
|
const u8 *ptr = a->buf + a->start_offset;
|
||||||
hwlmcb_rv_t control = *a->groups;
|
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
const u8 *tryFloodDetect = a->firstFloodDetect;
|
const u8 *tryFloodDetect = a->firstFloodDetect;
|
||||||
u32 last_match = (u32)-1;
|
u32 last_match = (u32)-1;
|
||||||
@ -464,10 +464,10 @@ hwlm_error_t fdr_exec_teddy_msks3(const struct FDR *fdr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_msks3_pck(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_msks3_pck(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control) {
|
||||||
const u8 *buf_end = a->buf + a->len;
|
const u8 *buf_end = a->buf + a->len;
|
||||||
const u8 *ptr = a->buf + a->start_offset;
|
const u8 *ptr = a->buf + a->start_offset;
|
||||||
hwlmcb_rv_t control = *a->groups;
|
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
const u8 *tryFloodDetect = a->firstFloodDetect;
|
const u8 *tryFloodDetect = a->firstFloodDetect;
|
||||||
u32 last_match = (u32)-1;
|
u32 last_match = (u32)-1;
|
||||||
@ -525,10 +525,10 @@ hwlm_error_t fdr_exec_teddy_msks3_pck(const struct FDR *fdr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_msks4(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_msks4(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control) {
|
||||||
const u8 *buf_end = a->buf + a->len;
|
const u8 *buf_end = a->buf + a->len;
|
||||||
const u8 *ptr = a->buf + a->start_offset;
|
const u8 *ptr = a->buf + a->start_offset;
|
||||||
hwlmcb_rv_t control = *a->groups;
|
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
const u8 *tryFloodDetect = a->firstFloodDetect;
|
const u8 *tryFloodDetect = a->firstFloodDetect;
|
||||||
u32 last_match = (u32)-1;
|
u32 last_match = (u32)-1;
|
||||||
@ -587,10 +587,10 @@ hwlm_error_t fdr_exec_teddy_msks4(const struct FDR *fdr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_msks4_pck(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_msks4_pck(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control) {
|
||||||
const u8 *buf_end = a->buf + a->len;
|
const u8 *buf_end = a->buf + a->len;
|
||||||
const u8 *ptr = a->buf + a->start_offset;
|
const u8 *ptr = a->buf + a->start_offset;
|
||||||
hwlmcb_rv_t control = *a->groups;
|
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
const u8 *tryFloodDetect = a->firstFloodDetect;
|
const u8 *tryFloodDetect = a->firstFloodDetect;
|
||||||
u32 last_match = (u32)-1;
|
u32 last_match = (u32)-1;
|
||||||
|
@ -33,64 +33,85 @@
|
|||||||
#ifndef TEDDY_H_
|
#ifndef TEDDY_H_
|
||||||
#define TEDDY_H_
|
#define TEDDY_H_
|
||||||
|
|
||||||
|
#include "hwlm/hwlm.h" // for hwlm_group_t
|
||||||
|
|
||||||
struct FDR; // forward declaration from fdr_internal.h
|
struct FDR; // forward declaration from fdr_internal.h
|
||||||
struct FDR_Runtime_Args;
|
struct FDR_Runtime_Args;
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_msks1(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_msks1(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a);
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_msks1_pck(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_msks1_pck(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a);
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_msks2(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_msks2(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a);
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_msks2_pck(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_msks2_pck(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a);
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_msks3(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_msks3(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a);
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_msks3_pck(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_msks3_pck(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a);
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_msks4(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_msks4(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a);
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_msks4_pck(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_msks4_pck(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a);
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
#if defined(__AVX2__)
|
#if defined(__AVX2__)
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks1_fat(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks1_fat(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a);
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks1_pck_fat(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks1_pck_fat(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a);
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks2_fat(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks2_fat(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a);
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks2_pck_fat(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks2_pck_fat(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a);
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks3_fat(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks3_fat(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a);
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks3_pck_fat(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks3_pck_fat(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a);
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks4_fat(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks4_fat(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a);
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks4_pck_fat(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks4_pck_fat(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a);
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks1_fast(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks1_fast(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a);
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks1_pck_fast(const struct FDR *fdr,
|
hwlm_error_t
|
||||||
const struct FDR_Runtime_Args *a);
|
fdr_exec_teddy_avx2_msks1_pck_fast(const struct FDR *fdr,
|
||||||
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control);
|
||||||
|
|
||||||
#endif /* __AVX2__ */
|
#endif /* __AVX2__ */
|
||||||
|
|
||||||
|
@ -481,10 +481,10 @@ const u32 * getConfBase_avx2(const struct Teddy *teddy, u8 numMask) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks1_fat(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks1_fat(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control) {
|
||||||
const u8 *buf_end = a->buf + a->len;
|
const u8 *buf_end = a->buf + a->len;
|
||||||
const u8 *ptr = a->buf + a->start_offset;
|
const u8 *ptr = a->buf + a->start_offset;
|
||||||
hwlmcb_rv_t control = *a->groups;
|
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
const u8 *tryFloodDetect = a->firstFloodDetect;
|
const u8 *tryFloodDetect = a->firstFloodDetect;
|
||||||
u32 last_match = (u32)-1;
|
u32 last_match = (u32)-1;
|
||||||
@ -536,10 +536,10 @@ hwlm_error_t fdr_exec_teddy_avx2_msks1_fat(const struct FDR *fdr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks1_pck_fat(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks1_pck_fat(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control) {
|
||||||
const u8 *buf_end = a->buf + a->len;
|
const u8 *buf_end = a->buf + a->len;
|
||||||
const u8 *ptr = a->buf + a->start_offset;
|
const u8 *ptr = a->buf + a->start_offset;
|
||||||
hwlmcb_rv_t control = *a->groups;
|
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
const u8 *tryFloodDetect = a->firstFloodDetect;
|
const u8 *tryFloodDetect = a->firstFloodDetect;
|
||||||
u32 last_match = (u32)-1;
|
u32 last_match = (u32)-1;
|
||||||
@ -591,10 +591,10 @@ hwlm_error_t fdr_exec_teddy_avx2_msks1_pck_fat(const struct FDR *fdr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks2_fat(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks2_fat(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control) {
|
||||||
const u8 *buf_end = a->buf + a->len;
|
const u8 *buf_end = a->buf + a->len;
|
||||||
const u8 *ptr = a->buf + a->start_offset;
|
const u8 *ptr = a->buf + a->start_offset;
|
||||||
hwlmcb_rv_t control = *a->groups;
|
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
const u8 *tryFloodDetect = a->firstFloodDetect;
|
const u8 *tryFloodDetect = a->firstFloodDetect;
|
||||||
u32 last_match = (u32)-1;
|
u32 last_match = (u32)-1;
|
||||||
@ -649,10 +649,10 @@ hwlm_error_t fdr_exec_teddy_avx2_msks2_fat(const struct FDR *fdr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks2_pck_fat(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks2_pck_fat(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control) {
|
||||||
const u8 *buf_end = a->buf + a->len;
|
const u8 *buf_end = a->buf + a->len;
|
||||||
const u8 *ptr = a->buf + a->start_offset;
|
const u8 *ptr = a->buf + a->start_offset;
|
||||||
hwlmcb_rv_t control = *a->groups;
|
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
const u8 *tryFloodDetect = a->firstFloodDetect;
|
const u8 *tryFloodDetect = a->firstFloodDetect;
|
||||||
u32 last_match = (u32)-1;
|
u32 last_match = (u32)-1;
|
||||||
@ -707,10 +707,10 @@ hwlm_error_t fdr_exec_teddy_avx2_msks2_pck_fat(const struct FDR *fdr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks3_fat(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks3_fat(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control) {
|
||||||
const u8 *buf_end = a->buf + a->len;
|
const u8 *buf_end = a->buf + a->len;
|
||||||
const u8 *ptr = a->buf + a->start_offset;
|
const u8 *ptr = a->buf + a->start_offset;
|
||||||
hwlmcb_rv_t control = *a->groups;
|
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
const u8 *tryFloodDetect = a->firstFloodDetect;
|
const u8 *tryFloodDetect = a->firstFloodDetect;
|
||||||
u32 last_match = (u32)-1;
|
u32 last_match = (u32)-1;
|
||||||
@ -768,10 +768,10 @@ hwlm_error_t fdr_exec_teddy_avx2_msks3_fat(const struct FDR *fdr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks3_pck_fat(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks3_pck_fat(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control) {
|
||||||
const u8 *buf_end = a->buf + a->len;
|
const u8 *buf_end = a->buf + a->len;
|
||||||
const u8 *ptr = a->buf + a->start_offset;
|
const u8 *ptr = a->buf + a->start_offset;
|
||||||
hwlmcb_rv_t control = *a->groups;
|
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
const u8 *tryFloodDetect = a->firstFloodDetect;
|
const u8 *tryFloodDetect = a->firstFloodDetect;
|
||||||
u32 last_match = (u32)-1;
|
u32 last_match = (u32)-1;
|
||||||
@ -829,10 +829,10 @@ hwlm_error_t fdr_exec_teddy_avx2_msks3_pck_fat(const struct FDR *fdr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks4_fat(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks4_fat(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control) {
|
||||||
const u8 *buf_end = a->buf + a->len;
|
const u8 *buf_end = a->buf + a->len;
|
||||||
const u8 *ptr = a->buf + a->start_offset;
|
const u8 *ptr = a->buf + a->start_offset;
|
||||||
hwlmcb_rv_t control = *a->groups;
|
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
const u8 *tryFloodDetect = a->firstFloodDetect;
|
const u8 *tryFloodDetect = a->firstFloodDetect;
|
||||||
u32 last_match = (u32)-1;
|
u32 last_match = (u32)-1;
|
||||||
@ -894,10 +894,10 @@ hwlm_error_t fdr_exec_teddy_avx2_msks4_fat(const struct FDR *fdr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks4_pck_fat(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks4_pck_fat(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control) {
|
||||||
const u8 *buf_end = a->buf + a->len;
|
const u8 *buf_end = a->buf + a->len;
|
||||||
const u8 *ptr = a->buf + a->start_offset;
|
const u8 *ptr = a->buf + a->start_offset;
|
||||||
hwlmcb_rv_t control = *a->groups;
|
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
const u8 *tryFloodDetect = a->firstFloodDetect;
|
const u8 *tryFloodDetect = a->firstFloodDetect;
|
||||||
u32 last_match = (u32)-1;
|
u32 last_match = (u32)-1;
|
||||||
@ -959,10 +959,10 @@ hwlm_error_t fdr_exec_teddy_avx2_msks4_pck_fat(const struct FDR *fdr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks1_fast(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks1_fast(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control) {
|
||||||
const u8 *buf_end = a->buf + a->len;
|
const u8 *buf_end = a->buf + a->len;
|
||||||
const u8 *ptr = a->buf + a->start_offset;
|
const u8 *ptr = a->buf + a->start_offset;
|
||||||
hwlmcb_rv_t control = *a->groups;
|
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
const u8 *tryFloodDetect = a->firstFloodDetect;
|
const u8 *tryFloodDetect = a->firstFloodDetect;
|
||||||
u32 last_match = (u32)-1;
|
u32 last_match = (u32)-1;
|
||||||
@ -1028,10 +1028,10 @@ hwlm_error_t fdr_exec_teddy_avx2_msks1_fast(const struct FDR *fdr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
hwlm_error_t fdr_exec_teddy_avx2_msks1_pck_fast(const struct FDR *fdr,
|
hwlm_error_t fdr_exec_teddy_avx2_msks1_pck_fast(const struct FDR *fdr,
|
||||||
const struct FDR_Runtime_Args *a) {
|
const struct FDR_Runtime_Args *a,
|
||||||
|
hwlm_group_t control) {
|
||||||
const u8 *buf_end = a->buf + a->len;
|
const u8 *buf_end = a->buf + a->len;
|
||||||
const u8 *ptr = a->buf + a->start_offset;
|
const u8 *ptr = a->buf + a->start_offset;
|
||||||
hwlmcb_rv_t control = *a->groups;
|
|
||||||
u32 floodBackoff = FLOOD_BACKOFF_START;
|
u32 floodBackoff = FLOOD_BACKOFF_START;
|
||||||
const u8 *tryFloodDetect = a->firstFloodDetect;
|
const u8 *tryFloodDetect = a->firstFloodDetect;
|
||||||
u32 last_match = (u32)-1;
|
u32 last_match = (u32)-1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user