DPDK containerized applications are not working with Mellanox cards
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Antonio Augusto Vilas Boas Teixeira |
Bug Description
Brief Description
-----------------
When trying to run a DPDK containerized application using VFs from a Mellanox CX5 NIC assigned to a datanetwork, it fails. Upon checking the datanetwork resources in the /etc/pcidp/
Severity
--------
Critical: System/Feature is not usable due to the defect
Steps to Reproduce
------------------
- Set an interface that uses a Mellanox port to pci-sriov class
$ system host-if-modify controller-0 data0 -c pci-sriov -n sriov0 -N 8 --vf-driver=
- Make sure the interface is assigned to a datanetwork
$ system interface-
+------
| hostname | uuid | ifname | datanetwork_name |
+------
| controller-0 | bd55850c-
+------
- Check the /etc/pcidp/
$ sudo cat /etc/pcidp/
"resourceList": [
{
"
"selectors": {
"vendors": [
"15b3"
],
"drivers": [
],
"devices": [
"1018"
],
"pfNames": [
]
}
},
...
Expected Behavior
------------------
In the datanetwork resources the flag '"isRdma": true' should be listed.
Actual Behavior
----------------
There is no "isRdma" flag in the file, which is required so DPDK containers can work with the Mellanox NICs.
Reproducibility
---------------
Reproducible, but not in every host. If it happens in a host it is reproducible every time in this host.
System Configuration
-------
One node system, but should happen in every config.
Branch/Pull Time/Commit
-------
Master branch as of May 2nd, 2022
Last Pass
---------
N/A
Timestamp/Logs
--------------
N/A
Test Activity
-------------
N/A
Workaround
----------
Adding:
"isRdma": true
Under each datanetwork resource that will be used by the pod in the file /etc/pcidp/
"resourceList": [
{
"
"selectors": {
"vendors": [
"15b3"
],
"drivers": [
],
"devices": [
"1018"
],
"pfNames": [
],
"isRdma": true
}
},
Changed in starlingx: | |
assignee: | nobody → Antonio Augusto Vilas Boas Teixeira (aaugusto-wndrvr) |
summary: |
- DPDK applications are not working with Mellanox cards + DPDK containerized applications are not working with Mellanox cards |
tags: | added: stx.7.0 stx.networking |
Changed in starlingx: | |
importance: | Undecided → Medium |
Changed in starlingx: | |
status: | Fix Released → In Progress |
Fix proposed to branch: master /review. opendev. org/c/starlingx /config/ +/841799
Review: https:/