net/i40e: fix negative VEB index
authorChengwen Feng <fengchengwen@huawei.com>
Wed, 21 Apr 2021 02:33:13 +0000 (10:33 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 23 Apr 2021 08:59:22 +0000 (10:59 +0200)
commit47b6667abe533e8c61576aa4803f41daf988eb9b
treefe82d54eb805ef6588c2e75f5aeadb22a5f7ff76
parent3de9af2aaa680b33a9a597b8ec4d76163dee2029
net/i40e: fix negative VEB index

This patch adds check for negative VEB index when parsing VEB list.

Fixes: 79f2248219c0 ("net/i40e: add floating VEB option")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_ethdev.c