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

Add support for voq counters in portsorch. #2467

Merged
merged 6 commits into from
Oct 12, 2022
Merged

Add support for voq counters in portsorch. #2467

merged 6 commits into from
Oct 12, 2022

Commits on Oct 6, 2022

  1. swss: Add Voq counter support.

    * Add m_voq_ids to SystemPortInfo to maintain the list of queue ids.
    * Add two new tables COUNTERS_SYSTEM_PORT_NAME_MAP and
      COUNTERS_VOQ_NAME_MAP to enable queuestat to differentiate between
      Port Tx queues and Voqs.
    * Add a new function initializeVoqs that retrieves the number of voqs
      for a system port and stores the voq object ids in m_voq_ids
    * Add code to handle queue type SAI_QUEUE_TYPE_UNICAST_VOQ.
    * Initialize voqs and populate COUNTERS_SYSTEM_PORT_NAME_MAP in
      addSystemPorts function.
    * Update generateQueueMap to generate queue maps for both Txqs and Voq.
      For PHY ports in a voq system both Txqs and Voqs are instantiated. For
      Voqs of remote system port, only Voq counters are initialized.
    skbarista committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    ac40944 View commit details
    Browse the repository at this point in the history
  2. swss: Add Voq counter support.

    * Add m_voq_ids to SystemPortInfo to maintain the list of queue ids.
    * Add two new tables COUNTERS_SYSTEM_PORT_NAME_MAP and
      COUNTERS_VOQ_NAME_MAP to enable queuestat to differentiate between
      Port Tx queues and Voqs.
    * Add a new function initializeVoqs that retrieves the number of voqs
      for a system port and stores the voq object ids in m_voq_ids
    * Add code to handle queue type SAI_QUEUE_TYPE_UNICAST_VOQ.
    * Initialize voqs and populate COUNTERS_SYSTEM_PORT_NAME_MAP in
      addSystemPorts function.
    * Update generateQueueMap to generate queue maps for both Txqs and Voq.
      For PHY ports in a voq system both Txqs and Voqs are instantiated. For
      Voqs of remote system port, only Voq counters are initialized.
    skbarista committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    ec2854a View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2022

  1. Configuration menu
    Copy the full SHA
    a66ba11 View commit details
    Browse the repository at this point in the history
  2. swss: Add Voq counter support.

    * Add m_voq_ids to SystemPortInfo to maintain the list of queue ids.
    * Add two new tables COUNTERS_SYSTEM_PORT_NAME_MAP and
      COUNTERS_VOQ_NAME_MAP to enable queuestat to differentiate between
      Port Tx queues and Voqs.
    * Add a new function initializeVoqs that retrieves the number of voqs
      for a system port and stores the voq object ids in m_voq_ids
    * Add code to handle queue type SAI_QUEUE_TYPE_UNICAST_VOQ.
    * Initialize voqs and populate COUNTERS_SYSTEM_PORT_NAME_MAP in
      addSystemPorts function.
    * Update generateQueueMap to generate queue maps for both Txqs and Voq.
      For PHY ports in a voq system both Txqs and Voqs are instantiated. For
      Voqs of remote system port, only Voq counters are initialized.
    skbarista committed Oct 7, 2022
    Configuration menu
    Copy the full SHA
    e837530 View commit details
    Browse the repository at this point in the history
  3. swss: Add Voq counter support.

    * Add m_voq_ids to SystemPortInfo to maintain the list of queue ids.
    * Add two new tables COUNTERS_SYSTEM_PORT_NAME_MAP and
      COUNTERS_VOQ_NAME_MAP to enable queuestat to differentiate between
      Port Tx queues and Voqs.
    * Add a new function initializeVoqs that retrieves the number of voqs
      for a system port and stores the voq object ids in m_voq_ids
    * Add code to handle queue type SAI_QUEUE_TYPE_UNICAST_VOQ.
    * Initialize voqs and populate COUNTERS_SYSTEM_PORT_NAME_MAP in
      addSystemPorts function.
    * Update generateQueueMap to generate queue maps for both Txqs and Voq.
      For PHY ports in a voq system both Txqs and Voqs are instantiated. For
      Voqs of remote system port, only Voq counters are initialized.
    skbarista committed Oct 7, 2022
    Configuration menu
    Copy the full SHA
    f7dbd55 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2022

  1. swss: Add Voq counter support.

    * Add m_voq_ids to SystemPortInfo to maintain the list of queue ids.
    * Add two new tables COUNTERS_SYSTEM_PORT_NAME_MAP and
      COUNTERS_VOQ_NAME_MAP to enable queuestat to differentiate between
      Port Tx queues and Voqs.
    * Add a new function initializeVoqs that retrieves the number of voqs
      for a system port and stores the voq object ids in m_voq_ids
    * Add code to handle queue type SAI_QUEUE_TYPE_UNICAST_VOQ.
    * Initialize voqs and populate COUNTERS_SYSTEM_PORT_NAME_MAP in
      addSystemPorts function.
    * Update generateQueueMap to generate queue maps for both Txqs and Voq.
      For PHY ports in a voq system both Txqs and Voqs are instantiated. For
      Voqs of remote system port, only Voq counters are initialized.
    skbarista committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    bafdb23 View commit details
    Browse the repository at this point in the history