You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[bufferorch] Handle NOT IMPLEMENTED status returned during set attr operation (sonic-net#1639)
Set operations for some attributes of buffer pool and buffer profile may not be implemented by some vendors and they return SAI_STATUS_ATTR_NOT_IMPLEMENTED_0. Handle that status in the code and ignore that task
Signed-off-by: Neetha John <nejo@microsoft.com>
if (SAI_STATUS_ATTR_NOT_IMPLEMENTED_0 == sai_status)
371
+
{
372
+
SWSS_LOG_NOTICE("Buffer pool SET for name:%s, sai object:%" PRIx64 ", not implemented. status:%d. Ignoring it", object_name.c_str(), sai_object, sai_status);
373
+
return task_process_status::task_ignore;
374
+
}
375
+
elseif (SAI_STATUS_SUCCESS != sai_status)
371
376
{
372
377
SWSS_LOG_ERROR("Failed to modify buffer pool, name:%s, sai object:%" PRIx64 ", status:%d", object_name.c_str(), sai_object, sai_status);
if (SAI_STATUS_ATTR_NOT_IMPLEMENTED_0 == sai_status)
562
+
{
563
+
SWSS_LOG_NOTICE("Buffer profile SET for name:%s, sai object:%" PRIx64 ", not implemented. status:%d. Ignoring it", object_name.c_str(), sai_object, sai_status);
564
+
return task_process_status::task_ignore;
565
+
}
566
+
elseif (SAI_STATUS_SUCCESS != sai_status)
557
567
{
558
568
SWSS_LOG_ERROR("Failed to modify buffer profile, name:%s, sai object:%" PRIx64 ", status:%d", object_name.c_str(), sai_object, sai_status);
0 commit comments