qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 091f1f: socket: pass correct size in net_sock


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 091f1f: socket: pass correct size in net_socket_send()
Date: Tue, 21 Jul 2015 01:30:06 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 091f1f52963d7093ea578e4a05e67bc015b21192
      
https://github.com/qemu/qemu/commit/091f1f52963d7093ea578e4a05e67bc015b21192
  Author: Jason Wang <address@hidden>
  Date:   2015-07-20 (Mon, 20 Jul 2015)

  Changed paths:
    M net/socket.c

  Log Message:
  -----------
  socket: pass correct size in net_socket_send()

We should pass the size of packet instead of the remaining to
qemu_send_packet_async().

Fixes: 6e99c631f116221d169ea53953d91b8aa74d297a
       ("net/socket: Drop net_socket_can_send")

Signed-off-by: Jason Wang <address@hidden>
Reviewed-by: Fam Zheng <address@hidden>
Message-id: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: fcf0cdc362dd96cb8d2935b892d3dd9ab73ad393
      
https://github.com/qemu/qemu/commit/fcf0cdc362dd96cb8d2935b892d3dd9ab73ad393
  Author: Shmulik Ladkani <address@hidden>
  Date:   2015-07-20 (Mon, 20 Jul 2015)

  Changed paths:
    M hw/net/vmxnet3.c
    M hw/net/vmxnet_rx_pkt.c
    M hw/net/vmxnet_rx_pkt.h

  Log Message:
  -----------
  net/vmxnet3: Refactor 'vmxnet_rx_pkt_attach_data'

Separate RX packet protocol parsing out of 'vmxnet_rx_pkt_attach_data'.

Signed-off-by: Shmulik Ladkani <address@hidden>
Message-id: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 80da311d81c389860bc387fbe6677c71f7a3c596
      
https://github.com/qemu/qemu/commit/80da311d81c389860bc387fbe6677c71f7a3c596
  Author: Dana Rubin <address@hidden>
  Date:   2015-07-20 (Mon, 20 Jul 2015)

  Changed paths:
    M hw/net/vmxnet3.c

  Log Message:
  -----------
  net/vmxnet3: Fix RX TCP/UDP checksum on partially summed packets

Convert partially summed packets to be fully checksummed.

In case csum offloaded packet, vmxnet3 implementation always passes an
RxCompDesc with the "Checksum calculated and found correct" notification
to the OS. This emulates the observed ESXi behavior.

Therefore, if packet has the NEEDS_CSUM bit set, we must calculate and
place a fully computed checksum into the tcp/udp header. Otherwise, the
OS driver will receive a checksum-correct indication but with the actual
tcp/udp checksum field having just the pseudo header csum value.

If host OS performs forwarding, it will forward an incorrectly
checksummed packet.

Signed-off-by: Dana Rubin <address@hidden>
Signed-off-by: Shmulik Ladkani <address@hidden>
Message-id: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: f63eab8becf92b18c18b6c31950f99f764848902
      
https://github.com/qemu/qemu/commit/f63eab8becf92b18c18b6c31950f99f764848902
  Author: Fam Zheng <address@hidden>
  Date:   2015-07-20 (Mon, 20 Jul 2015)

  Changed paths:
    M hw/arm/musicpal.c

  Log Message:
  -----------
  musicpal: Drop eth_can_receive

True is the default.

Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: Jason Wang <address@hidden>
Message-id: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: da69028261abd12dbf974754e69d017f6e8710b5
      
https://github.com/qemu/qemu/commit/da69028261abd12dbf974754e69d017f6e8710b5
  Author: Fam Zheng <address@hidden>
  Date:   2015-07-20 (Mon, 20 Jul 2015)

  Changed paths:
    M hw/net/etraxfs_eth.c

  Log Message:
  -----------
  etraxfs_eth: Drop eth_can_receive

True is the default.

Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: Jason Wang <address@hidden>
Message-id: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: b49b8c572f885ea2b16fc744e8837e974df34401
      
https://github.com/qemu/qemu/commit/b49b8c572f885ea2b16fc744e8837e974df34401
  Author: Fam Zheng <address@hidden>
  Date:   2015-07-20 (Mon, 20 Jul 2015)

  Changed paths:
    M hw/net/lan9118.c

  Log Message:
  -----------
  lan9118: Drop lan9118_can_receive

True is the default.

Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: Jason Wang <address@hidden>
Message-id: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 625de449fc5597f2e1aff9cb586e249e198f03c9
      
https://github.com/qemu/qemu/commit/625de449fc5597f2e1aff9cb586e249e198f03c9
  Author: Fam Zheng <address@hidden>
  Date:   2015-07-20 (Mon, 20 Jul 2015)

  Changed paths:
    M net/net.c

  Log Message:
  -----------
  net: Flush queued packets when guest resumes

Since commit 6e99c63 "net/socket: Drop net_socket_can_send" and friends,
net queues need to be explicitly flushed after qemu_can_send_packet()
returns false, because the netdev side will disable the polling of fd.

This fixes the case of "cont" after "stop" (or migration).

Signed-off-by: Fam Zheng <address@hidden>
Message-id: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: bd03a38fdf85fb1d4f0c9f59bbc154b516f66360
      
https://github.com/qemu/qemu/commit/bd03a38fdf85fb1d4f0c9f59bbc154b516f66360
  Author: Peter Maydell <address@hidden>
  Date:   2015-07-20 (Mon, 20 Jul 2015)

  Changed paths:
    M hw/arm/musicpal.c
    M hw/net/etraxfs_eth.c
    M hw/net/lan9118.c
    M hw/net/vmxnet3.c
    M hw/net/vmxnet_rx_pkt.c
    M hw/net/vmxnet_rx_pkt.h
    M net/net.c
    M net/socket.c

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

# gpg: Signature made Mon Jul 20 18:25:14 2015 BST using RSA key ID 81AB73C8
# gpg: Good signature from "Stefan Hajnoczi <address@hidden>"
# gpg:                 aka "Stefan Hajnoczi <address@hidden>"

* remotes/stefanha/tags/net-pull-request:
  net: Flush queued packets when guest resumes
  lan9118: Drop lan9118_can_receive
  etraxfs_eth: Drop eth_can_receive
  musicpal: Drop eth_can_receive
  net/vmxnet3: Fix RX TCP/UDP checksum on partially summed packets
  net/vmxnet3: Refactor 'vmxnet_rx_pkt_attach_data'
  socket: pass correct size in net_socket_send()

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


Compare: https://github.com/qemu/qemu/compare/13566fe3e584...bd03a38fdf85

reply via email to

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