Commit Graph

3 Commits

Author SHA1 Message Date
Ewout van Bekkum
bc2af4d427 pw_router: add lock safety annotations
No-Docs-Update-Reason: No functional change.
Change-Id: If5a3b06e831baedd1fbd952fedda31fe1ebe6662
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/40246
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Reviewed-by: Alexei Frolov <frolv@google.com>
2021-04-12 17:15:57 +00:00
Alexei Frolov
da401abdfd pw_router: Remove logging
This removes all log statements from the static router. This is done as
there is no guarantee for what pw_log backend is used. In some systems,
logs may flow directly through the router, resulting in recursive calls
that cause a crash.

The user of the router can choose to check and log its return values if
the operation is safe.

Change-Id: I3a94d9245fde8fd5d27a23ddd1713aba1e880bd8
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/33621
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Alexei Frolov <frolv@google.com>
2021-02-23 18:06:30 +00:00
Alexei Frolov
5af57d1b50 pw_router: Add module and static router implementation
This adds a pw_router module for routing packets over network links.
Initially, this module contains a basic StaticRouter which uses a static
routing table.

Change-Id: I5534c7fec5c622e7af6548c48793ff7f7d6dd098
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/29440
Commit-Queue: Alexei Frolov <frolv@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
2021-01-27 21:07:45 +00:00