validation: pktio: refactor error handling during sequence check
validation: pktio: refactor error handling during sequence check

The callers of this function expect TEST_SEQ_INVALID or the sequence
number. Although it is defined as (uint32_t)~0, which normally yields to
-1, it's cleaner to use the same macro.
Similar to that, it's unlikely that seq reaches UINT32_MAX, the function
should check for it.

Signed-off-by: Zoltan Kiss <045352d2c5c4a454a2aefff6fa815639b332fd1d@linaro.org>
Reviewed-by: Stuart Haslam <1fce01f364ef5298e64e07a42e08efeef153fa98@linaro.org>
Signed-off-by: Maxim Uvarov <db4d16e02ae2d7493db430203537da8b2e34f290@linaro.org>

rsalveti/odp,mike-holmes-linaro/odp,dkrot/odp,erachmi/odp,rsalveti/odp,kalray/odp-mppa,erachmi/odp,nmorey/odp,rsalveti/odp,mike-holmes-linaro/odp,dkrot/odp,nmorey/odp,kalray/odp-mppa,erachmi/odp,rsalveti/odp,nmorey/odp,kalray/odp-mppa,kalray/odp-mppa,kalray/odp-mppa,ravineet-singh/odp,erachmi/odp,ravineet-singh/odp,nmorey/odp,dkrot/odp,kalray/odp-mppa,dkrot/odp,ravineet-singh/odp,mike-holmes-linaro/odp,ravineet-singh/odp,kalray/odp-mppa,rsalveti/odp,mike-holmes-linaro/odp