diff options
| author | Laurent Vivier <lvivier@redhat.com> | 2025-10-21 23:01:16 +0200 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-10-30 15:33:58 +0100 |
| commit | 57446ca9c3850b671c997674957f4ea2dfb0d0be (patch) | |
| tree | 14d9dbab8e5a25276d9204ae8abf39482e67b5d4 /test/lib/git: | |
| parent | aaa8f347351841fc16bd2a012b84f2b976c9dfb2 (diff) | |
| download | passt-57446ca9c3850b671c997674957f4ea2dfb0d0be.tar passt-57446ca9c3850b671c997674957f4ea2dfb0d0be.tar.gz passt-57446ca9c3850b671c997674957f4ea2dfb0d0be.tar.bz2 passt-57446ca9c3850b671c997674957f4ea2dfb0d0be.tar.lz passt-57446ca9c3850b671c997674957f4ea2dfb0d0be.tar.xz passt-57446ca9c3850b671c997674957f4ea2dfb0d0be.tar.zst passt-57446ca9c3850b671c997674957f4ea2dfb0d0be.zip | |
passt: Move main event loop processing into passt_worker()
Extract the epoll event processing logic from main() into a separate
passt_worker() function. This refactoring prepares the code for future
threading support where passt_worker() will be called as a worker thread
callback.
The new function handles:
- Processing epoll events and dispatching to protocol handlers
- Event statistics tracking and printing
- Post-handler periodic tasks (timers, deferred work)
- Migration handling
No functional changes, purely a code restructuring.
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
[sbrivio: Handle new EPOLL_TYPE_NL_NEIGH in passt_worker() as well]
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/lib/git:')
0 files changed, 0 insertions, 0 deletions
