-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Inet] Split off per-implementation parts of InetInterface #13228
Conversation
PR #13228: Size comparison from d023a8b to 6aed2ff Increases above 0.2%:
Increases (15 builds for efr32, esp32, linux, mbed, p6, telink)
Full report (21 builds for efr32, esp32, k32w, linux, mbed, p6, qpg, telink)
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This stale pull request has been automatically closed. Thank you for your contributions. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
6aed2ff
to
72a7f77
Compare
#### Problem Part of project-chip#7715 _Virtualize System and Inet interfaces_ #### Change overview - Convert `InterfaceId`, which is relatively heavily used and stored, to be platform-independent. Platform-specific parts move to a namespace `PlaformNetworkInterface` (since this includes a type and compile-time constant, it can't practically be made an abstract class). - Convert `InterfaceIterator` and `InterfaceAddressIterator` to use abstract base classes, for mockability. At present, the concrete implementation is fixed at compile time under the original name. - Split the three implementations into separate files. #### Testing CI; no change to outside functionality.
72a7f77
to
ab0c41b
Compare
PR #13228: Size comparison from 4ac926a to ab0c41b Increases above 0.2%:
Increases (12 builds for efr32, linux, mbed, p6, telink)
Full report (19 builds for efr32, k32w, linux, mbed, p6, qpg, telink)
|
Holding off on submitting this because virtualizing |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This stale pull request has been automatically closed. Thank you for your contributions. |
Problem
Part of #7715 Virtualize System and Inet interfaces
Change overview
InterfaceId
, which is relatively heavily used and stored,to be platform-independent. Platform-specific parts move to a
namespace
PlaformNetworkInterface
(since this includes a type andcompile-time constant, it can't practically be made an abstract class).
InterfaceIterator
andInterfaceAddressIterator
to useabstract base classes, for mockability. At present, the concrete
implementation is fixed at compile time under the original name.
Testing
CI; no change to outside functionality.