1. 27 1月, 2014 1 次提交
  2. 27 2月, 2013 1 次提交
  3. 02 2月, 2013 4 次提交
    • J
      tap: multiqueue support · 264986e2
      Jason Wang 提交于
      Recently, linux support multiqueue tap which could let userspace call TUNSETIFF
      for a signle device many times to create multiple file descriptors as
      independent queues. User could also enable/disabe a specific queue through
      TUNSETQUEUE.
      
      The patch adds the generic infrastructure to create multiqueue taps. To achieve
      this a new parameter "queues" were introduced to specify how many queues were
      expected to be created for tap by qemu itself. Alternatively, management could
      also pass multiple pre-created tap file descriptors separated with ':' through a
      new parameter fds like -netdev tap,id=hn0,fds="X:Y:..:Z". Multiple vhost file
      descriptors could also be passed in this way.
      
      Each TAPState were still associated to a tap fd, which mean multiple TAPStates
      were created when user needs multiqueue taps. Since each TAPState contains one
      NetClientState, with the multiqueue nic support, an N peers of NetClientState
      were built up.
      
      A new parameter, mq_required were introduce in tap_open() to create multiqueue
      tap fds.
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      264986e2
    • J
      tap: introduce a helper to get the name of an interface · e5dc0b40
      Jason Wang 提交于
      This patch introduces a helper tap_get_ifname() to get the device name of tap
      device. This is needed when ifname is unspecified in the command line and qemu
      were asked to create tap device by itself. In this situation, the name were
      allocated by kernel, so if multiqueue is asked, we need to fetch its name after
      creating the first queue.
      
      Only linux has this support since it's the only platform that supports
      multiqueue tap.
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      e5dc0b40
    • J
      tap: add Linux multiqueue support · 94fdc6d0
      Jason Wang 提交于
      This patch add basic multiqueue support for Linux. When multiqueue is needed, we
      will first check whether kernel support multiqueue tap before creating more
      queues. Two new functions tap_fd_enable() and tap_fd_disable() were introduced
      to enable and disable a specific queue. Since the multiqueue is only supported
      in Linux, return error on other platforms.
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      94fdc6d0
    • J
      net: tap: use abort() instead of assert(0) · 28a65891
      Jason Wang 提交于
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      28a65891
  4. 19 12月, 2012 3 次提交
  5. 13 12月, 2012 1 次提交
  6. 23 7月, 2012 1 次提交
  7. 01 11月, 2011 1 次提交
  8. 02 2月, 2011 1 次提交
  9. 08 9月, 2010 1 次提交
  10. 23 6月, 2010 1 次提交
  11. 16 3月, 2010 2 次提交
  12. 03 12月, 2009 2 次提交
  13. 30 10月, 2009 7 次提交
  14. 19 5月, 2009 1 次提交
  15. 04 3月, 2009 1 次提交
  16. 08 4月, 2008 1 次提交
  17. 01 2月, 2008 1 次提交
  18. 07 10月, 2007 1 次提交
  19. 17 9月, 2007 1 次提交
  20. 08 4月, 2007 1 次提交
  21. 02 2月, 2007 1 次提交
  22. 31 10月, 2005 1 次提交
  23. 08 11月, 2004 1 次提交