Skip to content

Commit

Permalink
Fix PFC Watchdog queue mask set (sonic-net#738)
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
  • Loading branch information
andriymoroz-mlnx authored and lguohan committed Dec 28, 2018
1 parent 0c07a80 commit 8c8779a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orchagent/pfcactionhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ PfcWdLossyHandler::PfcWdLossyHandler(sai_object_id_t port, sai_object_id_t queue
SWSS_LOG_ERROR("Failed to get PFC mask on port 0x%lx", port);
}

pfcMask = static_cast<uint8_t>(pfcMask & (1 << queueId));
pfcMask = static_cast<uint8_t>(pfcMask & ~(1 << queueId));

if (!gPortsOrch->setPortPfc(port, pfcMask))
{
Expand Down

0 comments on commit 8c8779a

Please sign in to comment.