Skip to content

Commit

Permalink
[mlxlink] bug fix for wrong pnat in PPHCR reg
Browse files Browse the repository at this point in the history
Description:

MSTFlint port needed:
Tested OS:
Tested devices:
Tested flows:

Known gaps (with RM ticket):

Issue:
  • Loading branch information
HarelKarni authored and ogalbxela committed Nov 6, 2024
1 parent a5c3426 commit 2edb3b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mlxlink/modules/mlxlink_commander.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5243,9 +5243,10 @@ void MlxlinkCommander::handlePCIeErrInj()
bool MlxlinkCommander::isPPHCRSupported()
{
bool supported = true;
int pnat = _protoActive == ETH ? 0 : 1;
try
{
sendPrmReg(ACCESS_REG_PPHCR, GET, "local_port=1,pnat=1");
sendPrmReg(ACCESS_REG_PPHCR, GET, "local_port=1,pnat=%d", pnat);
}
catch (MlxRegException& exc)
{
Expand Down

0 comments on commit 2edb3b4

Please sign in to comment.