app/testpmd: allocate FEC capability array dynamically
authorKarra Satwik <kaara.satwik@chelsio.com>
Thu, 24 Dec 2020 11:18:49 +0000 (16:48 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Jan 2021 02:30:14 +0000 (03:30 +0100)
commite53562d7abbce63943351f35f906c6e2fe2a0acc
tree37f2492f3a8ea2c4ef4b0bfa3b570cf3404dec60
parent62aafe035896c45b6af5c463f5a067b848295417
app/testpmd: allocate FEC capability array dynamically

Request the driver for number of entries in the FEC caps
array and then dynamically allocate the array.

Signed-off-by: Karra Satwik <kaara.satwik@chelsio.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Acked-by: Xiaoyun Li <xiaoyun.li@intel.com>
Acked-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/cmdline.c