P4G_IP_DS_MASK

# set
<module-index>/<port-index> P4G_IP_DS_MASK [<group_index>] <ds_mask>

# get
<module-index>/<port-index> P4G_IP_DS_MASK [<group_index>] ?

Description

Specify a bit mask to be applied to the DS field. If the fixed value is fixed, the current (calculated) value is curr, and the mask is mask, then the effective DS will be calculated as follows: (fixed AND (NOT mask)) OR (curr AND mask) or in C syntax (fixed & (~mask)) | (curr & mask)

Actions

set, get

Parameters

ds_mask: hex, the DS mask to be used.

Example

# set
input:  0/1 P4G_IP_DS_MASK [0] 0x0F
output: <OK>

# get
input:  0/1 P4G_IP_DS_MASK [0] ?
output: 0/1 P4G_IP_DS_MASK [0] 0x0F