1. 13 4月, 2012 1 次提交
  2. 28 3月, 2012 1 次提交
  3. 16 2月, 2012 1 次提交
  4. 14 2月, 2012 1 次提交
  5. 12 1月, 2012 4 次提交
  6. 06 1月, 2012 1 次提交
  7. 30 12月, 2011 2 次提交
    • R
      virtio_net: use non-reentrant workqueue. · f1776dad
      Rusty Russell 提交于
      Michael S. Tsirkin also noticed that we could run the refill work
      multiple CPUs: if we kick off a refill on one CPU and then on another,
      they would both manipulate the queue at the same time (they use
      napi_disable to avoid racing against the receive handler itself).
      
      Tejun points out that this is what the WQ_NON_REENTRANT flag is for,
      and that there is a convenient system kthread we can use.
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f1776dad
    • R
      virtio_net: set/cancel work on ndo_open/ndo_stop · b2baed69
      Rusty Russell 提交于
      Michael S. Tsirkin noticed that we could run the refill work after
      ndo_close, which can re-enable napi - we don't disable it until
      virtnet_remove.  This is clearly wrong, so move the workqueue control
      to ndo_open and ndo_stop (aka. virtnet_open and virtnet_close).
      
      One subtle point: virtnet_probe() could simply fail if it couldn't
      allocate a receive buffer, but that's less polite in virtnet_open() so
      we schedule a refill as we do in the normal receive path if we run out
      of memory.
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b2baed69
  8. 20 12月, 2011 1 次提交
  9. 09 12月, 2011 1 次提交
  10. 27 11月, 2011 1 次提交
  11. 17 11月, 2011 1 次提交
  12. 02 11月, 2011 1 次提交
  13. 24 10月, 2011 1 次提交
  14. 21 10月, 2011 1 次提交
  15. 20 10月, 2011 1 次提交
  16. 19 10月, 2011 1 次提交
  17. 07 10月, 2011 1 次提交
    • S
      virtio-net: Verify page list size before fitting into skb · e878d78b
      Sasha Levin 提交于
      This patch verifies that the length of a buffer stored in a linked list
      of pages is small enough to fit into a skb.
      
      If the size is larger than a max size of a skb, it means that we shouldn't
      go ahead building skbs anyway since we won't be able to send the buffer as
      the user requested.
      
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: "Michael S. Tsirkin" <mst@redhat.com>
      Cc: virtualization@lists.linux-foundation.org
      Cc: netdev@vger.kernel.org
      Cc: kvm@vger.kernel.org
      Signed-off-by: NSasha Levin <levinsasha928@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e878d78b
  18. 23 9月, 2011 1 次提交
  19. 18 8月, 2011 1 次提交
  20. 22 7月, 2011 1 次提交
  21. 01 7月, 2011 1 次提交
  22. 12 6月, 2011 1 次提交
    • J
      virtio_net: introduce VIRTIO_NET_HDR_F_DATA_VALID · 10a8d94a
      Jason Wang 提交于
      There's no need for the guest to validate the checksum if it have been
      validated by host nics. So this patch introduces a new flag -
      VIRTIO_NET_HDR_F_DATA_VALID which is used to bypass the checksum
      examing in guest. The backend (tap/macvtap) may set this flag when
      met skbs with CHECKSUM_UNNECESSARY to save cpu utilization.
      
      No feature negotiation is needed as old driver just ignore this flag.
      
      Iperf shows 12%-30% performance improvement for UDP traffic. For TCP,
      when gro is on no difference as it produces skb with partial
      checksum. But when gro is disabled, 20% or even higher improvement
      could be measured by netperf.
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Acked-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      10a8d94a
  23. 30 5月, 2011 1 次提交
  24. 02 4月, 2011 1 次提交
  25. 11 2月, 2011 1 次提交
  26. 17 12月, 2010 1 次提交
  27. 13 11月, 2010 1 次提交
  28. 17 8月, 2010 1 次提交
  29. 05 8月, 2010 1 次提交
    • R
      virtio_net: implements ethtool_ops.get_drvinfo · a767bde4
      Rusty Russell 提交于
      I often use "ethtool -i" command to check what driver controls the
      ehternet device.  But because current virtio_net driver doesn't
      support "ethtool -i", it becomes the following:
      
              # ethtool -i eth3
              Cannot get driver information: Operation not supported
      
      This patch simply adds the "ethtool -i" support. The following is the
      result when using the virtio_net driver with my patch applied to.
      
              # ethtool -i eth3
              driver: virtio_net
              version: N/A
              firmware-version: N/A
              bus-info: virtio0
      
      Personally, "-i" is one of the most frequently-used option, and most
      network drivers support "ethtool -i", so I think virtio_net also
      should do.
      Signed-off-by: NTaku Izumi <izumi.taku@jp.fujitsu.com>
      Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (use ARRAY_SIZE)
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a767bde4
  30. 03 7月, 2010 2 次提交
  31. 01 6月, 2010 1 次提交
  32. 19 5月, 2010 1 次提交
  33. 14 4月, 2010 1 次提交
  34. 13 4月, 2010 1 次提交
  35. 08 4月, 2010 1 次提交