Skip to content

Commit

Permalink
Dynamic port allocation
Browse files Browse the repository at this point in the history
Remove the limit of MAX_PORTS ports (default 8) and keep the ports in
a linked list. This allows ptp4l to be used on large machines and in the
future, it will allow dynamic adding and removing of ports while ptp4l is
running.

For this to work, pollfd needs to be dynamically allocated. Changed pollfd
handling from clock_install_fda/clock_remove_fda to notification
(clock_fda_changed), where the clock will rebuild pollfd by querying all its
ports.

Signed-off-by: Jiri Benc <[email protected]>
  • Loading branch information
Jiri Benc authored and richardcochran committed Sep 21, 2014
1 parent 48a8425 commit 0857513
Show file tree
Hide file tree
Showing 4 changed files with 194 additions and 111 deletions.
Loading

0 comments on commit 0857513

Please sign in to comment.