1. 25 Oct, 2016 3 commits
  2. 20 Sep, 2016 8 commits
  3. 16 Jun, 2016 1 commit
  4. 16 May, 2016 5 commits
  5. 13 Mar, 2015 1 commit
  6. 13 Nov, 2014 4 commits
  7. 07 Nov, 2014 1 commit
  8. 06 Nov, 2013 1 commit
    • Alessandro Rubini's avatar
      bug workaround for slave states: don't refuse a new master · 577ed159
      Alessandro Rubini authored
      This works around a design problem that must be checked carefully.
      The "is from current parent" flags set at receive time reveales bad,
      as we should only check when needed.
      
      So by now just say it is the current parent if we don't have a current
      parent yet (i.e., we are not in error, even if it is not from current
      parent).
      
      Also, forget about current parent and foreign masters when the servo
      is initialized (e.g., at link-up on the wr node).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      577ed159
  9. 24 Sep, 2013 1 commit
  10. 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
      expections:
      
      - 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>
      23033d8a
  11. 03 May, 2013 1 commit
  12. 19 Mar, 2013 1 commit
  13. 14 Mar, 2013 2 commits
  14. 07 Mar, 2013 4 commits
    • Alessandro Rubini's avatar
      general (for bmc.c): turn ClockIdentity into a structure · f9f487ff
      Alessandro Rubini authored
      This "type" was the only type represented as an array instead of
      being a structure. This leads to inconsistent use: if you memcpy
      the other ones you need "&", but not here.
      
      So this commit uses an encompassing structure, to have ClockIdentity
      behave like other composite fields.  The commit has no effect at all
      on the generated binary files for wrpc but it unexpectedly reduces the
      size of the output on the PC. Anyways, the commit is trivial, and all
      changes can be easily verified to have no effect.
      
      While this increases entropy, the reasoning is that I want to assign
      structures instead of running zillions of memcpy functions, with the
      hairy PP_CLOCK_IDENTITY_LENGTH.  So later commits, based on this one,
      reduce entropy.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      f9f487ff
    • Alessandro Rubini's avatar
      general: add ppi argument to all time operations · 11ee59c0
      Alessandro Rubini authored
      Unfortunately, we need to pass ppi to the time operations, so we
      can have per-instance logging options. This is the second time I found
      the need for such extra argument: the first time I worked it around, now
      I surrender.
      
      Actually, I don't find it unlikely for a multi-instance process to
      spit a lot of diagnostics about timestamps. A developer may need to
      filter messages according to who is tiemstamping/timing out etc.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      11ee59c0
    • Alessandro Rubini's avatar
      diag: kill pp_verbose_dump · c34a986f
      Alessandro Rubini authored
      This kills the global build-time macro pp_verbose_dump to use flags
      instead.  In msg.c this commit fakes the old pp_verbose_dump, which
      however is extracted from the global flags.
      
      So, setting "frames" level to 2 prints information on frames being
      received ("-d 002").
      
      Until I get to integrate tools/ptpdump in the daemon itself, we have
      no instance-specific dump, nor symmetric dumping of input and output.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      c34a986f
    • Alessandro Rubini's avatar
      5e595126
  15. 04 Mar, 2013 3 commits
    • Alessandro Rubini's avatar
      proto-standard: fix sent_seq to really be "sent" · b03bc6c0
      Alessandro Rubini authored
      By post-incrementing sent_seq we had a value that was not
      really the "last sent" as the comment claims.  Thus, pre-increment
      it instead, so readers find the "last sent" value and don't need
      to subtract 1.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      b03bc6c0
    • Alessandro Rubini's avatar
      general: net: rename some fields, fix alignment · 06ef4b9b
      Alessandro Rubini authored
      This changes some things to make code more readable (I really didn't
      know what the tmp_header was: now it is the "received_ptp_header".
      The commit simplifies allocation, because the tx and rx buffers are
      now part of ppi itself.
      
      We now have tx_ptp and tx_frame, both pointing within tx_buffer (and
      the same for rx). The pointers are the protocol side (aligned) and the
      argument passed to send/recv (which may be not be 4-aligned).
      
      At this point nothing changes, i.e. both gnu-linux flavours work and
      bare-i386 is not able to received.
      06ef4b9b
    • Alessandro Rubini's avatar
      general: time operations are now per-instance · 7837d938
      Alessandro Rubini authored
      This commit moves the time operations inside the instance.  It
      allows to have different time operations for each instance, which will be
      useful in the future. For example, one ethernet card may White Rabbit,
      and another may not be.
      
      This commit, like moving network operations inside ppi, requires a
      change in wrpc-sw.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      7837d938
  16. 02 Mar, 2013 1 commit
    • Alessandro Rubini's avatar
      general: fix sent_seq_id in ppi structure · 493dee1e
      Alessandro Rubini authored
      The structure was separately allocated with a size of 16.  This avoids
      the alloc and makes the array the right size from the enum of message
      types. We thus a remove a number of magic "16" in the code.
      wrpc-sw must be updated too, in order to use this commit.
      
      There's still a problem: the code claims the number to be "last sent",
      but actually the value is incremented after sending. I'll need to pass
      again on this thing.
      
      ps: I changed name from "sent_seq_id" to "sent_seq" to the compiler
      complains for previous users, otherwise undetectable.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      493dee1e
  17. 01 Mar, 2013 2 commits
    • Alessandro Rubini's avatar
      kill MSG_SEND_AND_RET, use function instead · 3c7d66da
      Alessandro Rubini authored
      This removes the unmanageable MSG_SEND_AND_RET macro, turning it to a
      normal function (inline, at the time being, to avoid moving from the
      header to a different place).
      
      The function is called __send_and_log because it logs too, but I'd better
      move logging to the actual send and recv methods.
      
      BTW: the message "-> FAULTY" (now removed) was wrong, because not all
      errors of this function result in FAULTY state in the fsm.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      3c7d66da
    • Alessandro Rubini's avatar
      kill MSG_SEND_AND_RET_VARLEN (no effect). · 5b0bd076
      Alessandro Rubini authored
      This kills MSG_SEND_AND_RET_VARLEN, turning everything into
      MSG_SEND_AND_RET. Such macro now receives the length argument and
      doesn't receive the "pdelay" argument any more, because it is zero by
      design in this implementation.
      
      This commit has no effect on the compiled files.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      5b0bd076