- Apr 21, 2015
-
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Old parts are still in place, will be removed together with code. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
make n_rows global since function table_next_entry has to know how many rows are available. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Now in FIELD macro _struct doesn't have to be declared. 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
Try to solve problem when cascade of caches has to be called. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Move code from wrsTemperature.c to wrsTemperature.h and wrsSnmp.h Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Example of usage of scalar template Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
To avoid multiple copies of the same/simillar code template for scalar groups is introduced. File wrsGroupTemplate.h should be included into file defining scalar group. pickinfo and FIELD definition was moved to wrsSnmp.h Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Apr 10, 2015
-
-
Adam Wujek authored
Null is returned when there is unsuccessful read from dotconfig (function libwr_cfg_get). Function atoi rely on valid string passed as parameter. If dotconfig parameter does not exist, atoi will crash wrsw_hal. Added checking whether valid string is returned from libwr_cfg_get. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Mar 12, 2015
-
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Mar 11, 2015
-
-
Adam Wujek authored
Second test of $? value was not always result of command "tftp $eth0.ipaddr/wrboot wrboot", but sometimes result of first if statement (in case first tftp was successful). In other words, when there was file wrboot-$eth0.ethaddr on tftp server, script was still fetching and executing wrboot. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Please not that some commits had non backward compatible changes in MIB. However, end result of MIB is backward compatible.
-
Adam Wujek authored
Please not that within this git branch there we non backward compatible changes in MIB. Move branch wrsPtpGlobals, wrsPortsTable and wrsTemperature to previously removed wrsPpsi. Moved branches and objects contain "X" at the end. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Mar 04, 2015
-
-
Adam Wujek authored
Add Not Availavle (NA) value for objects: -ptpPhaseTracking -portLink -portLocked -portSfpError SNMP's recommendation is that valid values should be greater than 0. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Functions wrs_fpopen and wrs_fpclose are not needed anymore. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Read temperatures and threshold levels of temperatures: -fpga -pll -psl -psr Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
-rename since read_hal will read also temperatures -add static to global variables -no need to read_servo before show_unadorned_ports Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
In PPSI remove structure ptpdexp_sync_state_t, which was used by removed call. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Get info about ppsi only from ppsi's shmem. Don't display duplicated data. Remove SHOW_SNMP_GLOBALS, since SNMP doesn't use wr_mon for servo stats anymore. It uses ppsi shmem. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Added menu "Management configuration" to Kconfig with: -moved options from "Local Network Configuration": --SNMP_TRAPSINK_ADDRESS --SNMP_TRAP2SINK_ADDRESS --SNMP_RO_COMMUNITY --SNMP_RW_COMMUNITY -added threshold levels: --SNMP_TEMP_THOLD_FPGA --SNMP_TEMP_THOLD_PLL --SNMP_TEMP_THOLD_PSL --SNMP_TEMP_THOLD_PSR Update user manual. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Note threshold level is not implemented in .config. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Create new branch for temperature sensors wrsTemperature (1.3.6.1.4.1.96.100.8) Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
HAL at update of fan speed reads Switch's temperature sensors. Sensors read: -FPGA -PLL (was read before to drive PWM for fan) -Power supply left -Power supply right Additionally: -add hal_temp_sensors structure to hal shmem, add current temperature and threshold values (to be implemented in later commits) -increment HAL_SHMEM_VERSION -update hal_shmem.h in ppsi -update dump_shmem with new structure, add specific type for temperature sensors -in hal_ports.c --rename struct wrs_shm_head *head to struct wrs_shm_head *hal_shmem_hdr --remove void *hal_port_shmem as not needed, --make struct hal_shmem_header *hal_shmem extern, defined in hal_main.c Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Replace define I2C_SFP_H with I2C_IO_H It was not possible to include i2c_io.h and i2c_sfp.h at the same time Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
split wrsPtp from wrSwitchMIB 3 (1.3.6.1.4.1.96.100.3) into: --wrsPtpGlobals (wrSwitchMIB 6 (1.3.6.1.4.1.96.100.6)), old wrsPtpGlobals --wrsPortsTable (wrSwitchMIB 7 (1.3.6.1.4.1.96.100.7)), old wrsPtp.ptpPort rename wrsPstats into wrsPstatsTable Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
PTP related objects should be called WR-SWITCH-MIB::ptp* instead of WR-SWITCH-MIB::ppsi*. People need to know it's PTP related, not necessary that the running PTP engine is PPSi. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
To report when invalid SFP configuration is detected and actions has to be taken. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Until now snmpd and wr_mon reported mode only as master or slave. However, mode can be also non-wr or auto. changed: -wr_mon -snmp -MIB -dump_shmem Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Remove note about extra item after wrs tables (bug fixed already) Add example how to print all objects exported by wrs Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Rename portSfpID into portSfpPN, which keeps part number (like AXGE-3454-0531). Add portSfpVN to keep Vendor name (like Axcen). Add portSfpVS to keep Vendor serial number (like AX12030003038). Update MIB. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Add to snmp: -portSfpID - PN of SFP inserted into switch port -portSfpInDB - report if inserted SFP is in data base -portSfpGbE - report if inserted SFP is 1GbE, note only 1GbE are supported by FPGA update wrs_dump_shmem to display portSfpInDB and portSfpGbE flags. Update MIB. Fix typo in MIB file (ppsiGrandmaterID -> ppsiGrandmasterID) Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
There is no need to report port_locked, peer_id (and later sfp info, etc.) for disabled ports. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
SFP matching is done by in order: -vendor name, part number, serial -vendor name, part number -part number If .config's entry (i.e. serial) is not empty match will happen only with specific serial. Additionally: -Change default defines in Kconfig -Update user manual with matching info -Remove entry from wrs-todo about matching SFP vendor Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Update dump_shmem accordingly. Increment HAL_SHMEM_VERSION due to changes in shw_sfp_caldata structure. Still missing matching based on vendor name and part number. Update hal_shmem.h in ppsi Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Remove spaces from read SFP header -vendor_name -vendor_pn -vendor_serial Don't read SFP header twice at hal_port_insert_sfp in hal_port. Before header was read first in function shw_sfp_read_verify_header, then indirectly by shw_sfp_get_cal_data Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-