util-ebpf: better error handling

pull/3952/head
Eric Leblond 6 years ago committed by Victor Julien
parent 2ffd3ad2b7
commit 3026e9a80d

@ -130,9 +130,10 @@ static void EBPFDeleteKey(int fd, void *key)
{ {
int ret = bpf_map_delete_elem(fd, key); int ret = bpf_map_delete_elem(fd, key);
if (ret < 0) { if (ret < 0) {
SCLogNotice("Unable to delete entry: %s (%d)", SCLogWarning(SC_ERR_SYSCALL,
strerror(errno), "Unable to delete entry: %s (%d)",
errno); strerror(errno),
errno);
} }
} }
@ -172,8 +173,6 @@ int EBPFGetMapFDByName(const char *iface, const char *name)
} }
} }
/* Fallback by getting pinned maps ? */
return -1; return -1;
} }

Loading…
Cancel
Save