1. 23 May, 2013 1 commit
  2. 15 May, 2013 1 commit
  3. 09 May, 2013 1 commit
  4. 03 May, 2013 1 commit
  5. 23 Apr, 2013 6 commits
  6. 08 Apr, 2013 1 commit
  7. 02 Apr, 2013 3 commits
  8. 18 Mar, 2013 5 commits
  9. 14 Mar, 2013 1 commit
  10. 07 Mar, 2013 5 commits
  11. 05 Mar, 2013 7 commits
  12. 04 Mar, 2013 5 commits
    • 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: renamed a field, turned two macros to static inline · f2835098
      Alessandro Rubini authored
      This commit has no technical effect: what works still works, and what
      doesn't work still doesn't work.  Still, the inlines will do
      type-checking at a later time when we have a structure for the ptp
      header.
      
      Moreover the renames allow me to trace all uses in order to change
      them; it also generates build errors in wrpc-sw, forcing me to fix the new
      use in there as well, when I update ppsi as submodule.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      f2835098
    • 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
    • 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
    • Alessandro Rubini's avatar
      general (for diag): add ppi->flags and global flags · e246a91b
      Alessandro Rubini authored
      I'm going to split diagnostics into groups based on flags. And
      with different diagnostics for each pp instance, to be ready to
      debug multi-link situations.  This commit adds the flags in the proper
      places and the first flag value, used in the next commit.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      e246a91b
  13. 02 Mar, 2013 3 commits
    • Alessandro Rubini's avatar
      timeout: now calc_timeout() is part of the time_ops · afa607df
      Alessandro Rubini authored
      By moving calc_timeout into the time functions, we simplify
      the split-out of ./time-<arch> as a separate subdirectory.
      
      As a side effect, calc_timeout disappears from arch-wrpc, and
      wrpc-sw needs to be adapted to this commit, to provide it
      inside its own time_ops.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      afa607df
    • 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
    • Alessandro Rubini's avatar
      timeout: move restart_annrec() to ppsi.h · 415e530e
      Alessandro Rubini authored
      The function st_com_restart_annrec_timer is now just a one-liner, and
      it really is just a timeout operation.
      
      So call it pp_timeout_restart_annrec instead, and have it inline in
      ppsi.h, removing it from common-fun.c
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      415e530e