Commit Graph

31 Commits

Author SHA1 Message Date
16db96e496 Adjust as_socket signature 2025-01-09 10:58:16 +08:00
72cb160539 Add keepidle tcp option 2024-12-18 13:19:34 +08:00
776fd6a892 Create backlog sockets on demand 2024-12-17 20:14:53 +08:00
58cf8ea681 Set keepalive and tcp_nodelay on underlying sockets 2024-12-15 16:50:43 +08:00
53b873f647 Add get_mut methods for locks 2024-12-15 16:36:54 +08:00
8bbbde4ccb Use Ordering::Relaxed for is_nonblocking 2024-12-12 20:50:12 +08:00
1207161afe Protect socket states with PreemptDisabled 2024-12-12 20:50:12 +08:00
1716f4f324 Use Pollee as the socket observer 2024-12-12 20:50:12 +08:00
fa76afb3a9 Make Ext a trait 2024-12-12 20:50:12 +08:00
2ec907875c Replace debug_assert with warn for SendRecvFlags 2024-12-11 16:53:03 +08:00
a260411a2a Implement WriteIrqDisabled 2024-12-03 12:07:24 +08:00
495c93c2ad Refactor Rwlock to take type parameter 2024-11-21 15:46:10 +08:00
ec2c6ab7a3 Make Pollee semi-stateless 2024-11-20 16:39:18 +08:00
1c1da8ea06 Don't poll ifaces if not necessary 2024-11-20 16:39:18 +08:00
fab61f5f66 Make Pollee stateless 2024-11-20 16:39:18 +08:00
ac71234b89 Remove {,un}register_observer 2024-11-13 14:15:44 +08:00
f12e502ab0 Rename Poller to PollHandle 2024-11-13 14:15:44 +08:00
7ddfd42baa Make wait_events support timeout 2024-11-01 13:00:40 +08:00
96a153dfc5 Implement dummy metadata() for epoll and socket files 2024-10-30 14:09:02 +08:00
dc06d7c37d Support TCP sockets HUP&RDHUP events 2024-10-28 22:47:50 +08:00
090149eed7 Add tcp latency test over virtio-net 2024-10-14 20:59:25 +08:00
0415225c19 Fix IRQ-related socket locks 2024-10-10 20:36:22 +08:00
7e21e1e653 Revise socket option handling 2024-10-10 20:36:22 +08:00
ee1656ba35 Move packet dispatch out of smoltcp 2024-09-30 16:00:51 +08:00
985813c7f9 Use IoVec-based reader/writer to refactor network APIs 2024-09-20 10:37:20 +08:00
67d3682116 Move smoltcp-related code to bigtcp 2024-09-13 21:31:20 +08:00
dd2cde3aee Introduce IfaceExt 2024-09-13 21:31:20 +08:00
434f143e30 Pass can reuse to bind_socket 2024-08-28 14:01:18 +08:00
dc4df47007 Implement UDP getsockopt and setsockopt 2024-08-28 14:01:18 +08:00
86f09eef75 Fix all spelling mistakes in history by typos tool 2024-08-27 12:19:48 +08:00
dafd16075f Remove the shim kernel crate 2024-08-23 23:37:50 +08:00