Skip to contentSkip to conversation

Question on using SR-IOV with dpdk apps

DISCUSSION Anjali Kulkarni 3 participants 3 messages Aug 4, 2014 – Aug 5, 2014 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

The 4 devices in qs are at 04:10.0, 04:10.1, 04:10.2, 04:10.3

Anjali

Quoted 100 lines · Anjali Kulkarni

It seems to have detected all 4. But I do see a MAC address not valid:
…
…
(scrolled up)

EAL: PCI device 0000:04:10.1 on NUMA socket 0                      │
EAL:   probe driver: 8086:10ed rte_ixgbevf_pmd                     │
EAL:   PCI memory mapped at 0x7fd39743e000                         │
EAL:   PCI memory mapped at 0x7fd39743a000                         │
PMD:    The MAC address is not valid.                              │
The most likely cause of this error is that the VM host    │
has not assigned a valid MAC address to this VF device.    │
Please consult the DPDK Release Notes (FAQ section) for    │
a possible solution to this problem.                       │
EAL: PCI device 0000:04:10.2 on NUMA socket 0                      │
EAL:   probe driver: 8086:10ed rte_ixgbevf_pmd                     │
EAL:   PCI memory mapped at 0x7fd397436000                         │
EAL:   PCI memory mapped at 0x7fd397432000                         │
EAL: PCI device 0000:04:10.3 on NUMA socket 0                      │
EAL:   probe driver: 8086:10ed rte_ixgbevf_pmd                     │
EAL:   PCI memory mapped at 0x7fd39742e000                         │
EAL:   PCI memory mapped at 0x7fd39742a000                         │
PMD:    The MAC address is not valid.                              │
The most likely cause of this error is that the VM host    │
has not assigned a valid MAC address to this VF device.    │
Please consult the DPDK Release Notes (FAQ section) for    │

a possible solution to this problem.

Quoted 66 lines · Bruce
Quoted 47 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Anjali Kulkarni
Sent: Monday, August 04, 2014 12:45 PM
To: [email protected]
Subject: Re: [dpdk-dev] Question on using SR-IOV with dpdk apps

Forgot to clarify, this is a specialized app, and the first parameter of
each () is the dpdk port no.

Quoted 3 lines · Anjali Kulkarni

Hi,

I am using SR-IOV and pass through to run a DPDK app. I am running it

on

Quoted 1 line

host. SR-IOV should split the NIC into multiple Vfs. I have split each

NIC

Quoted 1 line

into 2 Vfs. However, when I run the DPDK app, I get error initializing

the

Quoted 26 lines

port no.2 of DPDK.
I am running the app with these options:
--rx "(0,0,0,1),(1,0,2,1), (2,0,3,1), (3,0,4,1)" --tx "(0,1), (1,1), (2,1), (3,1)"

This is for 2 physical NICs, each having 2 Vfs. The error I get is:

Initializing NIC port 0 ... |

|RPIOIF DETACHED
|Initializing NIC port 0 RX queue 0 ...                         |
|
|Initializing NIC port 0 TX queue 0 ...                         |
|HOSTIF DETACHED
|Initializing NIC port 1 ...                                    |
|
|Initializing NIC port 1 RX queue 0 ...                         |
|
|Initializing NIC port 1 TX queue 0 ...                         |
|
|Initializing NIC port 2 ...                                    |
|
|PANIC in app_init_nics():                                      |
|
|Cannot init NIC port 2 (-22)
Quoted 10 lines
Quoted 2 lines

Can someone pls clarify how DPDK views it's port nos, i.e. Scans the devices and sees each nic? I see 4 /dev/uioX devices. I assume it

scans

Quoted 1 line

for these igb_uio devices. These are present. Then why can it not

detect

Quoted 5 lines

the other 2 NICs?

Thanks
Anjali

Hi,

For debugging issues with PCI devices not being found, can you please include the output from the EAL on startup, especially any messages concerning the PCI bus scan being done.

Regards,
/Bruce

A message that is not in the archive (sent off-list or not yet received): D0053A5F.2D3C5%[email protected]

#2 lore raw

I had this when the PF was down, bringing it back with "ifup" fixed it. Assuming you've already checked it's not the issue described in the FAQ :)
With a RHEL 6.5 host the ixgbe driver prints the VF MAC addresses in /var/log/syslog when the VFs are enabled

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Anjali Kulkarni
Sent: 04 August 2014 21:26
To: Anjali Kulkarni; Richardson, Bruce; [email protected]
Subject: Re: [dpdk-dev] Question on using SR-IOV with dpdk apps

The 4 devices in qs are at 04:10.0, 04:10.1, 04:10.2, 04:10.3

Anjali

Quoted 29 lines · Anjali Kulkarni

It seems to have detected all 4. But I do see a MAC address not valid:
:
:
(scrolled up)

EAL: PCI device 0000:04:10.1 on NUMA socket 0                      │
EAL:   probe driver: 8086:10ed rte_ixgbevf_pmd                     │
EAL:   PCI memory mapped at 0x7fd39743e000                         │
EAL:   PCI memory mapped at 0x7fd39743a000                         │
PMD:    The MAC address is not valid.                              │
The most likely cause of this error is that the VM host    │
has not assigned a valid MAC address to this VF device.    │
Please consult the DPDK Release Notes (FAQ section) for    │
a possible solution to this problem.                       │
EAL: PCI device 0000:04:10.2 on NUMA socket 0                      │
EAL:   probe driver: 8086:10ed rte_ixgbevf_pmd                     │
EAL:   PCI memory mapped at 0x7fd397436000                         │
EAL:   PCI memory mapped at 0x7fd397432000                         │
EAL: PCI device 0000:04:10.3 on NUMA socket 0                      │
EAL:   probe driver: 8086:10ed rte_ixgbevf_pmd                     │
EAL:   PCI memory mapped at 0x7fd39742e000                         │
EAL:   PCI memory mapped at 0x7fd39742a000                         │
PMD:    The MAC address is not valid.                              │
The most likely cause of this error is that the VM host    │
has not assigned a valid MAC address to this VF device.    │
Please consult the DPDK Release Notes (FAQ section) for    │

a possible solution to this problem.

A message that is not in the archive (sent off-list or not yet received): 78e1ff3841f6401c828eab452ea8b4f1-3XF1nH8AwqXxT4Sa17bWpJLWcSx1hRipwIZJ9u9yWa8oOQlpcoRfSA@public.gmane.org

#4 lore raw

Since some version of ixgbe driver, it will not generate mac address for the VFs. You could use ip link set to set mac address for the VFs.

Quoted 52 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Patrick McGleenon
Sent: Tuesday, August 05, 2014 10:39 PM
To: Anjali Kulkarni; Richardson, Bruce; [email protected]
Subject: Re: [dpdk-dev] Question on using SR-IOV with dpdk apps

I had this when the PF was down, bringing it back with "ifup" fixed it. Assuming
you've already checked it's not the issue described in the FAQ :) With a RHEL 6.5 host the ixgbe driver prints the VF MAC addresses in /var/log/syslog when the VFs are enabled

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Anjali Kulkarni
Sent: 04 August 2014 21:26
To: Anjali Kulkarni; Richardson, Bruce; [email protected]
Subject: Re: [dpdk-dev] Question on using SR-IOV with dpdk apps

The 4 devices in qs are at 04:10.0, 04:10.1, 04:10.2, 04:10.3

Anjali

Quoted 29 lines · Anjali Kulkarni

It seems to have detected all 4. But I do see a MAC address not valid:
:
:
(scrolled up)

EAL: PCI device 0000:04:10.1 on NUMA socket 0                      │
EAL:   probe driver: 8086:10ed rte_ixgbevf_pmd                     │
EAL:   PCI memory mapped at 0x7fd39743e000                         │
EAL:   PCI memory mapped at 0x7fd39743a000                         │
PMD:    The MAC address is not valid.                              │
The most likely cause of this error is that the VM host    │
has not assigned a valid MAC address to this VF device.    │
Please consult the DPDK Release Notes (FAQ section) for    │
a possible solution to this problem.                       │
EAL: PCI device 0000:04:10.2 on NUMA socket 0                      │
EAL:   probe driver: 8086:10ed rte_ixgbevf_pmd                     │
EAL:   PCI memory mapped at 0x7fd397436000                         │
EAL:   PCI memory mapped at 0x7fd397432000                         │
EAL: PCI device 0000:04:10.3 on NUMA socket 0                      │
EAL:   probe driver: 8086:10ed rte_ixgbevf_pmd                     │
EAL:   PCI memory mapped at 0x7fd39742e000                         │
EAL:   PCI memory mapped at 0x7fd39742a000                         │
PMD:    The MAC address is not valid.                              │
The most likely cause of this error is that the VM host    │
has not assigned a valid MAC address to this VF device.    │
Please consult the DPDK Release Notes (FAQ section) for    │

a possible solution to this problem.