Hi Ben,

I guess you are looking for this part:

open("/home/centos/rdma.vpp", O_RDONLY) = 8
fstat(8, {st_mode=S_IFREG|0664, st_size=45, ...}) = 0
read(8, "create int rdma host-if enp1s0f1"..., 4096) = 45
readlink("/sys/class/net/enp1s0f1/device/driver/module", 
"../../../../module/mlx5_core", 63) = 28
readlink("/sys/class/net/enp1s0f1/device", "../../../0000:01:00.1", 63) = 21
getuid()                                = 0
geteuid()                               = 0
open("/sys/class/infiniband_verbs/abi_version", O_RDONLY|O_CLOEXEC) = 9
read(9, "6\n", 8)                       = 2
close(9)                                = 0
open("/sys/class/infiniband_verbs/abi_version", O_RDONLY|O_CLOEXEC) = 9
read(9, "6\n", 8)                       = 2
close(9)                                = 0
geteuid()                               = 0
openat(AT_FDCWD, "/sys/class/infiniband_verbs", 
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 9
getdents(9, /* 4 entries */, 32768)     = 112
stat("/sys/class/infiniband_verbs/abi_version", {st_mode=S_IFREG|0444, 
st_size=4096, ...}) = 0
stat("/sys/class/infiniband_verbs/uverbs1", {st_mode=S_IFDIR|0755, st_size=0, 
...}) = 0
open("/sys/class/infiniband_verbs/uverbs1/ibdev", O_RDONLY|O_CLOEXEC) = 10
read(10, "mlx5_1\n", 64)                = 7
close(10)                               = 0
stat("/sys/class/infiniband/mlx5_1", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat("/dev/infiniband/uverbs1", {st_mode=S_IFCHR|0777, st_rdev=makedev(231, 
193), ...}) = 0
open("/sys/class/infiniband_verbs/uverbs1/abi_version", O_RDONLY|O_CLOEXEC) = 10
read(10, "1\n", 8)                      = 2
close(10)                               = 0
open("/sys/class/infiniband_verbs/uverbs1/device/modalias", O_RDONLY|O_CLOEXEC) 
= 10
read(10, "pci:v000015B3d00001013sv000015B3"..., 512) = 54
close(10)                               = 0
getdents(9, /* 0 entries */, 32768)     = 0
close(9)                                = 0
open("/sys/class/infiniband/mlx5_1/node_type", O_RDONLY|O_CLOEXEC) = 9
read(9, "1: CA\n", 16)                  = 6
close(9)                                = 0
readlink("/sys/class/infiniband_verbs/uverbs1/device", "../../../0000:01:00.1", 
63) = 21
open("/dev/infiniband/uverbs1", O_RDWR|O_CLOEXEC) = 9
mmap(NULL, 204800, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f4de4935000
ioctl(9, _IOC(_IOC_READ|_IOC_WRITE, 0x1b, 0x01, 0x18), 0x7f4da149b240) = -1 
ENOTTY (Inappropriate ioctl for device)
uname({sysname="Linux", 
nodename="node4.nfv.surfnet.nl<http://node4.nfv.surfnet.nl>", ...}) = 0
write(9, 
"\0\0\0\0\f\0\24\0p\263I\241M\177\0\0\20\0\0\0\4\0\0\0\0\0\0\0\0\0\0\0"..., 48) 
= 48
brk(NULL)                               = 0x18b7000
brk(0x18d8000)                          = 0x18d8000
mmap(NULL, 4096, PROT_WRITE, MAP_SHARED, 9, 0) = 0x7f4de4a81000
mmap(NULL, 4096, PROT_WRITE, MAP_SHARED, 9, 0x1000) = 0x7f4de4a80000
mmap(NULL, 4096, PROT_WRITE, MAP_SHARED, 9, 0x2000) = 0x7f4de4a7f000
mmap(NULL, 4096, PROT_WRITE, MAP_SHARED, 9, 0x3000) = 0x7f4de4a7e000
mmap(NULL, 4096, PROT_WRITE, MAP_SHARED, 9, 0x4000) = 0x7f4de4a7d000
mmap(NULL, 4096, PROT_WRITE, MAP_SHARED, 9, 0x5000) = 0x7f4de4a7c000
mmap(NULL, 4096, PROT_WRITE, MAP_SHARED, 9, 0x6000) = 0x7f4de4a7b000
mmap(NULL, 4096, PROT_WRITE, MAP_SHARED, 9, 0x7000) = 0x7f4de4a7a000
mmap(NULL, 4096, PROT_READ, MAP_SHARED, 9, 0x500000) = 0x7f4de4a79000
mmap(NULL, 4096, PROT_READ, MAP_SHARED, 9, 0x700000) = 0x7f4de4a78000
open("/proc/cpuinfo", O_RDONLY)         = 11
fstat(11, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f4de4a77000
read(11, "processor\t: 0\nvendor_id\t: Genuin"..., 1024) = 1024
read(11, "hwp_epp spec_ctrl intel_stibp fl"..., 1024) = 1024
read(11, "sbase tsc_adjust bmi1 hle avx2 s"..., 1024) = 1024
read(11, " x2apic movbe popcnt tsc_deadlin"..., 1024) = 1024
read(11, "n pebs bts rep_good nopl xtopolo"..., 1024) = 1024
read(11, " pse tsc msr pae mce cx8 apic se"..., 1024) = 1024
read(11, "KB\nphysical id\t: 0\nsiblings\t: 8\n"..., 1024) = 1024
read(11, "d\t: GenuineIntel\ncpu family\t: 6\n"..., 1024) = 1024
read(11, "l_stibp flush_l1d\nbogomips\t: 720"..., 1024) = 1024
read(11, "hle avx2 smep bmi2 erms invpcid "..., 1024) = 312
read(11, "", 1024)                      = 0
close(11)                               = 0
munmap(0x7f4de4a77000, 4096)            = 0
write(9, 
"\1\0\0\200\1\0&\0@\241I\241M\177\0\0\0\0\r\0\0\0\0\0\0\0\0\0\0\0\0\0", 32) = 32
ioctl(9, _IOC(_IOC_READ|_IOC_WRITE, 0x1b, 0x01, 0x18), 0x7f4da149a070) = -1 
ENOTTY (Inappropriate ioctl for device)
ioctl(9, _IOC(_IOC_READ|_IOC_WRITE, 0x1b, 0x01, 0x18), 0x7f4da149b260) = -1 
ENOTTY (Inappropriate ioctl for device)
write(9, "\2\0\0\0\6\0\n\0\340\261I\241M\177\0\0\1\0\0\0\0\0\0\0", 24) = 24
write(9, "\3\0\0\0\4\0\2\0\260\311I\241M\177\0\0", 16) = 16
write(9, 
"\22\0\0\0\20\0\4\0`\310I\241M\177\0\0\340\365\210\1\0\0\0\0\377\3\0\0\0\0\0\0"...,
 64) = 64
write(9, 
"4\0\0\200\5\0\3\0000\311I\241M\177\0\0\6\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 
112) = 112
write(9, 
"5\0\0\200\3\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\1\0\0\0\2\0\0\0"..., 56) = 56
write(9, 
"7\0\0\200\2\0\2\0\300\311I\241M\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 
40) = 40
write(9, 
"\30\0\0\200\10\0\5\0\20\310I\241M\177\0\0\23\0\4\0\0\0\0\0\10\370\210\1\0\0\0\0"...,
 240) = 240
write(9, 
"2\0\0\200\10\0\1\0\20\311I\241M\177\0\0\1\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0"..., 
96) = 96
write(9, 
"2\0\0\200\10\0\1\0\20\311I\241M\177\0\0\1\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0"..., 
96) = 96
brk(NULL)                               = 0x18d8000
brk(0x1902000)                          = 0x1902000
write(9, 
"\22\0\0\0\20\0\4\0`\310I\241M\177\0\0\240\372\210\1\0\0\0\0\377\3\0\0\0\0\0\0"...,
 64) = 64
write(9, 
"\30\0\0\0\34\0\20\0\320\306I\241M\177\0\0\310\374\210\1\0\0\0\0\0\0\0\0\7\0\0\0"...,
 112) = 112
write(9, 
"\32\0\0\0\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 120) = 
120
write(9, 
"\32\0\0\0\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 120) = 
120
write(9, 
"\32\0\0\0\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 120) = 
120
write(9, 
"\t\0\0\0\f\0\3\0`\311I\241M\177\0\0\0\0\0\0\20\0\0\0\0\0`\2\0\0\0\0"..., 48) = 
48
fcntl(10, F_GETFL)                      = 0 (flags O_RDONLY)
fcntl(10, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
epoll_ctl(6, EPOLL_CTL_ADD, 10, {EPOLLIN, {u32=1, u64=1}}) = 0
write(9, "\2\0\0\0\6\0\n\0\0\310I\241M\177\0\0\1\0\0\0\0\0\0\0", 24) = 24
close(8)                                = 0


If necessary, I can provide the full log.

Thanks for your help!

Regards,

Eyle

On 14 May 2019, at 18:12, Benoit Ganne (bganne) 
<bga...@cisco.com<mailto:bga...@cisco.com>> wrote:

With testpmd the interfaces are usable. I have tried using the new RDMA
driver, but run into permission issues there..
vpp# create int rdma host-if enp1s0f1 name rdma-0
create interface rdma: no RDMA devices available, errno = 13. Is the
ib_uverbs module loaded?: Permission denied
ib_uverbs is loaded..

Does the user running VPP have the permissions to read/write 
/dev/infiniband/uverbs[0-9]+ files?
Could you share the output of:
~# echo "create int rdma host-if enp1s0f1 name rdma-0" > rdma.vpp
~# sudo timeout 10 strace /usr/bin/vpp "unix { nodaemon exec $PWD/rdma.vpp } 
plugins { plugin dpdk_plugin.so { disable } }"
~# sudo dmesg

Thanks.
ben

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13035): https://lists.fd.io/g/vpp-dev/message/13035
Mute This Topic: https://lists.fd.io/mt/31576338/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to