-
Notifications
You must be signed in to change notification settings - Fork 42
example-cnf | Improvements for Mellanox support #661
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
base: main
Are you sure you want to change the base?
Conversation
from change #661:
|
📝 WalkthroughWalkthroughThis change introduces a new variable, Changes
Suggested reviewers
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
from change #661:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
roles/example_cnf_deploy/README.md (1)
117-119
: Fix plural agreement and streamline phrasing.
Change "other type of cards" to "other types of cards" and tighten the Mellanox sentence for clarity.- This configuration is related to Intel cards. If you are using other type of cards, you need to apply the corresponding modifications (`device_id` and `vendor` will change, among others). For example, [for Mellanox cards](https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/networking/hardware-networks#example-vf-use-in-dpdk-mode-mellanox_using-dpdk-and-rdma), you need to use `netdevice` instead of `vfio-pci`, and also enable RDMA (`is_rdma: true`). + This configuration is related to Intel cards. If you are using other types of cards, apply the corresponding modifications (`device_id` and `vendor` will change, among others`). For Mellanox cards, use `netdevice` instead of `vfio-pci` and enable RDMA (`is_rdma: true`) (see https://docs.redhat.com/.../example-vf-use-in-dpdk-mode-mellanox_using-dpdk-and-rdma).🧰 Tools
🪛 LanguageTool
[grammar] ~117-~117: In this context, ‘type’ should agree in number with the noun after ‘of’.
Context: ... to Intel cards. If you are using other type of cards, you need to apply the corresponding mo...(TYPE_OF_PLURAL)
[style] ~117-~117: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...mode-mellanox_using-dpdk-and-rdma), you need to usenetdevice
instead ofvfio-pci
, ...(REP_NEED_TO_VB)
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (5)
roles/example_cnf_deploy/README.md
(2 hunks)roles/example_cnf_deploy/defaults/main.yml
(1 hunks)roles/example_cnf_deploy/templates/grout-cr.yaml.j2
(1 hunks)roles/example_cnf_deploy/templates/testpmd-cr.yaml.j2
(1 hunks)roles/example_cnf_deploy/templates/trex-server-cr.yaml.j2
(1 hunks)
🧰 Additional context used
🪛 LanguageTool
roles/example_cnf_deploy/README.md
[grammar] ~117-~117: In this context, ‘type’ should agree in number with the noun after ‘of’.
Context: ... to Intel cards. If you are using other type of cards, you need to apply the corresponding mo...
(TYPE_OF_PLURAL)
[style] ~117-~117: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...mode-mellanox_using-dpdk-and-rdma), you need to use netdevice
instead of vfio-pci
, ...
(REP_NEED_TO_VB)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: Sanity Check (stable-2.17)
- GitHub Check: Sanity Check (stable-2.9)
- GitHub Check: Ansible-lint Check
🔇 Additional comments (6)
roles/example_cnf_deploy/defaults/main.yml (2)
70-74
: Well-documented new feature for Mellanox supportThe comment clearly explains why privileged mode is necessary for Mellanox cards, providing good context about the netdevice vs vfio-pci difference and the requirement to access
/dev/vfio/vfio
. The reference to the Red Hat solution article is particularly helpful.
74-74
: Sensible security defaultSetting
ecd_enable_privileged_mode
tofalse
by default is a good security practice - privileged mode should only be enabled when specifically needed.roles/example_cnf_deploy/templates/testpmd-cr.yaml.j2 (1)
7-7
: Consistent implementation of privileged mode toggleThe template now properly uses the
ecd_enable_privileged_mode
variable instead of a hardcoded value, making the TestPMD configuration consistent with the other components.roles/example_cnf_deploy/templates/trex-server-cr.yaml.j2 (1)
19-19
: Good placement for privileged mode settingThe
privileged
field is appropriately added to the spec section, making it clear how to configure the TRex server with privileged mode when needed for Mellanox cards.roles/example_cnf_deploy/templates/grout-cr.yaml.j2 (1)
7-7
: Consistent implementation across all templatesThe Grout template now uses the same variable-based approach as the other templates, ensuring consistent behavior across all components when Mellanox cards are used.
roles/example_cnf_deploy/README.md (1)
48-48
: Excellent addition ofecd_enable_privileged_mode
.
This new variable clearly documents the need for privileged mode when using Mellanox cards and why a hostPath volume alone is insufficient.
Build succeeded. ✔️ dci-rpm-build-el8 SUCCESS in 3m 06s |
b834ef8
to
fc4b8a9
Compare
from change #661:
|
1 similar comment
from change #661:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (3)
roles/example_cnf_deploy/README.md (3)
48-48
: Fix missing article for clarity.
Insert “the” before “host” for grammatical correctness:…requires access to /dev/vfio/vfio from the host. Using a volume…
🧰 Tools
🪛 LanguageTool
[uncategorized] ~48-~48: You might be missing the article “the” here.
Context: ... requires access to /dev/vfio/vfio from host. Using a volume with hostPath is not en...(AI_EN_LECTOR_MISSING_DETERMINER_THE)
116-116
: Use plural for ‘types’ and refine phrasing.
Change “other type of cards” to “other types of cards” and consider rephrasing to reduce repetition (e.g., “If you are using cards from other vendors…”).🧰 Tools
🪛 LanguageTool
[grammar] ~116-~116: In this context, ‘type’ should agree in number with the noun after ‘of’.
Context: ... to Intel cards. If you are using other type of cards, you need to apply the corresponding mo...(TYPE_OF_PLURAL)
[style] ~116-~116: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...mode-mellanox_using-dpdk-and-rdma), you need to usenetdevice
instead ofvfio-pci
, ...(REP_NEED_TO_VB)
117-117
: Improve reminder discoverability.
Consider moving the Mellanox privileged-mode note closer to theecd_enable_privileged_mode
variable above or adding an inline link for easier reference.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (5)
roles/example_cnf_deploy/README.md
(2 hunks)roles/example_cnf_deploy/defaults/main.yml
(1 hunks)roles/example_cnf_deploy/templates/grout-cr.yaml.j2
(1 hunks)roles/example_cnf_deploy/templates/testpmd-cr.yaml.j2
(1 hunks)roles/example_cnf_deploy/templates/trex-server-cr.yaml.j2
(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (4)
- roles/example_cnf_deploy/templates/testpmd-cr.yaml.j2
- roles/example_cnf_deploy/templates/trex-server-cr.yaml.j2
- roles/example_cnf_deploy/templates/grout-cr.yaml.j2
- roles/example_cnf_deploy/defaults/main.yml
🧰 Additional context used
🪛 LanguageTool
roles/example_cnf_deploy/README.md
[uncategorized] ~48-~48: You might be missing the article “the” here.
Context: ... requires access to /dev/vfio/vfio from host. Using a volume with hostPath is not en...
(AI_EN_LECTOR_MISSING_DETERMINER_THE)
[grammar] ~116-~116: In this context, ‘type’ should agree in number with the noun after ‘of’.
Context: ... to Intel cards. If you are using other type of cards, you need to apply the corresponding mo...
(TYPE_OF_PLURAL)
[style] ~116-~116: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...mode-mellanox_using-dpdk-and-rdma), you need to use netdevice
instead of vfio-pci
, ...
(REP_NEED_TO_VB)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: Sanity Check (stable-2.17)
- GitHub Check: Sanity Check (stable-2.9)
- GitHub Check: Ansible-lint Check
Build succeeded. ✔️ dci-rpm-build-el8 SUCCESS in 2m 56s |
from change #661: |
from change #661: |
recheck |
Build succeeded. ✔️ dci-rpm-build-el8 SUCCESS in 2m 50s |
from change #661: |
from change #661: |
recheck |
Build succeeded. ✔️ dci-rpm-build-el8 SUCCESS in 2m 45s |
from change #661: |
recheck |
Build succeeded. ✔️ dci-rpm-build-el8 SUCCESS in 2m 46s |
from change #661: |
recheck |
Build succeeded. ✔️ dci-rpm-build-el8 SUCCESS in 2m 48s |
from change #661: |
recheck |
Build succeeded. ✔️ dci-rpm-build-el8 SUCCESS in 2m 51s |
from change #661: |
SUMMARY
ISSUE TYPE
Tests
build-depends: openshift-kni/example-cnf#122
TestDallasWorkload: example-cnf-green example-cnf-green:ansible_extravars=ecd_run_deployment:0 example-cnf-green:ansible_extravars=dci_teardown_on_success:false