Commit a3f94ef
committed
[multicast] Wire softnpu backend to multicast management protocol
## Changes
This connect dendrite's AsicMulticastOps implementation for the softnpu
backend to softnpu's multicast management messages. Previously, all
four operations (mc_group_create, mc_group_destroy, mc_port_add,
mc_port_remove) returned OperationUnsupported or were silent no-ops,
as softnpu wasn't hooked up as of yet.
We wire each method through mgmt::write using the corresponding
ManagementRequest variant (MulticastGroupCreate, MulticastGroupRemove,
MulticastPortAdd, MulticastPortRemove).
Query methods (mc_domains, mc_port_count, mc_groups_count) now issue
a MulticastGroupList round-trip to softnpu for accurate state rather
than returning placeholder port counts.
We also update mgmt::read to return a typed ManagementResponse instead
of a raw String, and fix the existing RadixRequest caller to match.
## Deps
This PR points the softnpu-lib dependency to the zl/multicast branch which
provides the multicast management message types.1 parent e8a6811 commit a3f94ef
4 files changed
Lines changed: 88 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | | - | |
| 67 | + | |
| 68 | + | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
143 | 148 | | |
144 | 149 | | |
145 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
146 | 165 | | |
147 | 166 | | |
148 | 167 | | |
149 | 168 | | |
150 | 169 | | |
151 | | - | |
152 | | - | |
| 170 | + | |
| 171 | + | |
153 | 172 | | |
154 | 173 | | |
155 | | - | |
156 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
157 | 177 | | |
158 | 178 | | |
159 | 179 | | |
160 | 180 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
165 | 185 | | |
166 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
167 | 194 | | |
168 | 195 | | |
169 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
170 | 202 | | |
171 | 203 | | |
172 | 204 | | |
173 | | - | |
174 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
175 | 212 | | |
176 | 213 | | |
177 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
178 | 220 | | |
179 | 221 | | |
180 | 222 | | |
181 | 223 | | |
182 | | - | |
| 224 | + | |
183 | 225 | | |
184 | 226 | | |
185 | 227 | | |
| |||
354 | 396 | | |
355 | 397 | | |
356 | 398 | | |
357 | | - | |
| 399 | + | |
358 | 400 | | |
359 | 401 | | |
360 | | - | |
361 | | - | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
362 | 406 | | |
363 | 407 | | |
364 | 408 | | |
| |||
0 commit comments