test/cpuflags: add flags for RISC-V
[dpdk.git] / lib / efd / rte_efd.c
index 5bf517f..bbc6fc5 100644 (file)
@@ -6,7 +6,6 @@
 #include <stdint.h>
 #include <inttypes.h>
 #include <errno.h>
-#include <stdarg.h>
 #include <sys/queue.h>
 
 #include <rte_string_fns.h>
 #include <rte_jhash.h>
 #include <rte_hash_crc.h>
 #include <rte_tailq.h>
-#include <rte_vect.h>
 
 #include "rte_efd.h"
 #if defined(RTE_ARCH_X86)
-#include "rte_efd_x86.h"
 #elif defined(RTE_ARCH_ARM64)
 #include "rte_efd_arm64.h"
 #endif
@@ -495,7 +492,7 @@ efd_search_hash(struct rte_efd_table * const table,
 
 struct rte_efd_table *
 rte_efd_create(const char *name, uint32_t max_num_rules, uint32_t key_len,
-               uint8_t online_cpu_socket_bitmask, uint8_t offline_cpu_socket)
+               uint64_t online_cpu_socket_bitmask, uint8_t offline_cpu_socket)
 {
        struct rte_efd_table *table = NULL;
        uint8_t *key_array = NULL;
@@ -1165,7 +1162,7 @@ rte_efd_update(struct rte_efd_table * const table, const unsigned int socket_id,
 {
        uint32_t chunk_id = 0, group_id = 0, bin_id = 0;
        uint8_t new_bin_choice = 0;
-       struct efd_online_group_entry entry;
+       struct efd_online_group_entry entry = {{0}};
 
        int status = efd_compute_update(table, socket_id, key, value,
                        &chunk_id, &group_id, &bin_id,