[qca-ssdk] Fix range issue of VSI allocation
Change-Id: I8738c8e622c98a51c867bd237defb130bab11ecc
Signed-off-by: linchen <linchen@codeaurora.org>
diff --git a/src/ref/ref_vsi.c b/src/ref/ref_vsi.c
index 9e1ba62..1c7900d 100755
--- a/src/ref/ref_vsi.c
+++ b/src/ref/ref_vsi.c
@@ -371,7 +371,7 @@
REF_NULL_POINT_CHECK(vsi);
SSDK_DEBUG("requesting vsi\n");
- for( vsi_id = PPE_VSI_RESERVE_MAX+1; vsi_id < PPE_VSI_MAX; vsi_id++ )
+ for( vsi_id = PPE_VSI_RESERVE_MAX+1; vsi_id <= PPE_VSI_MAX; vsi_id++ )
{
if(ref_vsi_mapping[dev_id][vsi_id].valid == 0)
{