- Dec 01, 2016
-
-
Adam Wujek authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Adam Wujek authored
-
Adam Wujek authored
Make clear what kind of resolution get_monotonic_tics function returns (micro seconds). Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Fix the bug introduced by a commit: 291a32c7 userspace/wrsw_hal: use get_monotonic_* instead of clock_gettime get_monotonic_tics() return a value in us resolution, so to get ms it has to be divided by 1000, not multiplied. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Nov 03, 2016
-
-
Adam Wujek authored
--Read DOM (Diagnostic Monitoring data) data from SFPs --Fix the write to SFPs eeprom --store DOM data in the HAL's shmem Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
The SFP documentation "INF-8047.pdf" states: "The serial interface uses the 2-wire serial CMOS E2PROM protocol defined for the ATMEL AT24C01A/02/04 family of components." Upon reading that datasheet, some important details stand out: 1) The eeprom can only write in pages, with pages being 8 or 16 bytes. Assuming the smallest device, you can only write 8 bytes at a time. To be safe, I'm assuming a pagesize of 8 bytes. This explains why we only saw stuff change in the first 8 bytes, I guess. 2) A write needs to be preceded by the byte address which is a single byte for these devices, and then up to 8 (or 16) data bytes to be written at that location. If there are more bytes, or if the data wraps around the page binary, it will still only end up on the page belonging to that first address. 3) After writing, you need to poll the eeprom to see if it has finished writing the byte. At the moment, I'm not doing that yet, instead I'm doing a 10ms wait which seems sufficient. Signed-off-by:
Paul Boven <boven@jive.eu> Acked-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Kconfig: --add CONFIG_READ_SFP_DIAG_ENABLE libwr: --add the function shw_sfp_update_dom to update only needed values in the future --increase HAL_SHMEM_VERSION due to the changes in structures wrs_dump_shmem --add new fields HAL: --read DOM (Diagnostic Monitoring data) from SFP's eeprom at plug and once per second PPSI: --uplift hal shmem header wrs_sfp_dump: --support reading SFP's DOM from HAL Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
It fixes the bug described in the commit: userspace/ppsi: uplift ppsi with compliance (problem with "Support E2E build without P2P. Saves 5kB in wrpc-sw") Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
This commit includes the commit in ppsi "Support E2E build without P2P. Saves 5kB in wrpc-sw" However when the option "Avoid building P2P code" is not enabled in the ppsi's dot-config then I'm getting zeros in the wr_mon or the ppsi exits with the message: ERROR: failure in "clock_settime": Invalid argument Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Nov 02, 2016
-
-
Adam Wujek authored
Such error was printed to the syslog Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Sep 30, 2016
-
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
It might be usefull to know whether caller wanted to lock or unlock the shmem and which shmem. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
In shared memory functions take as parameters pinters to structures instead of void pointers. By this compiler will warn when wrong type of pointer is passed. For example when pointer to the data in shmem is passed instead of pointer to the header. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Update callers of wrs_shm_get_and_check to recognize return value WRS_SHM_INCONSISTENT_DATA. Update to use defined values instead of numbers. Update: --snmpd --tools/rtu_stat --tools/wr_mon --tools/wr_phytool --tools/wrs_sfp_dump --tools/wrs_vlans --wrs_watchdog --wrsw_rtud Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
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 <adam.wujek@cern.ch>
-
Adam Wujek authored
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 <adam.wujek@cern.ch>
-
Adam Wujek authored
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 <adam.wujek@cern.ch>
-
Adam Wujek authored
Remove excessive locks from the function delete_htab_entry. Function rtu_fd_commit is always guarded with shmem lock. The function rtu_fd_commit calls rtu_hw_commit, which calls delete_htab_entry. By this function wrs_shm_write with a parameter WRS_SHM_WRITE_BEGIN was called twice before it was called twice with a parameter WRS_SHM_WRITE_END. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Lock HAL's shmem on write to let a reader know about potential inconsistent data List below indicates which functions requires a lock (marked as "UPDATE"). minipc: --halexp_lock_cmd: --hal_port_enable_tracking - not --hal_port_start_lock - UPDATE --hal_port_check_lock - not --halexp_pps_cmd --rts_adjust_phase - not --shw_pps_gen_adjust - not --shw_pps_gen_busy - not --hal_port_pshifter_busy - not --shw_pps_gen_enable_output - not hal_port_update_all: --poll_rts_state - not --hal_port_poll_sfp: --shw_sfp_module_scan - not --hal_port_insert_sfp - UPDATE --hal_port_remove_sfp - UPDATE --hal_port_fsm - UPDATE 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
By default, on the startup the VLAN with VID0 is created with the mask 0xffffffff. It is used to pass all the traffic between ports. However, when VLANs configuration is read from the dot-config now it also remove this VLAN. We cannot relay on how the system was configured before. If such configuration is needed it can be configured in the CONFIG_VLANS_VLAN0000 config option. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Sep 26, 2016
-
-
Adam Wujek authored
We cannot relay on the previous configuration. So clear, then apply new. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
--Change parameter --pumask to --puntag; "mask" part is misleading, since full mask is not supported. --use "pmode" rather "pmode" --improve help message --support -1 for pprio to disable fix priority --support -1 for rprio to disable fix priority --change VLANS_PORTXX_UMASK_ALL and VLANS_PORTXX_UMASK_NONE into VLANS_PORTXX_UNTAG_ALL and VLANS_PORTXX_UNTAG_NONE Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
--Add new SNMP objects indicating the status of scripts run at boot --wrsAuxClkSetStatus --wrsThrottlingSetStatus --wrsVlansSetStatus --Update wrsBootSuccessful to take into account status of objects above --Update corresponding scripts to save status information at the execution: --etc/init.d/vlan.sh --etc/init.d/wrs_auxclk.sh --etc/init.d/wrs_throttling.sh --Update MIB --Update wrs-user-manual --Update wrs_failures Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Add to Kconfig: --RTU_HP_MASK_ENABLE --RTU_HP_MASK_VAL Update wrs_vlans: --add parameter --hpmask --read RTU_HP_MASK_* from dot-config --print hpmask with plist add a new minipc call rtud_export_hp_mask for HP mask Update wrs-user-manual Update wrs-developer-manual Update webinterface Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
remove --debug flag support -v/-q flags for more/less verbose output Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
It was not possible to pass parameters when vid 0 was the first one specified wrs1#wrs_vlans --rvid 0 --rdrop 1 --rvid 1 --rdrop 1 wrs_vlans: missing "--rvid <vid>" before rtu cmd However, it was possible if any other vid was specified before: wrs1#wrs_vlans --rvid 1 --rdrop 1 --rvid 0 --rdrop 1 Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Update vlan.sh init script to let wrs_vlans to read configuration from the dot-config. Remove vlan_config.sh since it is not used anymore. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Changes: --add "--file|-f" parameter to read VLAN configuration from dot-config --"--debug" can take parameter --print VLAN configuration to be applied if debug enabled Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Specify vlans for ppsi in dot-config's field PORTXX_PARAMS. Use ppsi_vlans for that, with a colon separated list. PORTXX_PARAMS="...,ppsi_vlans=1:2:9" Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Keep all VLAN related configuration in the Kconfig_vlans.in. Source this file in the Kconfig Also copy it to the target. Kconfig_vlans.in is generated by a command: userspace/host_tools/gen_vlan_kconf.sh > Kconfig_vlans.in Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Sep 23, 2016
-
-
Adam Wujek authored
Since the Kconfig for VLANs contains repetable options, it is more convenient to generate it automatically, than write it by hand. To use this tool, simply redirect the output to the file Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
rtu deals with frames not packets. Fix printouts. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Add a support of sourcing another file in Kconfig Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
PHP code of the web interface was updating values of "upload_max_filesize" and "post_max_size" in the /etc/php.ini. Besides it is extremely bad idea to do that, such changes to take place require restart of lighttpd, which was never performed. Luckily after the update of /etc/php.ini it was also copied to flash at the location /usr/etc/php.ini. Because of this update via webinterface worked only when: --firmware.php was opened via web browser --restart of a switch was performed The fix contains a patch to set these values in the php.ini and remove the update of php.ini by php code. Set maximum upload limit size to 30M in php.ini. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Following changes were made in this commit: --Add quotas to the arrays in the file var/www/data/wrs-data.php --Change CONFIG_PORT00_PARAMS to CONFIG_PORT01_PARAMS in the var/www/endpointcalibration.php. It looks like it was missed during interface renaming. --Change "file" into "firmware" in the firmware input form --Remove the help when mouse hovers over the form. The help wasn't filled anyway (remove title="'.$row["help"].). --fix part of the shell_exec command: awk '{print $NF}' escape the $ --use index 0..5 in the sfpcalibration.php --remove unlink after calling "rename" function Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-