netronome / virtio-forwarder Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
I tried set VIRTIOFWD_DYNAMIC_SOCKETS=n in the config。when i add a relay,it's working well,however,when i trying to remove the socket, the main process crashed:
[root@ ~]# /usr/lib64/virtio-forwarder/virtioforwarder_port_control.py add_sock --vhost-path /tmp/test-dpdk-xx.sock --pci-addr=0000:86:00.2
[root@ ~]# /usr/lib64/virtio-forwarder/virtioforwarder_port_control.py remove_sock --vhost-path /tmp/test-dpdk-xx.sock
Traceback (most recent call last):
File "/usr/lib64/virtio-forwarder/virtioforwarder_port_control.py", line 172, in <module>
exit(main())
File "/usr/lib64/virtio-forwarder/virtioforwarder_port_control.py", line 160, in main
reply.ParseFromString(socket.recv())
File "zmq/backend/cython/socket.pyx", line 791, in zmq.backend.cython.socket.Socket.recv
File "zmq/backend/cython/socket.pyx", line 827, in zmq.backend.cython.socket.Socket.recv
File "zmq/backend/cython/socket.pyx", line 191, in zmq.backend.cython.socket._recv_copy
File "zmq/backend/cython/socket.pyx", line 186, in zmq.backend.cython.socket._recv_copy
File "zmq/backend/cython/checkrc.pxd", line 20, in zmq.backend.cython.checkrc._check_rc
zmq.error.Again: Resource temporarily unavailable
Jun 21 16:13:28 virtio-forwarder[3571791]: Got virtio_forwarder_add_vf2('0000:86:00.2', 0, conditional=false)
Jun 21 16:13:28 vio4wd-start.sh[3571790]: EAL: PCI device 0000:86:00.2 on NUMA socket 1
Jun 21 16:13:28 vio4wd-start.sh[3571790]: EAL: probe driver: 15b3:1018 net_mlx5
Jun 21 16:13:28 virtio-forwarder[3571791]: EAL: PCI device 0000:86:00.2 on NUMA socket 1
Jun 21 16:13:28 virtio-forwarder[3571791]: EAL: probe driver: 15b3:1018 net_mlx5
Jun 21 16:13:29 virtio-forwarder[3571791]: Adding DPDK port 0 ('0000:86:00.2') to virtio ('0')
Jun 21 16:13:29 virtio-forwarder[3571791]: Not starting device for relay 0 since virtio not connected
Jun 21 16:13:29 virtio-forwarder[3571791]: Device with port_id=0 already stopped
Jun 21 16:13:29 vio4wd-start.sh[3571790]: Device with port_id=0 already stopped
Jun 21 16:13:29 virtio-forwarder[3571791]: Added dpdk port 0 to relay
Jun 21 16:13:29 vio4wd-start.sh[3571790]: VHOST_CONFIG: vhost-user client: socket created, fd: 57
Jun 21 16:13:29 virtio-forwarder[3571791]: Found CPU 1 for relay 0 vf2virtio
Jun 21 16:13:29 virtio-forwarder[3571791]: Got register_relay_socket(/tmp/test-dpdk-xx.sock, 0)
Jun 21 16:13:29 virtio-forwarder[3571791]: VHOST_CONFIG: vhost-user client: socket created, fd: 57
Jun 21 16:13:29 vio4wd-start.sh[3571790]: VHOST_CONFIG: failed to connect to /tmp/test-dpdk-xx.sock: No such file or directory
Jun 21 16:13:29 vio4wd-start.sh[3571790]: VHOST_CONFIG: /tmp/test-dpdk-xx.sock: reconnecting...
Jun 21 16:13:29 virtio-forwarder[3571791]: VHOST_CONFIG: failed to connect to /tmp/test-dpdk-xx.sock: No such file or directory
Jun 21 16:13:29 virtio-forwarder[3571791]: VHOST_CONFIG: /tmp/test-dpdk-xx.sock: reconnecting...
Jun 21 16:13:29 virtio-forwarder[3571791]: Worker 1 got signal to update state, active_relays=0x00000001
Jun 21 16:13:34 virtio-forwarder[3571791]: PortControlRequest: [op=Virtioforwarder__PortControlRequest__Op(3), num_VFs=0, pci_addrs=<0000:86:>, virtio_id=0]
Jun 21 16:13:34 virtio-forwarder[3571791]: PCI DBDF not passed. Assuming device to be removed is: 0000:86:00.2
Jun 21 16:13:34 virtio-forwarder[3571791]: Got virtio_remove_sock_dev_pair(/tmp/test-dpdk-xx.sock, 0000:86:00.2, false)
Jun 21 16:13:34 virtio-forwarder[3571791]: Got deregister_socket(/tmp/test-dpdk-xx.sock)
Jun 21 16:13:34 virtio-forwarder[3571791]: Got virtio_forwarder_remove_vf2('0000:86:00.2', 0, conditional=false)
Jun 21 16:13:34 virtio-forwarder[3571791]: Stopping PCI '0000:86:00.2' device (port 0)
Jun 21 16:13:34 virtio-forwarder[3571791]: Device with port_id=0 already stopped
Jun 21 16:13:34 vio4wd-start.sh[3571790]: Device with port_id=0 already stopped
Jun 21 16:13:34 virtio-forwarder[3571791]: Worker 1 got signal to update state, active_relays=0x00000000
Jun 21 16:13:34 vio4wd-start.sh[3571790]: Invalid port_id=0
Jun 21 16:13:34 virtio-forwarder[3571791]: Invalid port_id=0
Jun 21 16:13:34 virtio-forwarder[3571791]: Signal: 11
Jun 21 16:13:34 virtio-forwarder[3571791]: -- backtrace --
Jun 21 16:13:34 virtio-forwarder[3571791]: /usr/bin/virtio-forwarder(+0x2e49e7) [0x5594614c69e7]
Jun 21 16:13:34 virtio-forwarder[3571791]: /lib64/libpthread.so.0(+0x12b30) [0x7fe06b4d9b30]
Jun 21 16:13:34 virtio-forwarder[3571791]: /usr/bin/virtio-forwarder(rte_dev_is_probed+0x2) [0x5594615fe132]
Jun 21 16:13:34 virtio-forwarder[3571791]: /usr/bin/virtio-forwarder(rte_dev_remove+0x17) [0x5594615fe407]
Jun 21 16:13:34 virtio-forwarder[3571791]: /usr/bin/virtio-forwarder(+0x2e6f12) [0x5594614c8f12]
Jun 21 16:13:34 virtio-forwarder[3571791]: /usr/bin/virtio-forwarder(virtio_forwarder_remove_vf2+0x3b5) [0x5594614cdfc5]
Jun 21 16:13:34 virtio-forwarder[3571791]: /usr/bin/virtio-forwarder(virtio_remove_sock_dev_pair+0xb1) [0x5594614c8931]
Jun 21 16:13:34 virtio-forwarder[3571791]: /usr/bin/virtio-forwarder(+0x2ee1d6) [0x5594614d01d6]
Jun 21 16:13:34 virtio-forwarder[3571791]: /usr/bin/virtio-forwarder(+0x2eeef2) [0x5594614d0ef2]
Jun 21 16:13:34 virtio-forwarder[3571791]: /usr/bin/virtio-forwarder(+0x2ef23d) [0x5594614d123d]
Jun 21 16:13:34 virtio-forwarder[3571791]: /lib64/libpthread.so.0(+0x815a) [0x7fe06b4cf15a]
Jun 21 16:13:34 virtio-forwarder[3571791]: /lib64/libc.so.6(clone+0x43) [0x7fe06a27fdd3]
Hi,
Please consider removing the dependency on DPDK's makefiles. The RTE SDK scripts are no longer going to be shipped in Debian 10 and Ubuntu 19.04, which means virtio-forwarder will no longer build on those systems.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.