From a91d51d8feefdd883c72bc11af79d12e95a7d105 Mon Sep 17 00:00:00 2001 From: Deepak Singhal <115033986+deepak-singhal0408@users.noreply.github.com> Date: Wed, 14 Feb 2024 18:08:26 -0800 Subject: [PATCH] Enable 8 Lanes Support in vslib (#1355) Enable 8 lanes support in vslib. This is needed to emulate HW SKUs which contains 8 lanes in their port_config.ini. Tested bring up of vs image with HWSKU containing 8 lanes in their port_config.ini/lanemap.ini files. --- vslib/LaneMapFileParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vslib/LaneMapFileParser.cpp b/vslib/LaneMapFileParser.cpp index 1d32719e9..6c9d03576 100644 --- a/vslib/LaneMapFileParser.cpp +++ b/vslib/LaneMapFileParser.cpp @@ -64,7 +64,7 @@ void LaneMapFileParser::parse( size_t n = tokens.size(); - if (n != 1 && n != 2 && n != 4) + if (n != 1 && n != 2 && n != 4 && n != 8) { SWSS_LOG_ERROR("invalid number of lanes (%zu) assigned to interface %s", n, ifname.c_str()); return;