X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_efd%2Frte_efd.h;h=2ace008e81c2f6ca446cfbd56b555fbd5246bd7f;hb=7065dff68e9af69d3752ca3f514971d98fc26fbc;hp=1a1cb5bf6293f85f6f42d895099eef7454f61e35;hpb=56b6ef874f80891ff5fda833b92ff2cb7e8edfd7;p=dpdk.git diff --git a/lib/librte_efd/rte_efd.h b/lib/librte_efd/rte_efd.h index 1a1cb5bf62..2ace008e81 100644 --- a/lib/librte_efd/rte_efd.h +++ b/lib/librte_efd/rte_efd.h @@ -1,34 +1,5 @@ -/*- - * BSD LICENSE - * - * Copyright(c) 2016-2017 Intel Corporation. All rights reserved. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Intel Corporation nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2016-2017 Intel Corporation */ #ifndef _RTE_EFD_H_ @@ -40,6 +11,8 @@ * RTE EFD Table */ +#include + #ifdef __cplusplus extern "C" { #endif @@ -198,6 +171,8 @@ rte_efd_find_existing(const char *name); * Computes an updated table entry for the supplied key/value pair. * The update is then immediately applied to the provided table and * all socket-local copies of the chunks are updated. + * This operation is not multi-thread safe + * and should only be called one from thread. * * @param table * EFD table to reference @@ -227,6 +202,8 @@ rte_efd_update(struct rte_efd_table *table, unsigned int socket_id, /** * Removes any value currently associated with the specified key from the table + * This operation is not multi-thread safe + * and should only be called from one thread. * * @param table * EFD table to reference @@ -247,6 +224,7 @@ rte_efd_delete(struct rte_efd_table *table, unsigned int socket_id, /** * Looks up the value associated with a key + * This operation is multi-thread safe. * * NOTE: Lookups will *always* succeed - this is a property of * using a perfect hash table. @@ -270,6 +248,7 @@ rte_efd_lookup(const struct rte_efd_table *table, unsigned int socket_id, /** * Looks up the value associated with several keys. + * This operation is multi-thread safe. * * NOTE: Lookups will *always* succeed - this is a property of * using a perfect hash table.