app/testpmd: fix bitmap of link speeds when force speed
authorHuisong Li <lihuisong@huawei.com>
Wed, 14 Apr 2021 03:02:05 +0000 (11:02 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 14 Apr 2021 11:54:44 +0000 (13:54 +0200)
commit312312e928c71cb6b45aeaab2b421d059897dd07
treee505e9ada35683f501d4d228138cb0d30c056311
parentbf085dcba16c350df7ac411ca63af72b880e1188
app/testpmd: fix bitmap of link speeds when force speed

Currently, when the user sets force link speed through 'link_speeds',
bit(0) of 'link_speeds' is not set to 1(ETH_LINK_SPEED_FIXED),
which conflicts with the definition.

Fixes: 88fbedcd5e5a ("app/testpmd: move speed and duplex parsing in a function")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
app/test-pmd/cmdline.c