app/testpmd: fix DDP package filesize detection
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Fri, 18 Aug 2017 14:17:36 +0000 (16:17 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 12 Oct 2017 00:36:58 +0000 (01:36 +0100)
commitce6e3f816d847153299e597467a0f104a493cb82
tree40b50c78c6e8ae744264ba5b7691fa6671710bbc
parent17d207d5eb9be9432bca0a322f6242a54b72b850
app/testpmd: fix DDP package filesize detection

This issue was about passing unsigned argument where should be signed
number.
In reality this is about wrong usage of fseek and ftell to determine
filesize.
This patch is compliant to suggestions from FIO19-C:
"Do not use fseek() and ftell() to compute the size of a regular file"

Coverity issue: 143454
Fixes: a92a5a2cbbff ("app/testpmd: add command for loading DDP")
Cc: stable@dpdk.org
Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
app/test-pmd/config.c