Skip to content

Commit

Permalink
Enable aclfield.data for SAI_DTEL_ATTR_INT_L4_DSCP
Browse files Browse the repository at this point in the history
Signed-off-by: Guohan Lu <gulv@microsoft.com>
  • Loading branch information
lguohan committed Oct 22, 2018
1 parent 9290950 commit 51e0d40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions orchagent/dtelorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ DTelOrch::DTelOrch(DBConnector *db, vector<string> tableNames, PortsOrch *portOr

attr.id = SAI_DTEL_ATTR_INT_L4_DSCP;

attr.value.aclfield.enable = true;
attr.value.aclfield.data.u8 = 0x11;
attr.value.aclfield.mask.u8 = 0x3f;

Expand Down Expand Up @@ -661,6 +662,8 @@ void DTelOrch::doDtelTableTask(Consumer &consumer)
goto dtel_table_continue;
}

attr.value.aclfield.enable = true;

status = sai_dtel_api->set_dtel_attribute(dtelId, &attr);
if (status != SAI_STATUS_SUCCESS)
{
Expand Down

0 comments on commit 51e0d40

Please sign in to comment.