- Jan 04, 2015
-
-
Alessandro Rubini authored
This replicates the bevaviour of previous code, unchanged. Only, Kconfig is now used to specify the alpha for the pair of wavelengths being used. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit adds fiber parameters to Kconfig. To be used to specify fiber-specific alpha values. Use in the next commits. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Rename "index" to "fiber_index", because it was never used, and it will be the fiber index (enumerating fiber type 0..3). By reusing a field of the same size, I don't need to change version number nor ppsi (that uses the structure, but doesn't care about this value).q Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit uses dot-config (previous commit), in exactly the same way as previous code. No change in behaviour is there, as confirmed by looking at shared memory values. However, the alpha value is not part of the SFP definition any more, but it is part of the fiber type (later commits). So it is currently hardwired in the code, matching previous config values. The data structures are slightly changed, so the version in shared memory is increased too. wrs_dump_shmem is updated at the same time and ppsi is updated to get the new headers. As a side effect, this uses calloc() instead of malloc(), and sets a sensible (though unused) value in the "flags" field of the sfp data. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit adds SFP parameters to Kconfig. To be used in place of the sfp_database.conf. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit uses dot-config (previous commit), in exactly the same way as previous code. No change in behaviour is there, as confirmed by looking at shared memory values. As a side effect, the ports as listed in shared memory (wrs_dump_shmem) are in the right order instead of random order (this was due to use of lua's hash functions). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit adds port parameters to Kconfig, using the same values we currently have in wrsw_hal.conf (i.e: tx delay = 0, rx delay = 160000 or 161200). These values are used in later commits, where this dot-config stuff is replacing wrsw_hal.conf. The "role=" and "fiber=" values will be used later, but I'd better write them now to avoid excessive edits to this file. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Jan 03, 2015
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Most of the calls in HAL use TRACE to print to stdout/stderr however the full TRACE is depending on DEBUG flag at compilation. This is a quick hack, and the whole TRACE system should be re written with something like: TRACE_P_FATAL(...) TRACE_P_ERROR(...) TRACE_P_WARN(...) TRACE_P_INFO(...) TRACE_P_VERBOSE(...) #ifdef DEBUG TRACE_P_DEBUG(...) #endif
-
- Dec 18, 2014
-
-
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
wr_mon still uses minipc to communicate with ppsi Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Dec 17, 2014
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
The shell we have in the switch, unfortunately, reports variables in "set" as quoted. This means we had all our substitutions wrong in snmpd.conf. This commit removes the quotes, and stuff now works better. I got this in my syslog, for example: /wr/etc/snmpd.conf: line 10: Error: cannot create trapsink: '192.168.16.1' getaddrinfo: 'morgana' Name or service not known Because it had to be "morgana" not "'morgana'", same for IP address. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Dec 15, 2014
-
-
Alessandro Rubini authored
PPSi is not optional, so change Kconfig in order not to run the question. Also, rename "Local" to "Local Network" configuration. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Dec 12, 2014
-
-
Alessandro Rubini authored
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Dec 11, 2014
-
-
Alessandro Rubini authored
Now /etc/init.d/S20dot-config is able to download a new dot-config file if the user specified an URL at configuration time. We support tftp, http and ftp. Full documentation in next commit. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
We are aiming at a system where build-time configuration is irrelevant, as every configuration happens at run-time, based on dot-config. This is the first step. Please note that this breaks the web interface, because it edits wr_date.conf. A later commit will fix the web interface. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
As a reference, until the next commits that actually use it. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Otherwise, the port files are empty, even if pstats/info is correct wrs-192.168.16.9#wc -c /proc/sys/pstats/* 529 /proc/sys/pstats/description 7 /proc/sys/pstats/info 0 /proc/sys/pstats/port0 0 /proc/sys/pstats/port1 0 /proc/sys/pstats/port10 0 /proc/sys/pstats/port11 0 /proc/sys/pstats/port12 0 /proc/sys/pstats/port13 0 /proc/sys/pstats/port14 0 /proc/sys/pstats/port15 0 /proc/sys/pstats/port16 0 /proc/sys/pstats/port17 0 /proc/sys/pstats/port2 0 /proc/sys/pstats/port3 0 /proc/sys/pstats/port4 0 /proc/sys/pstats/port5 0 /proc/sys/pstats/port6 0 /proc/sys/pstats/port7 0 /proc/sys/pstats/port8 0 /proc/sys/pstats/port9 536 total Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This adds monit, a simple monitoring tool. It currently monitors snmpd alone, but it will monitor more things as we proceed (but we first need to make ppsi rtud and hal independently restartable.
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-