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
@@ -60,17 +62,21 @@ No new configuration or show commands introduced.
60
62
Covered in Functional requirements
61
63
62
64
## 1.4 Warm Boot Requirements
63
-
Upgrade to higher version should take care of installing one entry per MAC and delete the individual station tcam entries per SVI on TH/TH2 platforms
65
+
66
+
Upgrade to higher version should take care of installing one entry per MAC and delete the individual station tcam entries per SVI on TH/TH2/TH3 platforms
64
67
Upgrade to higher version should take care of moving to l2 table from myStationTcam for all SVI interfaces on TD3 platform.
65
68
66
69
# 2 Design
67
70
68
71
## 2.1 Use L2 table for inner mac termination for TD3 & TD4
69
72
TD4 already uses L2 table for inner mac termination. No change for TD4 platform.
70
73
In TD3, for all SVI interfaces, L2 table will be programmed instead of MyStationTcam.
71
-
Entry will be added with respective mac,vfi and flags as BCM_L2_STATIC. One entry per each SVI will be programmed.If 4k VRRP SVI interfaces are configured ,8k L2 table entries will be consumed.Rest of the cases,4k L2 tables entries will be consumed.
74
+
75
+
Entry will be added with respective mac,vfi and flags as BCM_L2_STATIC. One entry per each SVI will be programmed.
76
+
Note :- If 4k VRRP SVI interfaces are configured ,8k L2 table entries will be consumed.Rest of the cases 4k L2 table entries are consumed.
72
77
73
78
## 2.2 MyStationTcam lookup key modification
79
+
This is applicable for only TH/TH2/TH3 platforms.
74
80
Use only MAC as the key for MyStationTcam entries, this will give way to use only one MyStationTcam entry for all SVI interfaces, i.e, we could be able to scale to 4K L3 Interfaces. This change is for the following 2 MACs only.
75
81
1. System MAC
76
82
2. McLAG Gateway MAC
@@ -79,11 +85,12 @@ For SVI interfaces the lookup keys is only (DMAC)
79
85
For Phy interfaces / RouterPorts the lookup key is retained the same [Port Id + DMAC]
80
86
For LAG router interfaces the lookup key is retained the same [Trunk Id + DMAC]
81
87
82
-
## 2.2.1 MyStationTcam programming
88
+
89
+
### 2.2.1 MyStationTcam programming
83
90
A new data structure is added and is managed by the sai data manager.This data structure handles the list of Vlan interfaces associated with the given mac and the corresponding MyStationTcam hardware id.
84
91
When the first SVI interface configured with any of the above macs the corresponding tcam entry gets added. When the last SVI interface associated with the mac is deleted , the corresponding tcam entry will be deleted.
85
92
86
-
## 2.2.2 Routing behaviour differences
93
+
###2.2.2 Routing behaviour differences
87
94
With the key change to only (MAC) from (MAC,Vlan), if the SVI interfaces are configured each with one type of MAC. Station tcam will look like below now.
88
95
For example
89
96
1. System MAC - 3c2c992ed875
@@ -99,7 +106,9 @@ If a packet comes with (DA=MCLAG Gateway MAC, Vlan = !MCLAG Vlan). It will be su
99
106
If a packet comes with (DA=Any of the above two macs, Vlan=L2). It will be subjected to routing.
100
107
Inorder to address these cases, added below IFP drop rules during system bringup. Also, counters attached to each of the drop rules.
101
108
102
-
### 2.3 VSI Profile
109
+
110
+
111
+
## 2.3 VSI Profile
103
112
For each SVI interface there is a VSI profile maintained to classify the SVI interfaces.
104
113
2 VSI profile bits are consumed. One to identify the SAG MAC vlan and another to identify the MCLAG Gateway MAC vlan.
105
114
@@ -109,36 +118,73 @@ For each SVI interface there is a VSI profile maintained to classify the SVI int
109
118
#define _BRCM_SAI_VSI_ROUTER_MAC_L3_INTF (1<<3)------->MCLAG Gateway MAC VSI
110
119
#define _BRCM_SAI_MAX_VSI_PROFILE_BITS_LENGTH 4
111
120
112
-
### 2.4 IFP Drop rules
113
-
Below drop rules will be programmed only in TH/TH2 devices.
114
-
1. DA=System MAC Vlan = SAG VSI profile ---> Drop
115
-
2. DA=System MAC Vlan = MCLAG VSI profile ---> Drop
116
-
3. DA=MCLAG GWMAC Vlan = !MCLAG VSI profile ---> Drop
121
+
122
+
## 2.4 IFP Drop rules
123
+
Below drop rules will be programmed only in TH/TH2/TH3 devices.
124
+
1. DA=System MAC Vlan = SAG VSI profile ---> Drop
125
+
2. DA=System MAC Vlan = MCLAG VSI profile ---> Drop
126
+
3. DA=MCLAG GWMAC Vlan = !MCLAG VSI profile ---> Drop
117
127
4. DA=System MAC Vlan = L2 vlan ---> Drop
118
128
129
+
### 2.4.1 Debug commands to check the drop rule counters are below
130
+
debugsh>show system internal sai vlan ifp drop counters
131
+
debugsh>clear system internal vlan ifp drop counters
Upgrade scenario will be supported. It will be make before break. On upgrade to higher version, in TH/TH2 devices one entry per each of the MACs will be programmed first, followed by deletion of all the individual entries programmed per each SVI interface. Incase of TD3 device, l2 table entry will be added first and then corresponding myStationTcam entry will be deleted.
162
+
Upgrade scenario will be supported. It will be make before break. On upgrade to higher version, in TH/TH2/TH3 devices one entry per each of the MACs will be programmed first, followed by deletion of all the individual entries programmed per each SVI interface. Incase of TD3 device, l2 table entry will be added first and then corresponding myStationTcam entry will be deleted.
121
163
122
-
# 5 Unit Test
164
+
# 5 Unit Tests
123
165
Configure setup with base MCLAG config.
124
166
Configure SAG MAC,MCLAG Gateway MAC.
125
167
Configure SAG SVI interface, MCLAG Gateway MAC SVI interface and plain L3 SVI interface.
0 commit comments