commit | 83ebb9f82ec47903c7e3d08f4678c15206ddcd57 | [log] [tgz] |
---|---|---|
author | Patrick Rohr <prohr@google.com> | Fri Aug 12 13:54:20 2022 -0700 |
committer | Patrick Rohr <prohr@google.com> | Mon Aug 15 20:43:52 2022 -0700 |
tree | a988e69cc1d09f743b4a9125cab2d1535cf1eaf3 | |
parent | 655a024846284cf2e7ffc8199ddbfc6f97a172a0 [diff] |
ethernet: add early return for server mode interfaces Server mode interfaces can be handled earlier in addInterface, which avoids a bunch of objects from being created and makes the code more readable by removing the large if / else block. Test: atest EthernetManagerTest Change-Id: I23e68d3532e69f5486f4d4b0edb6eaac8145ed23