1. 11 Oct, 2019 1 commit
  2. 21 Nov, 2018 1 commit
    • Jean-Claude BAU's avatar
      High Accuracy - Second implementation · a45008ca
      Jean-Claude BAU authored
      This implementation does not include yet the possibility to declare 2
      exclusive instances on a same port (WR & HA)
      - Some structures are renamed with the suffix _t to make it more
      - Some variables are renamed  to be more clear
      - Implementation of masterOnly, slaveOnly and externalPortConfiguration
      - All extension specific includes (XX-api.h) is now automatically
      included in ppsi.h and do not need to be included in other files.
  3. 20 Nov, 2018 2 commits
  4. 25 Oct, 2016 2 commits
  5. 20 Sep, 2016 1 commit
    • Alessandro Rubini's avatar
      Support E2E build without P2P. Saves 5kB in wrpc-sw · 3542ae48
      Alessandro Rubini authored
      Here in ppsi,
        ./MAKEALL wrpc_defconfig wrpc_pdelay_defconfig
      shows a very small difference, but most pdelay code is then
      discarded by the wrpc-sw link time, due to --gc-sections.
      This is the result:
         laptopo% ./MAKEALL spec_defconfig spec_pdelay_defconfig
         ##### Building with 'spec_defconfig'
         /opt/lm32-gcc-4.5.3/bin/lm32-elf-ar: creating libsdbfs.a
            text    data     bss     dec     hex filename
           87688    3492    6352   97532   17cfc wrc.elf
         ##### Building with 'spec_pdelay_defconfig'
         /opt/lm32-gcc-4.5.3/bin/lm32-elf-ar: creating libsdbfs.a
            text    data     bss     dec     hex filename
           93140    3492    6360  102992   19250 wrc.elf
      What is missing now is the run-time choice between e2e and p2p. Later....
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
  6. 16 May, 2016 2 commits
  7. 06 Jul, 2015 2 commits
  8. 05 Dec, 2014 1 commit
    • Alessandro Rubini's avatar
      general: move buffers our of pp_instance, and make them smaller · d93b31c7
      Alessandro Rubini authored
      In order to fit all pp_instance items withing WRS shared memory,
      we need to make them a little smaller.  Thus, the tx and rx buffers
      are now allocated separately.  And, while I am at it, I make them
      smaller, because 128 bytes are more than enough for PTP with
      extensions (all frames are under 100 bytes). Given we are always
      showr of memory in wrpc-sw, this is benefical.
      As a side effect, clean up some out-of-memory exit paths, and fix a
      use-before-check buglet in arch-unix (no, we never go out of memory,
      but the check was wrong).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
  9. 11 Nov, 2014 1 commit
  10. 07 Nov, 2014 2 commits
  11. 22 Sep, 2014 1 commit
  12. 21 Jul, 2014 1 commit
  13. 21 Mar, 2014 2 commits
    • Pietro Fezzardi's avatar
      config: removed global variables current_ppg and current_ppi · 899ab83e
      Pietro Fezzardi authored
      New prototype for cfg_handler to remove the global variable *current_ppg.
      The current ppg is now passed as argument to the cfg handler as follows:
      typedef int (*cfg_handler)(int lineno, struct pp_globals *ppg,
      				union pp_cfg_arg *arg);
      New variable added in include/ppsi/pp-instance.h:
      struct pp_globals_cfg {
      	int cfg_items;
      	int cur_ppi_n;
      Now struct pp_globals has a new field:
      struct pp_globals {
      	struct pp_globals_cfg cfg;
      The field cfg_items has been moved from pp_globals
      to pp_globals_cfg. The configuration routine uses the field
      cur_ppi_n inside pp_globals_cfg to store the current ppi being
      configured. So neither the global variable *current_ppi is needed
      The helper inline function CUR_PPI has been defined to make
      accesses to current ppi more readable.
    • Pietro Fezzardi's avatar
      use INST() to access instances everywhere · 0a8e929e
      Pietro Fezzardi authored
      given that INTS() is defined as inline it should not affect
      the performance even in time-critical cases.
  14. 02 Mar, 2014 2 commits
  15. 04 Nov, 2013 2 commits
  16. 16 Oct, 2013 2 commits
  17. 15 Oct, 2013 1 commit
  18. 05 Oct, 2013 3 commits
  19. 19 Sep, 2013 2 commits
  20. 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"
      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>
    • 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>
    • 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>
  21. 31 Jul, 2013 1 commit
    • Alessandro Rubini's avatar
      general: rephrase copyright notices (no tech effect) · 23033d8a
      Alessandro Rubini authored
      This changes all "Name Surname for CERN" to "Copyright CERN, author
      Name Surname".  This is trivial and makes no change, with a few
      - all trivial Makefiles that had "for CERN" lines have now no
      attributions, as they are trivial anyways.
      - a few unrepresented files have not the copyright notice (especially
      ptpdump, that I wrote in 2012).
      - a few "for CERN" remain in subprojects, where I didn't touch anyrhing
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
  22. 07 Jul, 2013 1 commit
  23. 08 Jun, 2013 3 commits
  24. 23 May, 2013 1 commit
    • Alessandro Rubini's avatar
      time-unix: new directory, selected by arch-unix · b6eb1385
      Alessandro Rubini authored
      This is the first implementation of the concept ot "TIME=" on the
      configuration of ppsi.  Time-related code that used to live in arch-unix
      is now split into its own directory. If you have special timing hardware,
      you can write your own pp_network_operations and pp_time_operations
      in your own directory and select them using TIME= .
      We'll do Linux-specific hardware timestamping soon, and WhiteRabbit as
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>