eal/windows: add missing C++ include guards
[dpdk.git] / lib / bpf / bpf_load.c
index 2a3b901..0c4ac7b 100644 (file)
@@ -2,20 +2,12 @@
  * Copyright(c) 2018 Intel Corporation
  */
 
-#include <stdarg.h>
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
 #include <stdint.h>
-#include <unistd.h>
-#include <inttypes.h>
 
-#include <rte_common.h>
 #include <rte_log.h>
-#include <rte_debug.h>
-#include <rte_memory.h>
-#include <rte_eal.h>
-#include <rte_byteorder.h>
 #include <rte_errno.h>
 
 #include "bpf_impl.h"
@@ -130,21 +122,3 @@ rte_bpf_load(const struct rte_bpf_prm *prm)
 
        return bpf;
 }
-
-#ifndef RTE_LIBRTE_BPF_ELF
-struct rte_bpf *
-rte_bpf_elf_load(const struct rte_bpf_prm *prm, const char *fname,
-       const char *sname)
-{
-       if (prm == NULL || fname == NULL || sname == NULL) {
-               rte_errno = EINVAL;
-               return NULL;
-       }
-
-       RTE_BPF_LOG(ERR, "%s() is not supported with current config\n"
-               "rebuild with libelf installed\n",
-               __func__);
-       rte_errno = ENOTSUP;
-       return NULL;
-}
-#endif