}
}
+typedef int (*OpFlowForKey)(struct flows_stats *flowstats, FlowKey *flow_key,
+ uint32_t hash, struct timespec *ctime,
+ uint64_t pkts_cnt, uint64_t bytes_cnt);
+
/**
* Bypassed flows cleaning for IPv4
*
struct flows_stats *flowstats,
struct timespec *ctime,
struct ebpf_timeout_config *tcfg,
- int (*EBPFOpFlowForKey)(struct flows_stats *flowstats, FlowKey *flow_key, uint32_t hash, struct timespec *ctime, uint64_t pkts_cnt, uint64_t bytes_cnt)
+ OpFlowForKey EBPFOpFlowForKey
)
{
int mapfd = EBPFGetMapFDByName(dev->dev, name);
struct flows_stats *flowstats,
struct timespec *ctime,
struct ebpf_timeout_config *tcfg,
- int (*EBPFOpFlowForKey)(struct flows_stats *flowstats, FlowKey *flow_key, uint32_t hash, struct timespec *ctime, uint64_t pkts_cnt, uint64_t bytes_cnt)
+ OpFlowForKey EBPFOpFlowForKey
)
{
int mapfd = EBPFGetMapFDByName(dev->dev, name);