[dpdk-dev] [PATCH v2] ivshmem: avoid infinite loop when concatenating adjacent segments

2016-04-07 Thread Thomas Monjalon
> This patch aligns the logic used to check for the presence of > adjacent segments in has_adjacent_segments() with the logic used > in cleanup_segments() when actually deciding to concatenate or > not a pair of segments. Additionally, adjacent segments are > no longer considered overlapping to

[dpdk-dev] [PATCH v2] ivshmem: avoid infinite loop when concatenating adjacent segments

2016-04-07 Thread Anatoly Burakov
This patch aligns the logic used to check for the presence of adjacent segments in has_adjacent_segments() with the logic used in cleanup_segments() when actually deciding to concatenate or not a pair of segments. Additionally, adjacent segments are no longer considered overlapping to avoid