Commit 39ebdf6c authored by Adam Wujek's avatar Adam Wujek 💬

Merge branch 'adam-snmp'

set temperature thresholds
disable logic in object wrsSwcoreStatus
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parents 3e6d9257 fc4fcb58
...@@ -444,7 +444,7 @@ config SNMP_RW_COMMUNITY ...@@ -444,7 +444,7 @@ config SNMP_RW_COMMUNITY
config SNMP_TEMP_THOLD_FPGA config SNMP_TEMP_THOLD_FPGA
int "Threshold level for FPGA temperature" int "Threshold level for FPGA temperature"
default "0" default "80"
help help
Threshold level for FPGA temperature, when exceeded warning is Threshold level for FPGA temperature, when exceeded warning is
notified by SNMP via WR-SWITCH-MIB::wrsTemperatureWarning notified by SNMP via WR-SWITCH-MIB::wrsTemperatureWarning
...@@ -452,7 +452,7 @@ config SNMP_TEMP_THOLD_FPGA ...@@ -452,7 +452,7 @@ config SNMP_TEMP_THOLD_FPGA
config SNMP_TEMP_THOLD_PLL config SNMP_TEMP_THOLD_PLL
int "Threshold level for PLL temperature" int "Threshold level for PLL temperature"
default "0" default "80"
help help
Threshold level for PLL temperature, when exceeded warning is Threshold level for PLL temperature, when exceeded warning is
notified by SNMP via WR-SWITCH-MIB::wrsTemperatureWarning notified by SNMP via WR-SWITCH-MIB::wrsTemperatureWarning
...@@ -460,7 +460,7 @@ config SNMP_TEMP_THOLD_PLL ...@@ -460,7 +460,7 @@ config SNMP_TEMP_THOLD_PLL
config SNMP_TEMP_THOLD_PSL config SNMP_TEMP_THOLD_PSL
int "Threshold level for Power Supply Left (PSL) temperature" int "Threshold level for Power Supply Left (PSL) temperature"
default "0" default "80"
help help
Threshold level for Power Supply Left (PSL) temperature, when Threshold level for Power Supply Left (PSL) temperature, when
exceeded warning is notified by SNMP via exceeded warning is notified by SNMP via
...@@ -469,7 +469,7 @@ config SNMP_TEMP_THOLD_PSL ...@@ -469,7 +469,7 @@ config SNMP_TEMP_THOLD_PSL
config SNMP_TEMP_THOLD_PSR config SNMP_TEMP_THOLD_PSR
int "Threshold level for Power Supply Right (PSR) temperature" int "Threshold level for Power Supply Right (PSR) temperature"
default "0" default "80"
help help
Threshold level for Power Supply Right (PSR) temperature, when Threshold level for Power Supply Right (PSR) temperature, when
exceeded warning is notified by SNMP via exceeded warning is notified by SNMP via
......
...@@ -78,6 +78,7 @@ static int get_endpoint_status(struct ns_pstats *old, ...@@ -78,6 +78,7 @@ static int get_endpoint_status(struct ns_pstats *old,
return ret; return ret;
} }
/* don't use this function for now, return OK */
static int get_swcore_status(struct ns_pstats *old, static int get_swcore_status(struct ns_pstats *old,
struct wrsPstatsTable_s *new, unsigned int rows, struct wrsPstatsTable_s *new, unsigned int rows,
float t_delta) float t_delta)
...@@ -86,11 +87,15 @@ static int get_swcore_status(struct ns_pstats *old, ...@@ -86,11 +87,15 @@ static int get_swcore_status(struct ns_pstats *old,
int ret; int ret;
ret = 0; ret = 0;
/* don't use this function for now, return OK */
return ret;
for (i = 0; i < rows; i++) { for (i = 0; i < rows; i++) {
/* TXFrames and Forwarded described in 2.2.3 "Problem with the /* TXFrames and Forwarded described in 2.2.3 "Problem with the
* SwCore or Endpoint HDL module" in wrs_failures document * SwCore or Endpoint HDL module" in wrs_failures document
* shouldn't differ more than FORWARD_DELTA in total */ * shouldn't differ more than FORWARD_DELTA in total */
/* counter Forwarded (38) is not implemented in HDL!!! */ /* counter Forwarded (38) is implemented in HDL, but does not count PTP
* traffic!!! */
#if 0 #if 0
if ( /* shouldn't differ more than FORWARD_DELTA */ if ( /* shouldn't differ more than FORWARD_DELTA */
((new[i].TXFrames - new[i].Forwarded) > FORWARD_DELTA) ((new[i].TXFrames - new[i].Forwarded) > FORWARD_DELTA)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment