longan register: PIE_CTRL
Details
- Name
- PIE_CTRL
- Offset
- a77c
- Feature
- PIE_TEMPLATE
Description
Configures the meaning of the TEMPLATE_FIELD_VLAN in the match templates
The I_ fields correspond to the templates of the IACL phase, the V_ fields to the VACL phase. For the IACL/VACL phases the TEMPLATE_FIELD_VLAN only is used in fixed SoC templates 0, 1, 2 and 4 (not in 3), so it can only be configured for those templates (e.g. I_TMPLTE2_IOTAG_SEL), there is no field for the 3rd template.
For the _IOTAG_SEL fields the meanings are:
- 0: VLAN is inner VLAN-ID
- 1: VLAN is outer VLAN-ID
- 2: VLAN is the Forwarding VID (RVID ?)
- 3: VLAN is the Source Forwarding VID (meaning unclear)
The _IOTAG_FMT fields can be used to define whether a VLAN-field in a template during the VACL phase matches the original (0) or modified (1, during IACL phase) VLAN-tag.
User-defined templates use either TEMPLATE_FIELD_ITAG or TEMPLATE_FIELD_OTAG to define the meaning of a field matching the vlan tag.
Fields
Name | LSB | Bits | Description |
---|---|---|---|
RESERVED | 26 | 6 |
|
V_TMPLTE0_IOTAG_FMT | 25 | 1 |
|
V_TMPLTE1_IOTAG_FMT | 24 | 1 |
|
V_TMPLTE2_IOTAG_FMT | 23 | 1 |
|
V_TMPLTE3_IOTAG_FMT | 22 | 1 |
|
V_TMPLTE4_IOTAG_FMT | 21 | 1 |
|
V_TMPLTE5_IOTAG_FMT | 20 | 1 |
|
V_TMPLTE6_IOTAG_FMT | 19 | 1 |
|
V_TMPLTE7_IOTAG_FMT | 18 | 1 |
|
V_TMPLTE8_IOTAG_FMT | 17 | 1 |
|
V_TMPLTE9_IOTAG_FMT | 16 | 1 |
|
V_TMPLTE0_IOTAG_SEL | 14 | 2 |
|
V_TMPLTE1_IOTAG_SEL | 12 | 2 |
|
V_TMPLTE2_IOTAG_SEL | 10 | 2 |
|
V_TMPLTE4_IOTAG_SEL | 8 | 2 |
|
I_TMPLTE0_IOTAG_SEL | 6 | 2 |
|
I_TMPLTE1_IOTAG_SEL | 4 | 2 |
|
I_TMPLTE2_IOTAG_SEL | 2 | 2 |
|
I_TMPLTE4_IOTAG_SEL | 0 | 2 |
|