1. 16 Oct, 2013 2 commits
  2. 15 Oct, 2013 4 commits
  3. 05 Oct, 2013 7 commits
  4. 01 Oct, 2013 1 commit
  5. 24 Sep, 2013 3 commits
  6. 22 Sep, 2013 2 commits
  7. 20 Sep, 2013 6 commits
  8. 19 Sep, 2013 12 commits
  9. 18 Sep, 2013 3 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