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

core: Handle struct fid_nic through various API calls #4443

Merged
merged 7 commits into from
Oct 1, 2018

Commits on Sep 25, 2018

  1. fabric.h: name the union

    Avoid anonymous unions in a struct (because we name union struct
    members in other places in include/rdma).
    
    Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
    jsquyres authored and shefty committed Sep 25, 2018
    Configuration menu
    Copy the full SHA
    c31a9be View commit details
    Browse the repository at this point in the history
  2. fabric: Add support for freeing a fid_nic

    Define a common function for freeing a fid_nic that providers
    can reference when a fid_nic is closed.
    
    Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
    Signed-off-by: Sean Hefty <sean.hefty@intel.com>
    jsquyres authored and shefty committed Sep 25, 2018
    Configuration menu
    Copy the full SHA
    d89624a View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2018

  1. fabric: Add ability to duplicate a fid_nic

    Add a function that will allocated/duplicate a struct
    fid_nic.  This may be used by providers to copy a fid_nic.
    
    Signed-off-by: Sean Hefty <sean.hefty@intel.com>
    shefty committed Sep 28, 2018
    Configuration menu
    Copy the full SHA
    02e58ae View commit details
    Browse the repository at this point in the history
  2. fabric: Define new FI_DUP control code

    This will be used to duplicate an fid_nic structure.
    
    Signed-off-by: Sean Hefty <sean.hefty@intel.com>
    shefty committed Sep 28, 2018
    Configuration menu
    Copy the full SHA
    4ed08d2 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2018

  1. man/nic: Clarify casting of prov_attr

    Signed-off-by: Sean Hefty <sean.hefty@intel.com>
    shefty committed Oct 1, 2018
    Configuration menu
    Copy the full SHA
    0397ef2 View commit details
    Browse the repository at this point in the history
  2. fabric: Add tostr function to base fid

    This is needed in order to properly print the new fid_nic
    structure, specifically the prov_attr.  But being able to
    print internal details about any fid could be a useful
    debugging tool, even though the output will be provider
    specific.
    
    Expand the base fi_ops with a tostr function and update
    the main fi_tostr() function to handle it.
    
    This replaces the FI_TYPE_DEVICE_ATTR tostr()
    functionality.  Note that this value has never been
    part of a release, so it is safe to remove.
    
    Signed-off-by: Sean Hefty <sean.hefty@intel.com>
    shefty committed Oct 1, 2018
    Configuration menu
    Copy the full SHA
    5cfaa0e View commit details
    Browse the repository at this point in the history
  3. tostr: Rename internal functions with ofi prefix

    Replace fi prefix with ofi for internal calls
    
    Signed-off-by: Sean Hefty <sean.hefty@intel.com>
    shefty committed Oct 1, 2018
    Configuration menu
    Copy the full SHA
    f5d2f1a View commit details
    Browse the repository at this point in the history