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

bnxt_re/lib: Code refactoring in the resource allocation verbs #1436

Merged
merged 5 commits into from
Mar 12, 2024

Commits on Mar 12, 2024

  1. bnxt_re/lib: Helper functions to allocate the queue structures

    Adds few helper functions for the series which reorganize
    the queue memory allocation. Includes functions that allocate/free
    queue memory and get a buffer address from the allocated memory.
    Also, added some data structure changes.
    
    Signed-off-by: Selvin Xavier <[email protected]>
    selvintxavier committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    710f439 View commit details
    Browse the repository at this point in the history
  2. bnxt_re/lib: Refactor Create QP implementation

    Refactor the implementation of create_qp for better readability
    and maintainability. Also, allocate the QP memory and the shadow
    memory for SQ and RQ together. Split this allocated memory and assign
    the  SQ and RQ virtual address from this memory.
    
    Signed-off-by: Selvin Xavier <[email protected]>
    selvintxavier committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    4ff36b7 View commit details
    Browse the repository at this point in the history
  3. bnxt_re/lib: Refactor CQ create verb implementation

    Refactor CQ create function for better maintainability.
    Allocate a memory to hold the queue data structure.
    Makes corresponding changes where the queue structure
    is accessed.
    
    Signed-off-by: Selvin Xavier <[email protected]>
    selvintxavier committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    d035125 View commit details
    Browse the repository at this point in the history
  4. bnxt_re/lib: Refactor srq create verb

    Code refactoring for better maintainability. Allocate the
    queue memory and shadow queues together and use the new
    helper functions to get the address of the queues.
    
    Signed-off-by: Selvin Xavier <[email protected]>
    selvintxavier committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    be29172 View commit details
    Browse the repository at this point in the history
  5. bnxt_re/lib: Remove unused functions

    Remove the unused functions as the lib has moved
    to the newer helper functions.
    
    Signed-off-by: Selvin Xavier <[email protected]>
    selvintxavier committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    c6b85f4 View commit details
    Browse the repository at this point in the history