Skip to content

Commit 8c8779a

Browse files
andriymoroz-mlnxlguohan
authored andcommitted
Fix PFC Watchdog queue mask set (sonic-net#738)
Signed-off-by: Andriy Moroz <[email protected]>
1 parent 0c07a80 commit 8c8779a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orchagent/pfcactionhandler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ PfcWdLossyHandler::PfcWdLossyHandler(sai_object_id_t port, sai_object_id_t queue
328328
SWSS_LOG_ERROR("Failed to get PFC mask on port 0x%lx", port);
329329
}
330330

331-
pfcMask = static_cast<uint8_t>(pfcMask & (1 << queueId));
331+
pfcMask = static_cast<uint8_t>(pfcMask & ~(1 << queueId));
332332

333333
if (!gPortsOrch->setPortPfc(port, pfcMask))
334334
{

0 commit comments

Comments
 (0)