reorder: allow random number as starting point
authorSimon Kagstrom <simon.kagstrom@netinsight.net>
Wed, 20 May 2015 11:02:05 +0000 (13:02 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 22 Jun 2015 20:20:12 +0000 (22:20 +0200)
commit7e1fa1de8a536c68f6af76cf8d222a9e948c93ba
tree350ca505055f624a42c4152b4355f8fbccc3a233
parent1129992baa61d72c5d9820b1b2aa615d1bbf523b
reorder: allow random number as starting point

We use sequence numbers from a generator which has potentially started
long before the receiver. Therefore, the first number will typically
be > 0. The rte_reorder code will not work in this case, since the
packet is seen as outside of the buffer.

The patch instead records the first sequence number inserted as the
starting point.

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Signed-off-by: Johan Faltstrom <johan.faltstrom@netinsight.net>
Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
lib/librte_reorder/rte_reorder.c