qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 6e50d1: opencores_eth: flush queue whenever c


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 6e50d1: opencores_eth: flush queue whenever can_receive ca...
Date: Wed, 26 Feb 2014 13:00:06 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 6e50d18847a76704c8a49e406084a2321117b954
      
https://github.com/qemu/qemu/commit/6e50d18847a76704c8a49e406084a2321117b954
  Author: Max Filippov <address@hidden>
  Date:   2014-02-25 (Tue, 25 Feb 2014)

  Changed paths:
    M hw/net/opencores_eth.c

  Log Message:
  -----------
  opencores_eth: flush queue whenever can_receive can go from false to true

The following registers control whether MAC can receive frames:
- MODER.RXEN bit that enables/disables receiver;
- TX_BD_NUM register that specifies number of RX descriptors.
Notify QEMU networking core when the MAC is ready to receive frames.
Discard frame and raise BUSY interrupt when the frame arrives but the
current RX descriptor is not empty.

Signed-off-by: Max Filippov <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: e96dfd110ee1ad70e7ddbfae01ca95c66f70dac0
      
https://github.com/qemu/qemu/commit/e96dfd110ee1ad70e7ddbfae01ca95c66f70dac0
  Author: Vincenzo Maffione <address@hidden>
  Date:   2014-02-25 (Tue, 25 Feb 2014)

  Changed paths:
    M include/net/tap.h
    M net/tap-win32.c
    M net/tap.c

  Log Message:
  -----------
  net: change vnet-hdr TAP prototypes

The tap_has_vnet_hdr() and tap_has_vnet_hdr_len() functions used
to return int, even though they only return true/false values.
This patch changes the prototypes to return bool.

Signed-off-by: Vincenzo Maffione <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 1f55ac4586bfae81b1e805fb2f0713cb21501ae2
      
https://github.com/qemu/qemu/commit/1f55ac4586bfae81b1e805fb2f0713cb21501ae2
  Author: Vincenzo Maffione <address@hidden>
  Date:   2014-02-25 (Tue, 25 Feb 2014)

  Changed paths:
    M include/net/net.h
    M net/net.c

  Log Message:
  -----------
  net: extend NetClientInfo for offloading

Some new callbacks have been added to generalize the operations done
by virtio-net and vmxnet3 frontends to manipulate TAP offloadings.

Signed-off-by: Vincenzo Maffione <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 2e753bcc7db1a7d2af0d47c0ae7e82a04ce69d63
      
https://github.com/qemu/qemu/commit/2e753bcc7db1a7d2af0d47c0ae7e82a04ce69d63
  Author: Vincenzo Maffione <address@hidden>
  Date:   2014-02-25 (Tue, 25 Feb 2014)

  Changed paths:
    M net/tap-win32.c
    M net/tap.c

  Log Message:
  -----------
  net: TAP uses NetClientInfo offloading callbacks

The TAP NetClientInfo structure is inizialized with the TAP-specific
functions that manipulates offloading features.

Signed-off-by: Vincenzo Maffione <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: cf528b89580797050b8cf60fee6247f35531a675
      
https://github.com/qemu/qemu/commit/cf528b89580797050b8cf60fee6247f35531a675
  Author: Vincenzo Maffione <address@hidden>
  Date:   2014-02-25 (Tue, 25 Feb 2014)

  Changed paths:
    M hw/net/vhost_net.c
    M hw/net/virtio-net.c
    M hw/net/vmxnet3.c

  Log Message:
  -----------
  net: virtio-net and vmxnet3 use offloading API

With this patch, virtio-net and vmxnet3 frontends make
use of the qemu_peer_* API for backend offloadings manipulations,
instead of calling TAP-specific functions directly.
We also remove the existing checks which prevent those frontends
from using offloadings with backends different from TAP (e.g. netmap).

Signed-off-by: Vincenzo Maffione <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 3bac80d31af9d38d02e80d1541a1ea8e70067bad
      
https://github.com/qemu/qemu/commit/3bac80d31af9d38d02e80d1541a1ea8e70067bad
  Author: Vincenzo Maffione <address@hidden>
  Date:   2014-02-25 (Tue, 25 Feb 2014)

  Changed paths:
    M include/net/tap.h
    M net/tap-win32.c
    M net/tap.c

  Log Message:
  -----------
  net: make tap offloading callbacks static

Since TAP offloadings are manipulated through a new API, it's
not necessary to export them in include/net/tap.h anymore.

Signed-off-by: Vincenzo Maffione <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: f6c65bfb93fd90f69a11fd1db1e7b2cebb056b01
      
https://github.com/qemu/qemu/commit/f6c65bfb93fd90f69a11fd1db1e7b2cebb056b01
  Author: Vincenzo Maffione <address@hidden>
  Date:   2014-02-25 (Tue, 25 Feb 2014)

  Changed paths:
    M net/netmap.c

  Log Message:
  -----------
  net: add offloading support to netmap backend

Whit this patch, the netmap backend supports TSO/UFO/CSUM
offloadings, and accepts the virtio-net header, similarly to what
happens with TAP. The offloading callbacks in the NetClientInfo
interface have been implemented.

Signed-off-by: Vincenzo Maffione <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 0a985b37272b563b1f8414431c6064eb1aa0c97b
      
https://github.com/qemu/qemu/commit/0a985b37272b563b1f8414431c6064eb1aa0c97b
  Author: Vincenzo Maffione <address@hidden>
  Date:   2014-02-25 (Tue, 25 Feb 2014)

  Changed paths:
    M configure
    M net/netmap.c

  Log Message:
  -----------
  net: Disable netmap backend when not supported

This patch fixes configure so that the netmap backend is not compiled in if the
host doesn't support an API version >= 11. A version upper bound (15) has been
added so that the netmap API can be extended with some minor features without
requiring QEMU code modifications.

Moreover, some changes have been done to net/netmap.c in order to reflect the
current netmap API/ABI (11).

The NETMAP_WITH_LIBS macro makes possible to include some utilities (e.g.
netmap ring macros, D(), RD() and other high level functions) through the netmap
headers. In this way we get rid of the D and RD macro definitions in the QEMU
code, and we open the way for further code simplifications that will be
introduced by future patches.

Signed-off-by: Vincenzo Maffione <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: d6085e3ace20bc9b0fa625d8d79b22668710e217
      
https://github.com/qemu/qemu/commit/d6085e3ace20bc9b0fa625d8d79b22668710e217
  Author: Stefan Hajnoczi <address@hidden>
  Date:   2014-02-25 (Tue, 25 Feb 2014)

  Changed paths:
    M hw/net/virtio-net.c
    M hw/net/vmxnet3.c
    M include/net/net.h
    M net/net.c

  Log Message:
  -----------
  net: remove implicit peer from offload API

The virtio_net offload APIs are used on the NIC's peer (i.e. the tap
device).  The API was defined to implicitly use nc->peer, saving the
caller the trouble.

This wasn't ideal because:
1. There are callers who have the peer but not the NIC.  Currently they
   are forced to bypass the API and access peer->info->... directly.
2. The rest of the net.h API uses nc, not nc->peer, so it is
   inconsistent.

This patch pushes nc->peer back up to callers.

Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: e3e48565c1553f9ab4c34c2388287a013ef30deb
      
https://github.com/qemu/qemu/commit/e3e48565c1553f9ab4c34c2388287a013ef30deb
  Author: Stefan Hajnoczi <address@hidden>
  Date:   2014-02-25 (Tue, 25 Feb 2014)

  Changed paths:
    M hw/net/vhost_net.c

  Log Message:
  -----------
  vhost_net: use offload API instead of bypassing it

There is no need to access backend->info->has_vnet_hdr() and friends
anymore.  Use the qemu_has_vnet_hdr() API instead.

Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: ad37bb3b000963b36b5c30f5a4239cfbc4fe8725
      
https://github.com/qemu/qemu/commit/ad37bb3b000963b36b5c30f5a4239cfbc4fe8725
  Author: Stefan Hajnoczi <address@hidden>
  Date:   2014-02-25 (Tue, 25 Feb 2014)

  Changed paths:
    M hw/net/virtio-net.c

  Log Message:
  -----------
  virtio-net: use qemu_get_queue() where possible

qemu_get_queue() is a shorthand for qemu_get_subqueue(n->nic, 0).  Use
the shorthand where possible.

Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: bc3fbad816961a5b4a7f51a37472c4ac01effb92
      
https://github.com/qemu/qemu/commit/bc3fbad816961a5b4a7f51a37472c4ac01effb92
  Author: Peter Maydell <address@hidden>
  Date:   2014-02-26 (Wed, 26 Feb 2014)

  Changed paths:
    M configure
    M hw/net/vhost_net.c
    M hw/net/virtio-net.c
    M hw/net/vmxnet3.c
    M include/net/net.h
    M include/net/tap.h
    M net/net.c
    M net/netmap.c
    M net/tap-win32.c
    M net/tap.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/stefanha/tags/net-pull-request' into 
staging

Net patches

# gpg: Signature made Tue 25 Feb 2014 13:32:33 GMT using RSA key ID 81AB73C8
# gpg: Good signature from "Stefan Hajnoczi <address@hidden>"
# gpg:                 aka "Stefan Hajnoczi <address@hidden>"
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35  775A 9CA4 ABB3 81AB 73C8

* remotes/stefanha/tags/net-pull-request:
  virtio-net: use qemu_get_queue() where possible
  vhost_net: use offload API instead of bypassing it
  net: remove implicit peer from offload API
  net: Disable netmap backend when not supported
  net: add offloading support to netmap backend
  net: make tap offloading callbacks static
  net: virtio-net and vmxnet3 use offloading API
  net: TAP uses NetClientInfo offloading callbacks
  net: extend NetClientInfo for offloading
  net: change vnet-hdr TAP prototypes
  opencores_eth: flush queue whenever can_receive can go from false to true

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/28c05edff54c...bc3fbad81696

reply via email to

[Prev in Thread] Current Thread [Next in Thread]