2505824261
When using key compare function, it uses key length of the first argument to determine how long should be the keys that are compared. However, currently we are passing a key from the fragmentation table as first argument. the problem with this is that this key is potentially uninitialized (i.e. contains all zeroes, including key length). this leads to a nasty bug of comparing only the key id's and not keys themselves. Of course, a safer way would be to do RTE_MAX between key lengths, but since this compare is done per-packet, every cycle counts, so we just use the key whose length is guaranteed to be correct because it comes from an actual packet. Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com> |
||
---|---|---|
.. | ||
ip_frag_common.h | ||
ip_frag_internal.c | ||
Makefile | ||
rte_ip_frag_common.c | ||
rte_ip_frag.h | ||
rte_ipv4_fragmentation.c | ||
rte_ipv4_reassembly.c | ||
rte_ipv6_fragmentation.c | ||
rte_ipv6_reassembly.c |