aconf->xdp_filter_file = NULL;
} else {
#ifdef HAVE_PACKET_XDP
- SCLogInfo("af-packet will use '%s' as XDP filter file",
- ebpf_file);
aconf->ebpf_t_config.mode = AFP_MODE_XDP_BYPASS;
aconf->ebpf_t_config.flags |= EBPF_XDP_CODE;
aconf->xdp_filter_file = ebpf_file;
if (config->flags & EBPF_XDP_CODE && config->flags & EBPF_PINNED_MAPS) {
/* We try to get our flow table maps and if we have them we can simply return */
if (EBPFLoadPinnedMaps(livedev, config) == 0) {
+ SCLogInfo("Loaded pinned maps, will use already loaded eBPF filter");
return 1;
}
}
return -1;
}
+ SCLogInfo("Successfully loaded eBPF file '%s' on '%s'", path, iface);
*val = pfd;
return 0;
}