1. 10 Jun, 2016 4 commits
  2. 06 Jun, 2016 1 commit
    • Adam Wujek's avatar
      softpll: move stats defines to new file softpll_export.h · c2f15675
      Adam Wujek authored
      For other parties using the stats interface with the softpll we need
      the minimal file that can be easily used in other projects (like SNMP on
      the wr-switch).
      
      Move to the softpll_export.h:
      --struct spll_stats
      --defines of seq_state from softpll_ng.c (SEQ_* and AUX_*)
      --defines of align_state from spll_external.c (ALIGN_*)
      --defines of mode from softpll_ng.h (SPLL_MODE_*)
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      c2f15675
  3. 20 May, 2016 10 commits
  4. 18 May, 2016 20 commits
  5. 04 Apr, 2016 5 commits
    • Alessandro Rubini's avatar
      lib: do not build IPV4 code if not configured in · a6a7a489
      Alessandro Rubini authored
      Although we love to build-test stuff and discard at link time, as soon
      as we move tasks to be sections, we need to avoid building the file of
      the task if not configured in.  This means lib/arp.c and lib/ipv4.c.
      
      But, for consistency, avoid building icmp.c and bootp.c as well.
      The alternative, which is ifconfig'ing the task itself results in
      warnings like "'ipv4_init' defined but not used".
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      a6a7a489
    • Alessandro Rubini's avatar
    • Alessandro Rubini's avatar
      general: use an ELF section for tasks · d9d20c8b
      Alessandro Rubini authored
      This allows several functions to be static in the files where they
      are defined. See temperature.c for an example.
      
      But mainly, the idea is allowing ease addition of features (likely
      Kconfig'd ones) for specific WR users, without any modification to the
      main function and other generic code.  This will happen soon for snmp,
      for example.
      
      We may push this a little further, by moving all shell stuff into
      shell.c, the ptp task within ppsi itself, and so on. But now my time
      is over.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      d9d20c8b
    • Alessandro Rubini's avatar
      net: fix a bug exposed by the next commit · e24e51a0
      Alessandro Rubini authored
      Socket matching depended on the order or sockets. With the new ELF
      section (next commit) we get the ICMP socket before some UDP ones, so
      the code matched IPV4 and the UDP service did not get the data.
      
      Now we give priority to UDP sockets. So this commit
      fixes the problem beforehand.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      e24e51a0
    • Alessandro Rubini's avatar
      syslog: report over-temperature situations and recover · 002aa4ca
      Alessandro Rubini authored
      The threshold and the repeat interval is set by Kconfig.
      The temperatures are read using the temperature framework.
      
      Tested in host environment:
      
         wrc# faketemp 90 80 10
         wrc# faketemp 90 40 20
         wrc# faketemp 20 30 40
      
         Jan  1 10:32:09 192.168.16.7 Temperature high: \
                                        roof:90.0000 core:80.0000 case:10.0000
         Jan  1 10:33:09 192.168.16.7 Temperature high: \
                                        roof:90.0000 core:40.0000 case:20.0000
         Jan  1 10:33:18 192.168.16.7 Temperature ok: \
                                        roof:20.0000 core:30.0000 case:40.0000
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      002aa4ca