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
findalldevstest fails on Intel 82599 with SR-IOV enabled #389
Comments
Well, this is ultimately a
Apparently, it's returning a non-zero value and not setting
It might be interesting to run |
Ah, that is interesting. I wonder what exactly it is getting caught on. As requested: root@oa4-hv-9210:~/tmp/libpcap-1.6.2# strace ./findalldevstest
execve("./findalldevstest", ["./findalldevstest"], [/* 18 vars */]) = 0
brk(0) = 0x14c5000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd4c0b46000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=23276, ...}) = 0
mmap(NULL, 23276, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd4c0b40000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\30\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1815224, ...}) = 0
mmap(NULL, 3929304, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd4c0566000
mprotect(0x7fd4c071b000, 2097152, PROT_NONE) = 0
mmap(0x7fd4c091b000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b5000) = 0x7fd4c091b000
mmap(0x7fd4c0921000, 17624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd4c0921000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd4c0b3f000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd4c0b3e000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd4c0b3d000
arch_prctl(ARCH_SET_FS, 0x7fd4c0b3e700) = 0
mprotect(0x7fd4c091b000, 16384, PROT_READ) = 0
mprotect(0x637000, 8192, PROT_READ) = 0
mprotect(0x7fd4c0b48000, 4096, PROT_READ) = 0
munmap(0x7fd4c0b40000, 23276) = 0
socket(PF_NETLINK, SOCK_RAW, 0) = 3
bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(3, {sa_family=AF_NETLINK, pid=7842, groups=00000000}, [12]) = 0
sendto(3, "\24\0\0\0\22\0\1\3\300\310FT\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\344\3\0\0\20\0\2\0\300\310FT\242\36\0\0\0\0\4\3\1\0\0\0I\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=MSG_TRUNC}, 0) = 4096
close(3) = 0
write(2, "Error in pcap_findalldevs: getif"..., 47Error in pcap_findalldevs: getifaddrs: Success
) = 47
exit_group(1) Full strings: execve("./findalldevstest", ["./findalldevstest"], [/* 18 vars */]) = 0
brk(0) = 0x20c8000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5b02c81000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=23276, ...}) = 0
mmap(NULL, 23276, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5b02c7b000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\30\2\0\0\0\0\0@\0\0\0\0\0\0\0\370\251\33\0\0\0\0\0\0\0\0\0@\0008\0\n\0@\0#\0\"\0\6\0\0\0\5\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0000\2\0\0\0\0\0\0000\2\0\0\0\0\0\0\10\0\0\0\0\0\0\0\3\0\0\0\4\0\0\0\20K\30\0\0\0\0\0\20K\30\0\0\0\0\0\20K\30\0\0\0\0\0\34\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\20\0\0\0\0\0\0\0\1\0\0\0\5\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\34I\33\0\0\0\0\0\34I\33\0\0\0\0\0\0\0 \0\0\0\0\0\1\0\0\0\6\0\0\0\0W\33\0\0\0\0\0\0W;\0\0\0\0\0\0W;\0\0\0\0\0`Q\0\0\0\0\0\0\330\235\0\0\0\0\0\0\0\0 \0\0\0\0\0\2\0\0\0\6\0\0\0@\213\33\0\0\0\0\0@\213;\0\0\0\0\0@\213;\0\0\0\0\0\340\1\0\0\0\0\0\0\340\1\0\0\0\0\0\0\10\0\0\0\0\0\0\0\4\0\0\0\4\0\0\0p\2\0\0\0\0\0\0p\2\0\0\0\0\0\0p\2\0\0\0\0\0\0D\0\0\0\0\0\0\0D\0\0\0\0\0\0\0\4\0\0\0\0\0\0\0\7\0\0\0\4\0\0\0\0W\33\0\0\0\0\0\0W;\0\0\0\0\0\0W;\0\0\0\0\0\20\0\0\0\0\0\0\0p\0\0\0\0\0\0\0\20\0\0\0\0\0\0\0P\345td\4\0\0\0,K\30\0\0\0\0\0,K\30\0\0\0\0\0,K\30\0\0\0\0\0\254h\0\0\0\0\0\0\254h\0\0\0\0\0\0\4\0\0\0\0\0\0\0Q\345td\6\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\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\0\0\0\0R\345td\4\0\0\0\0W\33\0\0\0\0\0\0W;\0\0\0\0\0\0W;\0\0\0\0\0\0009\0\0\0\0\0\0\0009\0\0\0\0\0\0\1\0\0\0\0\0\0\0\4\0\0\0\24\0\0\0\3\0\0\0GNU\0SQO|\232\326aG\3\254\1\375|\274\311\323\306\366!\315\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\2\0\0\0\6\0\0\0\30\0\0\0\0\0\0\0\363\3\0\0\t\0\0\0\0\1\0\0\16\0\0\0\0000\20D\240 \2\1\210\3\346\220\305E\214\0\300\0\10\0\5\200\0`\300\200\0\r\212\f\0\4\20\0\210D2\10.@\210P4, \16\"H&\204\300\214\4\10\0\2\2\16\241\254\32\4f\300\0\3002\0\300\0P\1 \201\10\204\v ($\0\4 P\0\20X\200\312DB(\0\6\200\20\30B\0 @\200\0\tP\0Q\212@\20\0\0\0\0\10\0\0\21\20", 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1815224, ...}) = 0
mmap(NULL, 3929304, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5b026a1000
mprotect(0x7f5b02856000, 2097152, PROT_NONE) = 0
mmap(0x7f5b02a56000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b5000) = 0x7f5b02a56000
mmap(0x7f5b02a5c000, 17624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5b02a5c000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5b02c7a000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5b02c79000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5b02c78000
arch_prctl(ARCH_SET_FS, 0x7f5b02c79700) = 0
mprotect(0x7f5b02a56000, 16384, PROT_READ) = 0
mprotect(0x637000, 8192, PROT_READ) = 0
mprotect(0x7f5b02c83000, 4096, PROT_READ) = 0
munmap(0x7f5b02c7b000, 23276) = 0
socket(PF_NETLINK, SOCK_RAW, 0) = 3
bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(3, {sa_family=AF_NETLINK, pid=7966, groups=00000000}, [12]) = 0
sendto(3, "\24\0\0\0\22\0\1\3\204\313FT\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\344\3\0\0\20\0\2\0\204\313FT\36\37\0\0\0\0\4\3\1\0\0\0I\0\1\0\0\0\0\0\7\0\3\0lo\0\0\10\0\r\0\0\0\0\0\5\0\20\0\0\0\0\0\5\0\21\0\0\0\0\0\10\0\4\0004@\0\0\10\0\33\0\0\0\0\0\f\0\6\0noqueue\0$\0\16\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\0\0\0\0\0\0\n\0\1\0\0\0\0\0\0\0\0\0\n\0\2\0\0\0\0\0\0\0\0\0`\0\7\0\4\0\0\0\4\0\0\0\364\1\0\0\364\1\0\0\0\0\0\0\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\377\377\377\377\310Y\27\2\20\0\2\0\3\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\3\0\0\0\0\0\0\0\f\0\4\0\3\0\0\0\0\0\0\0T\0\1\0(\0\1\0\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\4\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\4\0\0\0\0\0\0\0\f\0\4\0\4\0\0\0\0\0\0\0T\0\1\0(\0\1\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\5\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\5\0\0\0\0\0\0\0\f\0\4\0\5\0\0\0\0\0\0\0T\0\1\0(\0\1\0\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\6\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\6\0\0\0\0\0\0\0\f\0\4\0\6\0\0\0\0\0\0\0T\0\1\0(\0\1\0\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\7\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\7\0\0\0\0\0\0\0\f\0\4\0\7\0\0\0\0\0\0\0T\0\1\0(\0\1\0\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\10\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\10\0\0\0\0\0\0\0\f\0\4\0\10\0\0\0\0\0\0\0T\0\1\0(\0\1\0\t\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\t\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\t\0\0\0\0\0\0\0\f\0\4\0\t\0\0\0\0\0\0\0T\0\1\0(\0\1\0\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\n\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\n\0\0\0\0\0\0\0\f\0\4\0\n\0\0\0\0\0\0\0T\0\1\0(\0\1\0\v\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\v\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\v\0\0\0\0\0\0\0\f\0\4\0\v\0\0\0\0\0\0\0T\0\1\0(\0\1\0\f\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\f\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\f\0\0\0\0\0\0\0\f\0\4\0\f\0\0\0\0\0\0\0T\0\1\0(\0\1\0\r\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\r\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\r\0\0\0\0\0\0\0\f\0\4\0\r\0\0\0\0\0\0\0T\0\1\0(\0\1\0\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\16\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\16\0\0\0\0\0\0\0\f\0\4\0\16\0\0\0\0\0\0\0T\0\1\0(\0\1\0\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\17\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\17\0\0\0\0\0\0\0\f\0\4\0\17\0\0\0\0\0\0\0T\0\1\0(\0\1\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\20\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\20\0\0\0\0\0\0\0\f\0\4\0\20\0\0\0\0\0\0\0T\0\1\0(\0\1\0\21\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\21\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\21\0\0\0\0\0\0\0\f\0\4\0\21\0\0\0\0\0\0\0T\0\1\0(\0\1\0\22\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\22\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\22\0\0\0\0\0\0\0\f\0\4\0\22\0\0\0\0\0\0\0T\0\1\0(\0\1\0\23\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\23\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\23\0\0\0\0\0\0\0\f\0\4\0\23\0\0\0\0\0\0\0T\0\1\0(\0\1\0\24\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\24\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\24\0\0\0\0\0\0\0\f\0\4\0\24\0\0\0\0\0\0\0T\0\1\0(\0\1\0\25\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\25\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\25\0\0\0\0\0\0\0\f\0\4\0\25\0\0\0\0\0\0\0T\0\1\0(\0\1\0\26\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\26\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\26\0\0\0\0\0\0\0\f\0\4\0\26\0\0\0\0\0\0\0T\0\1\0(\0\1\0\27\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\27\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\27\0\0\0\0\0\0\0\f\0\4\0\27\0\0\0\0\0\0\0T\0\1\0(\0\1\0\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\30\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\30\0\0\0\0\0\0\0\f\0\4\0\30\0\0\0\0\0\0\0T\0\1\0(\0\1\0\31\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\31\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\31\0\0\0\0\0\0\0\f\0\4\0\31\0\0\0\0\0\0\0T\0\1\0(\0\1\0\32\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\32\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\32\0\0\0\0\0\0\0\f\0\4\0\32\0\0\0\0\0\0\0T\0\1\0(\0\1\0\33\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\33\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\33\0\0\0\0\0\0\0\f\0\4\0\33\0\0\0\0\0\0\0T\0\1\0(\0\1\0\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\34\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\34\0\0\0\0\0\0\0\f\0\4\0\34\0\0\0\0\0\0\0T\0\1\0(\0\1\0\35\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\35\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\35\0\0\0\0\0\0\0\f\0\4\0\35\0\0\0\0\0\0\0T\0\1\0(\0\1\0\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0\36\0\0\0\0\0\0\0\0\0\0\0\f\0\3\0\36\0\0\0\0\0\0\0\f\0\4\0\36\0\0\0\0\0\0\0T\0\1\0(\0\1\0\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10Z\27\2\20\210\377\377H\326\24\201\377\377\377\377\310Y\27\2\20\0\2\0", 4096}], msg_controllen=0, msg_flags=MSG_TRUNC}, 0) = 4096
close(3) = 0
write(2, "Error in pcap_findalldevs: getifaddrs: Success\n", 47Error in pcap_findalldevs: getifaddrs: Success
) = 47
exit_group(1) = ? |
OK, so there weren't any failures at the system call layer, so presumably glibc didn't like what it got back from the If Glibc 2.15 appears to use a fixed one-page buffer for I don't (yet) know why the netlink socket wants to provide more than 4K bytes of data here. |
What happens if you run (If |
glibc version is 2.15-0.ubuntu10.5. The only thing I can think of is that when SR-IOV is enabled, essentially each VF is its own NIC able to be passed through to a VM. That means that for a setting of 32VFs per device, that would come to 256 NICs on the ZX9210. However, the extra VFs will not be used by the hypervisor because the As requested, SR-IOV disabled:
SR-IOV enabled:
Pretty much the same. However, this may help.. SR-IOV disabled:
SR-IOV enabled:
|
The only differences I see are the order of the interfaces and the MAC address of |
Could you confirm if this bug still reproduces on the current master branch? |
Thank you for providing detailed diagnostics, but without current information it is impossible to work on this issue. If it reproduces on modern glibc and the current master branch of libpcap, please tell it (it may still land at glibc though). Otherwise this issue will be closed in 10 days. |
It is time. |
I first found this issue with software that depends on libpcap (tcpreplay), but we found that the same error occurs using
findalldevstest
inlibpcap-1.6.2
and they asked that I file a bug report here. SR-IOV is enabled, but no VMs are running. The following is the error that occurred after a full build from source (which was successful):With SR-IOV disabled (by not specifying max_vfs to the ixgbe driver), the following occurs. The only complaint is about an interface without an address, which is true:
The first device tested is a ZNYX ZX9210 ATCA compute module with 2x Intel Niantic 82599 10GbE chips, for a total of 4x10GbE devices (eth0..3). By default, SR-IOV is enabled so virtual machines can use the much faster SR-IOV Virtual Functions rather than relying on forwarding traffic through the CPU to the VMs. The second device is the ZNYX B1 Compute Resource (beta unit) with 4x Intel Niantic 82599 10GbE chips for a total of 8x10GbE devices (eth2..9). The results are the same: with SR-IOV enabled, libpcap's findalldevstest fails with "Error in pcap_findalldevs: getifaddrs: Success"
The following might help (output from the ZX9210):
Please let me know if there is any additional information I can provide or patches that need testing. If someone would like to recreate the issue, they will need an Intel 82599 NIC with the
max_vfs
option provided to theixgbe
driver. I have not tested other devices with SR-IOV.The text was updated successfully, but these errors were encountered: