Don't try to bypass the flow if the flow table is unknown.
Also continue after error message if ever XDP was not correctly
setup.
if (ret != 0) {
SCLogWarning(SC_ERR_INVALID_VALUE,
"Error when setting up XDP");
- /* FIXME error handling */
}
}
#else
*/
static int AFPInsertHalfFlow(int mapd, void *key, uint64_t inittime)
{
- /* FIXME error handling */
unsigned int nr_cpus = UtilCpuGetNumProcessorsConfigured();
struct pair value[nr_cpus];
unsigned int i;
+
+ if (mapd == -1) {
+ return 0;
+ }
+
for (i = 0; i < nr_cpus; i++) {
value[i].time = inittime;
value[i].packets = 0;