Git Product home page Git Product logo

virtio-forwarder's People

Contributors

bluca avatar fjbotha avatar hechaoyong avatar heinrich-kuhn avatar liujin3 avatar peng-mu avatar pietermalan avatar zerun-fu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

virtio-forwarder's Issues

got panic on sock_remove

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]

Dependency on DPDK's makefiles

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.