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

Adding support for IPoIB interfaces #297

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wmousa
Copy link

@wmousa wmousa commented Dec 17, 2019

The patch allow to ifup/ifdown IPoIB interfaces from network-scripts
The required config is the following
DEVICE=ib0.8005 # ib0 the is IB interface
TYPE=Infiniband # the type is Infiniband
PKEY=yes # indicator that it's IPoIB interface
PKEY_ID=5 # the pkey number

@wmousa wmousa changed the title Adding support for IPoIb interfaces Adding support for IPoIB interfaces Dec 17, 2019
@lnykryn lnykryn requested a review from jamacku December 17, 2019 19:29
Copy link
Member

@jamacku jamacku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename ifdown file to ifdown-ib.

net_log $"ERROR: could not add pkey ${PKEY_ID} as ${DEVICE} on dev ${PHYSDEV}"
exit 1
}
fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also please set spacing of this and following line to 4 spaces. Thank you.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

The patch allow to ifup/ifdown IpoIB interfaces from network-scripts
The required config is the following
DEVICE=ib0.8005 # ib0 the it IB interface
TYPE=Infiniband # the type is Infiniband
PKEY=yes        # indicator that it's IPoIB interface
PKEY_ID=5       # the pkey number
@wmousa
Copy link
Author

wmousa commented Dec 24, 2019

Please rename ifdown file to ifdown-ib.

Done

@wmousa
Copy link
Author

wmousa commented Jan 13, 2020

@jamacku @lnykryn, anything to be done here?

@lnykryn
Copy link
Member

lnykryn commented Jan 13, 2020

We were just discussing this with @jamacku on Friday and I have a feeling that this should not be here. At least on rhel7, there is a rdma package with contains ifup-ib and ifdown-ib scripts. So my guess is that you actually want to have this logic in https://github.com/Mellanox/rdma-utils

@adrianchiris
Copy link

Mellanox/rdma-utils is a repository that is used internally in Mellanox it has a bunch of other stuff that is not needed, nor is it maintained.

ipoib configurations is standard and should not be in a vendor specific repo imo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants