aboutsummaryrefslogtreecommitdiff
path: root/embassy-net/src/stack.rs
Commit message (Collapse)AuthorAgeFilesLines
* net: move stack into lib.rsDario Nieuwenhuis2022-12-131-306/+0
|
* net: remove packet pool.Dario Nieuwenhuis2022-12-131-10/+14
| | | | | | | | | | | | | | The pool was prone to deadlocks, especially due to having a single pool for rx+tx. If the pool got full with rx'd packets it would deadlock because processing a rx packet requires doing another allocation on the pool, for the possibly tx'd response, before deallocating the rx'd packet. This also allows Device impls to allocate the packet memory in a particular RAM kind, if needed for example to do DMA. The `Device` trait is now token-based, like smoltcp's. In the end, this is better because it allows callers to manage memory however they want (including with a pool if they want to).
* net: update smoltcpDario Nieuwenhuis2022-12-071-15/+6
|
* net: don't use UnsafeCell.Dario Nieuwenhuis2022-12-031-18/+14
| | | | | | The "must not be called reentrantly" invariant is too "global" to maintain comfortably, and the cost of the RefCell is negligible, so this was a case of premature optimization.
* Replace futures::future::poll_fn -> core::future::poll_fn.Dario Nieuwenhuis2022-09-221-2/+1
|
* split `embassy-util` into `embassy-futures`, `embassy-sync`.Dario Nieuwenhuis2022-08-221-1/+1
|
* Split embassy-time from embassy-executor.Dario Nieuwenhuis2022-08-181-1/+1
|
* Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis2022-07-291-2/+2
|
* Run rustfmt.Dario Nieuwenhuis2022-06-121-27/+12
|
* WIP embassy-net v2Dario Nieuwenhuis2022-05-251-167/+226
|
* net: add functions to get current Eth and IP configDario Nieuwenhuis2022-05-021-6/+22
|
* net: make run() noreturn.Dario Nieuwenhuis2022-04-131-2/+3
|
* Update smoltcp, fix build issues with no ethernet.Dario Nieuwenhuis2021-11-261-8/+5
|
* net: update smoltcpDario Nieuwenhuis2021-11-261-20/+11
|
* nrf: add initial nrf5340 supportDario Nieuwenhuis2021-10-281-0/+1
|
* Clippy fixesDario Nieuwenhuis2021-10-181-8/+4
|
* embassy: Refactor module structure to remove kitchen-sink `util`.Dario Nieuwenhuis2021-09-111-2/+2
|
* net: fix build with medium-ipDario Nieuwenhuis2021-08-201-1/+9
|
* net: Make the user pass in the StackResources in initThales Fragoso2021-06-201-25/+29
| | | | | By having the user pass in the resources, we can make them generic, this way the user can choose the size of the individual resources
* fmt: make all macros `macro_rules` so scoping is consistent.Dario Nieuwenhuis2021-06-071-1/+0
|
* add is_link_up, is_config_upDario Nieuwenhuis2021-04-131-0/+13
|
* Add medium-ip, medium-ethernet Cargo featuresDario Nieuwenhuis2021-04-121-4/+19
|
* Correctly randomize source portDario Nieuwenhuis2021-04-121-5/+9
|
* Update to latest embassy, atomic-pool, smoltcpDario Nieuwenhuis2021-04-071-35/+42
|
* Update embassyDario Nieuwenhuis2021-03-021-2/+6
|
* Make ethernet address configurable from the DeviceDario Nieuwenhuis2021-02-241-3/+6
|
* Remove use of feature(const_in_array_repeat_expressions)Dario Nieuwenhuis2021-02-031-1/+2
|
* :rainbow:Dario Nieuwenhuis2021-02-031-0/+212