net/virtio: fix incorrect cast of void *
[dpdk.git] / doc / guides / prog_guide / hash_lib.rst
index 466c482..7944640 100644 (file)
@@ -87,6 +87,14 @@ or stored in the hash table itself.
 The example hash tables in the L2/L3 Forwarding sample applications defines which port to forward a packet to based on a packet flow identified by the five-tuple lookup.
 However, this table could also be used for more sophisticated features and provide many other functions and actions that could be performed on the packets and flows.
 
+Multi-process support
+---------------------
+
+The hash library can be used in a multi-process environment, minding that only lookups are thread-safe.
+The only function that can only be used in single-process mode is rte_hash_set_cmp_func(), which sets up
+a custom compare function, which is assigned to a function pointer (therefore, it is not supported in
+multi-process mode).
+
 Implementation Details
 ----------------------
 
@@ -128,7 +136,7 @@ is carried out. If there is no match there either, key is considered not to be i
 
 Example of addition:
 
-Like lookup, the primary and secondary buckets are indentified. If there is an empty slot in
+Like lookup, the primary and secondary buckets are identified. If there is an empty slot in
 the primary bucket, primary and secondary signatures are stored in that slot, key and data (if any) are added to
 the second table and an index to the position in the second table is stored in the slot of the first table.
 If there is no space in the primary bucket, one of the entries on that bucket is pushed to its alternative location,