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

Fix Mellanox PMDs Not Being Enabled #1015

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

Conversation

adithyaphilip
Copy link

Hi! I'm a PhD student advised by @justinemarie , and I was having trouble getting BESS to work with a Mellanox NIC. I believe I was able to rectify the issue with the changes in this PR. The fix is two-fold:

  1. Allow the MLX4 and MLX5 PMDs to be enabled individually, we don't require both to be present.
  2. Enable the the PMDs explicitly while configuring DPDK (DPDK disables them by default).

Tested on Ubuntu 18.04 with a ConnectX-4 Lx NIC running at 25 Gbps, using the latest MLX5 PMD (5.1-0.6.6.0).

@tbarbette
Copy link

This patch was needed for me. My OFED is installed, but it would tell me it's not without this patch, because I don't have mlx4. I think with recent OFED only what you need is installed. Thanks!

@shhu00
Copy link

shhu00 commented Nov 16, 2021

Thanks for your code, it is very helpful to me

@MrWLeo
Copy link

MrWLeo commented Dec 24, 2021

Sorry to bother you. I have tried the solution but it still failed. It dropped an error : "Cannot attach PCI device"
And the log writes:
I1224 19:56:38.874467 686 dpdk.cc:72] EAL: Driver cannot attach the device (00000000:af:00.01)
I1224 19:56:38.874562 686 dpdk.cc:72] EAL: Failed to attach device on primary process

@shhu00
Copy link

shhu00 commented Dec 24, 2021

Sorry to bother you. I have tried the solution but it still failed. It dropped an error : "Cannot attach PCI device" And the log writes: I1224 19:56:38.874467 686 dpdk.cc:72] EAL: Driver cannot attach the device (00000000:af:00.01) I1224 19:56:38.874562 686 dpdk.cc:72] EAL: Failed to attach device on primary process

Check the NIC dmesg information to make sure that the NIC starts correctly. Upgrade bess to the latest version, used with dpdk20.11. Install the latest mlx driver for your operating system version according to the contents of this document
http://doc.dpdk.org/guides/nics/mlx5.html

@py-162157
Copy link

thanks, that works for me

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

Successfully merging this pull request may close these issues.

5 participants