Commit fc4fcb58 authored by Adam Wujek's avatar Adam Wujek 💬

userspace/snmpd: disable object wrsSwcoreStatus

Return always OK for wrsSwcoreStatus (except for first read).
Logic for this object needs more investigation.
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 7740f5dd
......@@ -78,6 +78,7 @@ static int get_endpoint_status(struct ns_pstats *old,
return ret;
}
/* don't use this function for now, return OK */
static int get_swcore_status(struct ns_pstats *old,
struct wrsPstatsTable_s *new, unsigned int rows,
float t_delta)
......@@ -86,11 +87,15 @@ static int get_swcore_status(struct ns_pstats *old,
int ret;
ret = 0;
/* don't use this function for now, return OK */
return ret;
for (i = 0; i < rows; i++) {
/* TXFrames and Forwarded described in 2.2.3 "Problem with the
* SwCore or Endpoint HDL module" in wrs_failures document
* 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 ( /* shouldn't differ more than 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