DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] mellanox connect-x 3 pro dpdk with openvswitch
@ 2018-06-11  9:15 Tobias Urdin
  2018-06-11  9:51 ` Raslan Darawsheh
  0 siblings, 1 reply; 14+ messages in thread
From: Tobias Urdin @ 2018-06-11  9:15 UTC (permalink / raw)
  To: users

Hello,

I'm stuck trying to test DPDK with a Mellanox Connect-X 3 Pro card on Ubuntu 16.04

I've enabled iommu, fixed hugepages and has installed and are running the openvswitch-switch-dpdk alternative.

$lspci | grep -i mellanox
3b:00.0 Ethernet controller: Mellanox Technologies MT27520 Family [ConnectX-3 Pro]

$lsmod | grep -i mlx
mlx4_en               110592  0
vxlan                  49152  2 i40e,mlx4_en
mlx4_core             286720  1 mlx4_en
ptp                    20480  3 igb,i40e,mlx4_en

$cat /etc/modprobe.d/mlx4_core.conf
options mlx4_core log_num_mgm_entry_size=-1


$ovs-vsctl add-port br-mlx dpdk0 -- set Interface dpdk0 type=dpdk

    Bridge br-mlx
        Port "dpdk0"
            Interface "dpdk0"
                type: dpdk
                error: "'dpdk0' is missing 'options:dpdk-devargs'. The old 'dpdk<port_id>' names are not supported"


$ovs-vsctl add-port br-mlx enp59s0d1 -- set Interface enp59s0d1 type=dpdk options:dpdk-devargs=0000:3b:00.0,1
ovs-vsctl: Error detected while setting up 'enp59s0d1': Error attaching device '0000:3b:00.0,1' to DPDK.  See ovs-vswitchd log for details.
ovs-vsctl: The default log directory is "/var/log/openvswitch".

2018-06-11T09:10:38.696Z|00177|netdev_dpdk|WARN|Error attaching device '0000:3b:00.0,1' to DPDK
2018-06-11T09:10:38.696Z|00178|netdev|WARN|enp59s0d1: could not set configuration (Invalid argument)

2018-06-11T09:12:50.994Z|00181|dpdk|ERR|EAL: Driver cannot attach the device (0000:3b:00.0)
2018-06-11T09:12:50.994Z|00182|dpdk|ERR|EAL: No port found for device (0000:3b:00.0)
2018-06-11T09:12:50.994Z|00183|netdev_dpdk|WARN|Error attaching device '0000:3b:00.0,1' to DPDK
2018-06-11T09:12:50.994Z|00184|netdev|WARN|enp59s0d1: could not set configuration (Invalid argument)

$ovs-vsctl add-port br-mlx dpdk0 -- set Interface dpdk0 type=dpdk options:dpdk-devargs="class=eth,mac=ec:0d:9a:b0:13:21"
ovs-vsctl: Error detected while setting up 'dpdk0': Error attaching device 'class=eth,mac=ec:0d:9a:b0:13:21' to DPDK.  See ovs-vswitchd log for details.
ovs-vsctl: The default log directory is "/var/log/openvswitch".

        Port "dpdk0"
            Interface "dpdk0"
                type: dpdk
                options: {dpdk-devargs="class=eth,mac=ec:0d:9a:b0:13:21"}
                error: "Error attaching device 'class=eth,mac=ec:0d:9a:b0:13:21' to DPDK"


Anybody know what I might have missed? I have tried restarting the openvswitch services after adding the interfaces as well but no difference.

The logs doesn't say anything interesting from what I can see :(

Best regards

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-06-12  7:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-11  9:15 [dpdk-users] mellanox connect-x 3 pro dpdk with openvswitch Tobias Urdin
2018-06-11  9:51 ` Raslan Darawsheh
2018-06-11  9:59   ` Tobias Urdin
2018-06-11 10:57     ` Raslan Darawsheh
2018-06-11 11:15       ` Tobias Urdin
2018-06-11 11:19         ` Raslan Darawsheh
2018-06-11 11:34           ` Tobias Urdin
2018-06-11 11:37             ` Raslan Darawsheh
2018-06-11 11:45               ` Tobias Urdin
2018-06-11 11:51                 ` Raslan Darawsheh
2018-06-11 12:05                   ` Tobias Urdin
2018-06-11 12:07                     ` Raslan Darawsheh
2018-06-11 12:14                       ` Tobias Urdin
2018-06-12  7:13                         ` Raslan Darawsheh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).