qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] d6b732: net: Add vnet_hdr_len arguments in Ne


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] d6b732: net: Add vnet_hdr_len arguments in NetClientState
Date: Tue, 18 Jul 2017 02:34:40 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: d6b732e953673e4e1f4b36868c206a08213b6708
      
https://github.com/qemu/qemu/commit/d6b732e953673e4e1f4b36868c206a08213b6708
  Author: Zhang Chen <address@hidden>
  Date:   2017-07-17 (Mon, 17 Jul 2017)

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

  Log Message:
  -----------
  net: Add vnet_hdr_len arguments in NetClientState

Add vnet_hdr_len arguments in NetClientState
that make other module get real vnet_hdr_len easily.

Signed-off-by: Zhang Chen <address@hidden>
Signed-off-by: Jason Wang <address@hidden>


  Commit: 3cde5ea211ead04997e2ecd7f8bdc831f84700e6
      
https://github.com/qemu/qemu/commit/3cde5ea211ead04997e2ecd7f8bdc831f84700e6
  Author: Zhang Chen <address@hidden>
  Date:   2017-07-17 (Mon, 17 Jul 2017)

  Changed paths:
    M include/net/net.h
    M net/colo-compare.c
    M net/filter-mirror.c
    M net/net.c
    M net/socket.c

  Log Message:
  -----------
  net/net.c: Add vnet_hdr support in SocketReadState

We add a flag to decide whether net_fill_rstate() need read
the vnet_hdr_len or not.

Signed-off-by: Zhang Chen <address@hidden>
Suggested-by: Jason Wang <address@hidden>
Signed-off-by: Jason Wang <address@hidden>


  Commit: dc3c5ac64582fa7061c3b631c090632a05ddb718
      
https://github.com/qemu/qemu/commit/dc3c5ac64582fa7061c3b631c090632a05ddb718
  Author: Zhang Chen <address@hidden>
  Date:   2017-07-17 (Mon, 17 Jul 2017)

  Changed paths:
    M net/filter-mirror.c

  Log Message:
  -----------
  net/filter-mirror.c: Introduce parameter for filter_send()

This patch change the filter_send() parameter from CharBackend to MirrorState,
we can get more information like vnet_hdr(We use it to support packet with 
vnet_header).

Signed-off-by: Zhang Chen <address@hidden>
Signed-off-by: Jason Wang <address@hidden>


  Commit: e2521f0e038e912bc8d3747813c3e6dffd9a2eaf
      
https://github.com/qemu/qemu/commit/e2521f0e038e912bc8d3747813c3e6dffd9a2eaf
  Author: Zhang Chen <address@hidden>
  Date:   2017-07-17 (Mon, 17 Jul 2017)

  Changed paths:
    M net/filter-mirror.c
    M qemu-options.hx

  Log Message:
  -----------
  net/filter-mirror.c: Make filter mirror support vnet support.

We add the vnet_hdr_support option for filter-mirror, default is disabled.
If you use virtio-net-pci or other driver needs vnet_hdr, please enable it.
You can use it for example:
-object filter-mirror,id=m0,netdev=hn0,queue=tx,outdev=mirror0,vnet_hdr_support

If it has vnet_hdr_support flag, we will change the sending packet format from
struct {int size; const uint8_t buf[];} to {int size; int vnet_hdr_len; const 
uint8_t buf[];}.
make other module(like colo-compare) know how to parse net packet correctly.

Signed-off-by: Zhang Chen <address@hidden>
Signed-off-by: Jason Wang <address@hidden>


  Commit: 00d5c2406bceb2eb5b77b47948311bf3ef8653a7
      
https://github.com/qemu/qemu/commit/00d5c2406bceb2eb5b77b47948311bf3ef8653a7
  Author: Zhang Chen <address@hidden>
  Date:   2017-07-17 (Mon, 17 Jul 2017)

  Changed paths:
    M net/filter-mirror.c
    M qemu-options.hx

  Log Message:
  -----------
  net/filter-mirror.c: Add new option to enable vnet support for 
filter-redirector

We add the vnet_hdr_support option for filter-redirector, default is disabled.
If you use virtio-net-pci net driver or other driver needs vnet_hdr, please 
enable it.
Because colo-compare or other modules needs the vnet_hdr_len to parse
packet, we add this new option send the len to others.
You can use it for example:
-object filter-redirector,id=r0,netdev=hn0,queue=tx,outdev=red0,vnet_hdr_support

Signed-off-by: Zhang Chen <address@hidden>
Signed-off-by: Jason Wang <address@hidden>


  Commit: ada1a33f9a690b95d32115b38b88a33cb66c83bd
      
https://github.com/qemu/qemu/commit/ada1a33f9a690b95d32115b38b88a33cb66c83bd
  Author: Zhang Chen <address@hidden>
  Date:   2017-07-17 (Mon, 17 Jul 2017)

  Changed paths:
    M net/colo-compare.c
    M net/colo.c
    M net/colo.h
    M net/filter-rewriter.c

  Log Message:
  -----------
  net/colo.c: Make vnet_hdr_len as packet property

We can use this property flush and send packet with vnet_hdr_len.

Signed-off-by: Zhang Chen <address@hidden>
Signed-off-by: Jason Wang <address@hidden>


  Commit: 3037e7a5b7670e9b99dd61e3fe4b9e41ce8c1143
      
https://github.com/qemu/qemu/commit/3037e7a5b7670e9b99dd61e3fe4b9e41ce8c1143
  Author: Zhang Chen <address@hidden>
  Date:   2017-07-17 (Mon, 17 Jul 2017)

  Changed paths:
    M net/colo-compare.c

  Log Message:
  -----------
  net/colo-compare.c: Introduce parameter for compare_chr_send()

This patch change the compare_chr_send() parameter from CharBackend to 
CompareState,
we can get more information like vnet_hdr(We use it to support packet with 
vnet_header).

Signed-off-by: Zhang Chen <address@hidden>
Signed-off-by: Jason Wang <address@hidden>


  Commit: aa3a7032f73f603818ea3e781b19ce8eab0d33f1
      
https://github.com/qemu/qemu/commit/aa3a7032f73f603818ea3e781b19ce8eab0d33f1
  Author: Zhang Chen <address@hidden>
  Date:   2017-07-17 (Mon, 17 Jul 2017)

  Changed paths:
    M net/colo-compare.c
    M qemu-options.hx

  Log Message:
  -----------
  net/colo-compare.c: Make colo-compare support vnet_hdr_len

We add the vnet_hdr_support option for colo-compare, default is disabled.
If you use virtio-net-pci or other driver needs vnet_hdr, please enable it.
You can use it for example:
-object 
colo-compare,id=comp0,primary_in=compare0-0,secondary_in=compare1,outdev=compare_out0,vnet_hdr_support

COLO-compare can get vnet header length from filter,
Add vnet_hdr_len to struct packet and output packet with
the vnet_hdr_len.

Signed-off-by: Zhang Chen <address@hidden>
Signed-off-by: Jason Wang <address@hidden>


  Commit: 5cc444d367078e3582b8e7e0136c53d3632c544b
      
https://github.com/qemu/qemu/commit/5cc444d367078e3582b8e7e0136c53d3632c544b
  Author: Zhang Chen <address@hidden>
  Date:   2017-07-17 (Mon, 17 Jul 2017)

  Changed paths:
    M net/colo.c

  Log Message:
  -----------
  net/colo.c: Add vnet packet parse feature in colo-proxy

Make colo-compare and filter-rewriter can parse vnet packet.

Signed-off-by: Zhang Chen <address@hidden>
Signed-off-by: Jason Wang <address@hidden>


  Commit: d63b366a26b46bd8109a64bf4a2ecc5e16242a8b
      
https://github.com/qemu/qemu/commit/d63b366a26b46bd8109a64bf4a2ecc5e16242a8b
  Author: Zhang Chen <address@hidden>
  Date:   2017-07-17 (Mon, 17 Jul 2017)

  Changed paths:
    M net/colo-compare.c

  Log Message:
  -----------
  net/colo-compare.c: Add vnet packet's tcp/udp/icmp compare

COLO-Proxy just focus on packet payload, so we skip vnet header.

Signed-off-by: Zhang Chen <address@hidden>
Signed-off-by: Jason Wang <address@hidden>


  Commit: 4b39bdced59708cc9475cc555b8a232da4ea01af
      
https://github.com/qemu/qemu/commit/4b39bdced59708cc9475cc555b8a232da4ea01af
  Author: Zhang Chen <address@hidden>
  Date:   2017-07-17 (Mon, 17 Jul 2017)

  Changed paths:
    M net/filter-rewriter.c
    M qemu-options.hx

  Log Message:
  -----------
  net/filter-rewriter.c: Make filter-rewriter support vnet_hdr_len

We add the vnet_hdr_support option for filter-rewriter, default is disabled.
If you use virtio-net-pci or other driver needs vnet_hdr, please enable it.
You can use it for example:
-object filter-rewriter,id=rew0,netdev=hn0,queue=all,vnet_hdr_support

We get the vnet_hdr_len from NetClientState that make us
parse net packet correctly.

Signed-off-by: Zhang Chen <address@hidden>
Signed-off-by: Jason Wang <address@hidden>


  Commit: 2484ff06249af64896885564b73af4f0750adfa2
      
https://github.com/qemu/qemu/commit/2484ff06249af64896885564b73af4f0750adfa2
  Author: Zhang Chen <address@hidden>
  Date:   2017-07-17 (Mon, 17 Jul 2017)

  Changed paths:
    M docs/colo-proxy.txt

  Log Message:
  -----------
  docs/colo-proxy.txt: Update colo-proxy usage of net driver with vnet_header

Signed-off-by: Zhang Chen <address@hidden>
Signed-off-by: Jason Wang <address@hidden>


  Commit: 5f997fd17b9be6a662fa7b5cc1305076cd6c8894
      
https://github.com/qemu/qemu/commit/5f997fd17b9be6a662fa7b5cc1305076cd6c8894
  Author: Michal Privoznik <address@hidden>
  Date:   2017-07-17 (Mon, 17 Jul 2017)

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

  Log Message:
  -----------
  virtion-net: Prefer is_power_of_2()

We have a function that checks if given number is power of two.
We should prefer it instead of expanding the check on our own.

Signed-off-by: Michal Privoznik <address@hidden>
Signed-off-by: Jason Wang <address@hidden>


  Commit: 189ae6bb5ce1f5a322f8691d00fe942ba43dd601
      
https://github.com/qemu/qemu/commit/189ae6bb5ce1f5a322f8691d00fe942ba43dd601
  Author: Jason Wang <address@hidden>
  Date:   2017-07-17 (Mon, 17 Jul 2017)

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

  Log Message:
  -----------
  virtio-net: fix offload ctrl endian

Spec said offloads should be le64, so use virtio_ldq_p() to guarantee
valid endian.

Fixes: 644c98587d4c ("virtio-net: dynamic network offloads configuration")
Cc: address@hidden
Cc: Dmitry Fleytman <address@hidden>
Signed-off-by: Jason Wang <address@hidden>


  Commit: a778cd5610b40eec037417565671d2717bc49def
      
https://github.com/qemu/qemu/commit/a778cd5610b40eec037417565671d2717bc49def
  Author: Peter Maydell <address@hidden>
  Date:   2017-07-18 (Tue, 18 Jul 2017)

  Changed paths:
    M docs/colo-proxy.txt
    M hw/net/virtio-net.c
    M include/net/net.h
    M net/colo-compare.c
    M net/colo.c
    M net/colo.h
    M net/filter-mirror.c
    M net/filter-rewriter.c
    M net/net.c
    M net/socket.c
    M qemu-options.hx

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

# gpg: Signature made Mon 17 Jul 2017 13:17:17 BST
# gpg:                using RSA key 0xEF04965B398D6211
# gpg: Good signature from "Jason Wang (Jason Wang on RedHat) <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: 215D 46F4 8246 689E C77F  3562 EF04 965B 398D 6211

* remotes/jasowang/tags/net-pull-request:
  virtio-net: fix offload ctrl endian
  virtion-net: Prefer is_power_of_2()
  docs/colo-proxy.txt: Update colo-proxy usage of net driver with vnet_header
  net/filter-rewriter.c: Make filter-rewriter support vnet_hdr_len
  net/colo-compare.c: Add vnet packet's tcp/udp/icmp compare
  net/colo.c: Add vnet packet parse feature in colo-proxy
  net/colo-compare.c: Make colo-compare support vnet_hdr_len
  net/colo-compare.c: Introduce parameter for compare_chr_send()
  net/colo.c: Make vnet_hdr_len as packet property
  net/filter-mirror.c: Add new option to enable vnet support for 
filter-redirector
  net/filter-mirror.c: Make filter mirror support vnet support.
  net/filter-mirror.c: Introduce parameter for filter_send()
  net/net.c: Add vnet_hdr support in SocketReadState
  net: Add vnet_hdr_len arguments in NetClientState

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


Compare: https://github.com/qemu/qemu/compare/5a477a780606...a778cd5610b4

reply via email to

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