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

UDP doesn't work because of ANS DPDK "Too many user" errno #10

Open
Jerry-Tianchen opened this issue Oct 17, 2022 · 0 comments
Open

UDP doesn't work because of ANS DPDK "Too many user" errno #10

Jerry-Tianchen opened this issue Oct 17, 2022 · 0 comments

Comments

@Jerry-Tianchen
Copy link

UDP of dpdk_iperf is not working:

I took a look at the recvfrom() and sendto() function in ans_module.c, and the function directly return hardcoded -1.
I filled in these two functions according to the format of other tasks in ans_module.c
However, new problems:

`-----------------------------------------------------------
Server listening on 5201

epoll create start, EPOLL_CTL_ADD 1 ,EPOLL_CTL_DEL 2, EPOLLOUT 0x4, EPOLLIN:0x1
ans epoll fd 2036
epoll ctl start, epfd 2036 ,op 1, fd 2035, event:0x1
ans accept fd 37
epoll ctl start, epfd 2036 ,op 1, fd 2037, event:0x1
fcntl(F_GETFL): Bad file descriptor
ans write: fd 37 , len 1, return value:1, errno:0, strerror = Success
socket create start , domain 2, type 2, protocol 0
ans socket fd 2038
USER8: LCORE[0] setsockopt: not support optname 2
sockfd: 2038, bind ip: 200000a , port 5201, family:2
bind successepoll ctl start, epfd 2036 ,op 1, fd 2038, event:0x1
ans write: fd 37 , len 1, return value:1, errno:0, strerror = Success
Accepted connection from ::, port 60192
An unknown state was sent by the client, ignoring it.
ans fd 38 recv data len 4
fd(2038) start to connect
socket create start , domain 2, type 2, protocol 0
ans socket fd 2039
USER8: LCORE[0] setsockopt: not support optname 2
sockfd: 2039, bind ip: 200000a , port 5201, family:2
bind return error, errno: 87
ans close fd 39, pid 8139
ans close fd 37, pid 8139
ans close fd 35, pid 8139
iperf3: error - unable to start stream listener:
socket create start , domain 2, type 1, protocol 0
ans socket fd 2040
USER8: LCORE[0] setsockopt: not support optname 2
sockfd: 2040, bind ip: 200000a , port 5201, family:2
bind successans listen fd 40, pid 8139

Server listening on 5201
-----------------------------------------------------------`

The error is from ANS side. "Too many users" error.
I am not sure if the author simply forgot this part when he claimed that "UDP did work"
[https://github.com//issues/1]

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

No branches or pull requests

1 participant