Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app/testpmd: fix segment number check
[ upstream commit 3f47c01 ] The --txpkts command line parameter was silently ignored due to application was unable to check the Tx queue ring sizes for non configured ports. The "set txpkts <len0[,len1]*>" was also rejected if there was some stopped or /unconfigured port. This provides the following: - If fails to get ring size from the port, this can be because port is not initialized yet, ignore the check and just be sure segment size won't cause an out of bound access. The port descriptor check will be done during Tx setup. - The capability to send single packet is supposed to be very basic and always supported, the setting segment number to 1 is always allowed, no check performed - At the moment of Tx queue setup the descriptor number is checked against configured segment number Bugzilla ID: 584 Fixes: 8dae835 ("app/testpmd: remove restriction on Tx segments set") Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Xiaoyun Li <xiaoyun.li@intel.com>
- Loading branch information