Created
August 9, 2019 23:22
-
-
Save tehnerd/5612ea92b50814e49c4a0d9d51c4cd3a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| clang-format from clang-8.0.0 w/ default params | |
| tehnerd@devubuntu:~/katran/katran/lib$ ../../deps/clang/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clang-format -i KatranLb.cpp | |
| on top of | |
| Author: udippant <[email protected]> | |
| Date: Fri Aug 9 15:15:47 2019 -0700 | |
| sync: change internal representation of ip addresses for reals from string to binary | |
| has around 115 changes: | |
| tehnerd@devubuntu:~/katran/katran/lib$ git diff | grep "^+" | wc -l | |
| 115 | |
| example | |
| diff --git a/katran/lib/KatranLb.cpp b/katran/lib/KatranLb.cpp | |
| index 82892c8..c4d048b 100644 | |
| --- a/katran/lib/KatranLb.cpp | |
| +++ b/katran/lib/KatranLb.cpp | |
| @@ -40,14 +40,10 @@ constexpr int kError = -1; | |
| constexpr uint32_t kMaxQuicId = 65535; // 2^16-1 | |
| } // namespace | |
| -KatranLb::KatranLb(const KatranConfig& config) | |
| - : config_(config), | |
| - bpfAdapter_(!config.testing), | |
| - ctlValues_(kCtlMapSize), | |
| - standalone_(true), | |
| - forwardingCores_(config.forwardingCores), | |
| - numaNodes_(config.numaNodes), | |
| - lruMapsFd_(kMaxForwardingCores) { | |
| +KatranLb::KatranLb(const KatranConfig &config) | |
| + : config_(config), bpfAdapter_(!config.testing), ctlValues_(kCtlMapSize), | |
| + standalone_(true), forwardingCores_(config.forwardingCores), | |
| + numaNodes_(config.numaNodes), lruMapsFd_(kMaxForwardingCores) { | |
| for (uint32_t i = 0; i < config_.maxVips; i++) { | |
| vipNums_.push_back(i); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment