]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
util-ebpf: better error handling
authorEric Leblond <eric@regit.org>
Sun, 17 Mar 2019 20:11:25 +0000 (21:11 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 18 Jun 2019 05:07:02 +0000 (07:07 +0200)
src/util-ebpf.c

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