summaryrefslogtreecommitdiff
path: root/app/test-pmd
diff options
context:
space:
mode:
authorIntel <intel.com>2013-03-12 12:03:00 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-07-25 16:07:51 +0200
commitce8f00eaaac555aadea68294b716b57e7cb1b998 (patch)
tree8343194b27dd8f05e2e02b0620cc543823b09214 /app/test-pmd
parent1b62bb7d7d1113cd1ba33103e14d61f79237e285 (diff)
downloaddpdk-ce8f00eaaac555aadea68294b716b57e7cb1b998.zip
dpdk-ce8f00eaaac555aadea68294b716b57e7cb1b998.tar.gz
dpdk-ce8f00eaaac555aadea68294b716b57e7cb1b998.tar.xz
app: various changes
Signed-off-by: Intel
Diffstat (limited to 'app/test-pmd')
-rw-r--r--app/test-pmd/cmdline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index 8eb15bd..880d4af 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -1532,7 +1532,7 @@ cmd_vlan_offload_parsed(void *parsed_result,
str[i]='\0';
tmp = strtoul(str, NULL, 0);
/* If port_id greater that what portid_t can represent, return */
- if(tmp > 255)
+ if(tmp >= RTE_MAX_ETHPORTS)
return;
port_id = (portid_t)tmp;