[PATCH v2 65/68] efd: replace use of rte_memcpy
Stephen Hemminger <[email protected]>
| Newsgroups | org.dpdk.dev |
|---|---|
| Message-ID | <[email protected]> |
Copying small key with rte_memcpy is better done with memcpy which enables more analysis checks. Signed-off-by: Stephen Hemminger <[email protected]> --- lib/efd/rte_efd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/efd/rte_efd.c b/lib/efd/rte_efd.c index 4dfc0ec9a4..09b0b01d90 100644 --- a/lib/efd/rte_efd.c +++ b/lib/efd/rte_efd.c @@ -18,7 +18,6 @@ #include <rte_malloc.h> #include <rte_prefetch.h> #include <rte_branch_prediction.h> -#include <rte_memcpy.h> #include <rte_ring.h> #include <rte_jhash.h> #include <rte_hash_crc.h> @@ -1060,7 +1059,7 @@ efd_compute_update(struct rte_efd_table * const table, rte_prefetch0(new_k); new_idx = (uint32_t) ((uintptr_t) slot_id); - rte_memcpy(EFD_KEY(new_idx, table), key, table->key_len); + memcpy(EFD_KEY(new_idx, table), key, table->key_len); current_group->key_idx[current_group->num_rules] = new_idx; current_group->value[current_group->num_rules] = value; current_group->bin_id[current_group->num_rules] = *bin_id; -- 2.53.0