1. 31 Jan, 2017 1 commit
  2. 01 Dec, 2016 1 commit
  3. 21 Nov, 2016 1 commit
  4. 25 Oct, 2016 1 commit
  5. 20 Sep, 2016 2 commits
  6. 16 May, 2016 2 commits
  7. 11 May, 2016 1 commit
  8. 06 Jul, 2015 2 commits
  9. 26 Jun, 2015 1 commit
  10. 18 Jun, 2015 1 commit
    • Alessandro Rubini's avatar
      send functions: return -1 on error and 1 on stamping error (stamp invalid) · 9e78f4ac
      Alessandro Rubini authored
      This is the first step to fix a problem introduced by commit 79ffd673
      (a fix to release 4.1.2 forward ported to master).
      
      When we get a bad timestamp in sending sync, we should not return "error"
      but a special value for "no timestamp". Otherwise the caller goes to
      "faulty" state and can't sync any more (this situation loops over).
      
      Also, check for timestamp errors only for event message, or we break
      out of the messaging loop during wr synchronization (when we get bad
      timestamps for frames whose timestamp we don't care about).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      9e78f4ac
  11. 20 Apr, 2015 1 commit
    • Grzegorz Daniluk's avatar
      state-master: don't send f-up if sync stamp is wrong · 79ffd673
      Grzegorz Daniluk authored
      This is bsased on Greg's original commit, which is in wrs-4.1.2-fixes,
      that we developed and released in the wr-switch-sw maintainance for the
      4.1 series.
      
      What we do here is return error for sending if the timestamp is not
      correctly retrieved; the error is already handled in the sync+f.up
      pair, so this is enough for f.up to not be sent.
      
      The commit also changes state-master, in that we need to restart the
      timeout for sync (and annunce) even if one even of sync (announce,
      resp) fails.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      79ffd673
  12. 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
  13. 07 Jul, 2013 1 commit
  14. 08 Mar, 2013 2 commits
  15. 07 Mar, 2013 2 commits
    • Alessandro Rubini's avatar
      diag: use new 'frames' diagnostics · ccc3d902
      Alessandro Rubini authored
      By passing "-V -d 001" now I get level-1 diagnostics for frames (i.e.
      sending and receiving):
      
      Slave:
      
         diag-frames-1-eth0: RECV 44 bytes at 1362665418.025198568 (type 0)
         diag-frames-1-eth0: RECV 44 bytes at 1362665418.025970153 (type 8)
         diag-frames-1-eth0: SENT 44 bytes at 1362665416.806670510 (delay_req)
         diag-frames-1-eth0: RECV 54 bytes at 1362665416.808217467 (type 9)
      
      Master:
      
         diag-frames-1-eth0: SENT 64 bytes at 1362665415.430554014 (announce)
         diag-frames-1-eth0: SENT 44 bytes at 1362665416.612818573 (sync)
         diag-frames-1-eth0: SENT 44 bytes at 1362665416.613056524 (follow_up)
         diag-frames-1-eth0: RECV 44 bytes at 1362665416.807983194 (type 1)
         diag-frames-1-eth0: SENT 54 bytes at 1362665416.808206209 (delay_resp)
      
      (note: we don't tell names at receive time because the frame is still
      to be validated).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      ccc3d902
    • Alessandro Rubini's avatar
      5e595126
  16. 05 Mar, 2013 1 commit
  17. 04 Mar, 2013 4 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
      fix frames offsets (now bare works) · 73cbbd9b
      Alessandro Rubini authored
      This commits removes all the additions and subtractions of
      the protocol offset. Now all recv and send functions, receive
      the pointer to the actual data being sent, be it the ptp payload
      or the transport header.
      
      This simplification (though based on the two internal pointers within
      ppsi -- se previous commit) fixed a long standing bug with bare
      architectures, that didn't receive the frames due to some related
      problem in offset calculation.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      73cbbd9b
    • 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: network operations are now per-instance · 82de2e3a
      Alessandro Rubini authored
      This commit moves the network operations inside the instance.  It
      allows to have different operations for each instance, which will be
      useful in the future. For example, one ethernet card may have hardware
      timestamping and another may not.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      82de2e3a
  18. 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
  19. 01 Mar, 2013 3 commits
  20. 28 Feb, 2013 2 commits
  21. 27 Feb, 2013 5 commits
  22. 28 Aug, 2012 1 commit
  23. 28 Mar, 2012 1 commit
    • Alessandro Rubini's avatar
      Rename PPTP to PPSi · 600a052f
      Alessandro Rubini authored
      This is a major patch, because header files are renamed, and
      the header directory with them. Still, no functional change is there.
      600a052f
  24. 09 Mar, 2012 1 commit
  25. 17 Jan, 2012 1 commit