Commit dbd13ce
committed
feat(net): extend metadata with PortIndex
* remove unused deprecated types
* define new type PortIndex for the purpose of identifying ports
generically in a driver-agnostic way. Drivers should be able to
build and understand the PortIndex type, and map it to
driver-specific types/entities. This type should be opaque and
not be used, except by ingress/egress for translation purposes.
* Add iport/oport PortIndex in metatdata so that the translation
from PortIndex - InterfaceIndex can be done at egress/ingress,
based on the configuration. We refrain from making such a
translation in drivers for the moment, because that would
require drivers have access to a translation table that may
change depending on the configuration.
This commit does not add any new functionality.
Signed-off-by: Fredi Raspall <[email protected]>1 parent fc55273 commit dbd13ce
2 files changed
+23
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
223 | 222 | | |
224 | 223 | | |
225 | 224 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | 225 | | |
233 | 226 | | |
234 | 227 | | |
| |||
237 | 230 | | |
238 | 231 | | |
239 | 232 | | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
249 | 238 | | |
250 | 239 | | |
251 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
26 | | - | |
27 | | - | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
140 | 144 | | |
141 | 145 | | |
142 | 146 | | |
| |||
0 commit comments