Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mellanox] Add bitmap support for SFP error event #68

Closed
wants to merge 8 commits into from

Commits on Apr 12, 2021

  1. Configuration menu
    Copy the full SHA
    67170da View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2021

  1. Configuration menu
    Copy the full SHA
    152c098 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2021

  1. Configuration menu
    Copy the full SHA
    db0b066 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2021

  1. Configuration menu
    Copy the full SHA
    df81073 View commit details
    Browse the repository at this point in the history
  2. Support handling the error status of SFP modules

    1. Update get_change_event
       - Return event in a bitmap format in case there is an error
       - Return an extra map indexed by sfp_error in case there is a Mellanox-specific error
       - Indicate whether the error is a blocking error
    2. Expose the error status of SFP modules to CLI
       - A platform API calls SDK API to fetch the error status
         - Display the SFP module state: plugged, unplugged and plugged with error.
         - The SFP error state is displayed only if the SFP module state is plugged with error
       - The CLI will call platform API and provide user-friendly output
    3. Redirect stderr to /dev/null in order to eliminate errors in case SFP module is not plugged
    4. Beautify the code, making all the state/error/descriptions defined in a uniform place
    
    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    stephenxs committed Jun 7, 2021
    Configuration menu
    Copy the full SHA
    661507d View commit details
    Browse the repository at this point in the history
  3. Address comments

    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    stephenxs committed Jun 7, 2021
    Configuration menu
    Copy the full SHA
    cb8bfdc View commit details
    Browse the repository at this point in the history
  4. Address review comment

    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    stephenxs committed Jun 7, 2021
    Configuration menu
    Copy the full SHA
    d4b63df View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2021

  1. Merge pull request #80 from stephenxs/sfp-bit-map-enhance

    Support handling the error status of SFP modules
    Junchao-Mellanox authored Jun 8, 2021
    Configuration menu
    Copy the full SHA
    cb5135f View commit details
    Browse the repository at this point in the history