1. 15 Oct, 2013 4 commits
  2. 05 Oct, 2013 7 commits
  3. 01 Oct, 2013 1 commit
  4. 24 Sep, 2013 3 commits
  5. 22 Sep, 2013 2 commits
  6. 20 Sep, 2013 6 commits
  7. 19 Sep, 2013 12 commits
  8. 18 Sep, 2013 5 commits
    • Alessandro Rubini's avatar
      config: allow passing "-f <file>" on the command line · 4184f7ea
      Alessandro Rubini authored
      This commit factorizes some code in lib/conf.c from the two hosted
      startup files, but the aim is passing "-f <filename>" on the command
      line, to test with unconventional setups without touching the "real"
      filesystem.
      
      Now ppsi looks for the configuration file is from threee places, in
      this order:
          - command line, if any
          - architecture-specific, if any (e.g. "/wr/etc/ppsi.conf")
          - compile-time default ("/etc/ppsi.conf")
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      4184f7ea
    • Alessandro Rubini's avatar
      arch startup: alloc max_links instances · 494697b0
      Alessandro Rubini authored
      The next commit makes a little order in startup files, and config file
      parsing ends up after all allocations, so we can't reply on
      ppg->nlinks to be properly set.
      
      In hosted environments we have no issues with a few kilobytes more, so
      allocate the max number of instances even if less are used.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      494697b0
    • Alessandro Rubini's avatar
      move MAX_LINKS to constants.h, raise to 64 · 90c7f385
      Alessandro Rubini authored
      If we run both Ethernet and UDP services in a 18-port switch, we need
      36 logical links. Thus, increase the previous limit of 32 to 64,
      knowing we have no serious memory constraints in hosted environments.
      
      The definition is moved to <ppsi/constants.h> as implementation-specific.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      90c7f385
    • Alessandro Rubini's avatar
      white-rabbit: when T3 is invalid, don't call servo · 83279431
      Alessandro Rubini authored
      When running a WR device as non-WR slave, we adjust the clock instead
      of the phase.  When adjusting the counters, timestamps are reported as
      invalid until two increments of the "seconds" register.
      
      So, when T3 is not valid (tx stamp of delay_request), avoid running
      the non-WR servo. A later iteration of the slave FSM will work.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      83279431
    • Alessandro Rubini's avatar
      time-wrs: fall back on unix time · de877246
      Alessandro Rubini authored
      When setting time, set Unix time as well. And when asking for the time,
      return Unix time if the WR inter process communication fails.
      
      Currently (and in all past history) the IPC call to get the time is
      not implemented, so we are sure we fail. But I keep it in place nonetheless
      in case we'll have it working in the future. Such time_get calls are
      mainly for timestamping the diagnostic messages anyways.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      de877246