1. 20 Sep, 2016 16 commits
  2. 14 Sep, 2016 4 commits
    • Adam Wujek's avatar
      Merge branch 'adam-shmem' · 96a78e15
      Adam Wujek authored
      Uplift shmem from wr-switch-sw repo.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      96a78e15
    • Adam Wujek's avatar
      arch-wrs: check shmem consistency in wrs_shm_get_and_check · d5e619c5
      Adam Wujek authored
      Commit based on the commit from wrs-switch-sw repo described below. It does
      not have impact on PPSI, just for consistency.
      
      userspace/libwr: check shmem consistency in wrs_shm_get_and_check
      
      Check the consistency of shmem during opening with wrs_shm_get_and_check.
      It was possible that sequence number was increased during the opening, but it
      was interpreted as version error.
      
      Add defines describing different return errors.
      
      This change is backward compatible.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      d5e619c5
    • Adam Wujek's avatar
      arch-wrs: improve locking of shmem · 15076cb6
      Adam Wujek authored
      Commit based on the commit from wrs-switch-sw described below.
      
      userspace/libwr: improve locking of shmem
      
      Keep explicitly lock bit in the sequence variable as a LSB bit.
      This solution is backward compatible. The difference is only when shmem is
      lock twice. Before it was treated as unlocked, now still as a lock.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      15076cb6
    • Adam Wujek's avatar
      arch-wrs: Print error message on multiple shmem locks · 0f620301
      Adam Wujek authored
      Commit based on the commit mentioned below from wr-switch-sw repo.
      It required to add a header wrs-msg.h to support "pr_error" function.
      "pr_error" will be printed as regular error, all other pr_* are ignored.
      
      userspace/libwr: Print error message on multiple shmem locks
      
      Print error message when shmem is locked or unlocked multiple times.
      To be precise it will print error only on even locks or unlocks.
      
      Move the increment of sequence before checking the flags to simplify further
      if-conditions.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      0f620301
  3. 25 Aug, 2016 1 commit
  4. 22 Aug, 2016 1 commit
  5. 16 Aug, 2016 2 commits
  6. 25 Jul, 2016 2 commits
  7. 16 Jun, 2016 10 commits
  8. 30 May, 2016 1 commit
  9. 17 May, 2016 1 commit
    • Davide Ciminaghi's avatar
      proto-standard/state-initializing.c: initialize parentDS · f5dbcdd3
      Davide Ciminaghi authored
      Before this commit, ANNOUNCE messages were sent with grandmaster-related
      fields equal to 0. Values for such fields were taken from the parentDS data
      set, which did not look properly initialized.
      
      Paragraphs 8.2.3.2 to 8.2.3.9 of the ieee1588 standard specify
      initialization values for the parentDS data set.
      Many such values come from the defaultDS, so care must be taken to
      initialize the parent data set __after__ the default data set.
      We do this in pp-initializing().
      Signed-off-by: Davide Ciminaghi's avatarDavide Ciminaghi <ciminaghi@gnudd.com>
      f5dbcdd3
  10. 16 May, 2016 2 commits