app/testpmd: replace hardcoded min mbuf number with macro
authorMingxia Liu <mingxia.liu@intel.com>
Thu, 31 Mar 2022 02:33:33 +0000 (02:33 +0000)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Fri, 20 May 2022 21:59:35 +0000 (23:59 +0200)
commit57d91f5b8dc589226a307560bd36181ac7a6b7df
tree88333ddc8d73c594d60743d7b641d7998ee21537
parent67ead3fa8c3a6775b2b0c9888afd08bdf02c4d9b
app/testpmd: replace hardcoded min mbuf number with macro

Add macro MIN_TOTAL_NUM_MBUFS (1024) to indicate
what the value of total-num-mbufs should bigger than.

Fixes: c87988187fdb ("app/testpmd: add --total-num-mbufs option")
Cc: stable@dpdk.org
Signed-off-by: Mingxia Liu <mingxia.liu@intel.com>
Acked-by: Yuying Zhang <yuying.zhang@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
app/test-pmd/parameters.c
app/test-pmd/testpmd.h