qemu/hw/net/rocker
Scott Feldman d0d2555852 rocker: mark copy-to-cpu pkts as forwarding offloaded
For pkts copied to the CPU (to be processed by guest driver), mark the Rx
descriptor with flag "OFFLOAD_FWD" to indicate device has already forwarded
pkt.  The guest driver will use this indicator to avoid duplicate
forwarding in the guest OS.

Examples include bcast/mcast/unknown ucast pkts flooded to bridged ports.
We want to avoid both the device and the guest bridge driver flooding these
pkts, which would result in duplicates pkts on the wire.  Packet sampling,
such as sFlow, can also use this technique to mark pkts for the guest OS to
record but otherwise drop.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Message-id: 1435746792-41278-5-git-send-email-sfeldma@gmail.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2015-07-07 13:13:22 +01:00
..
qmp-norocker.c qerror: Clean up QERR_ macros to expand into a single string 2015-06-22 18:20:40 +02:00
rocker_desc.c rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker_desc.h rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker_fp.c rocker: don't queue receive pkts when port is disabled 2015-07-07 13:10:26 +01:00
rocker_fp.h qmp/hmp: add rocker device support 2015-06-12 13:42:17 +01:00
rocker_hw.h rocker: mark copy-to-cpu pkts as forwarding offloaded 2015-07-07 13:13:22 +01:00
rocker_of_dpa.c rocker: mark copy-to-cpu pkts as forwarding offloaded 2015-07-07 13:13:22 +01:00
rocker_of_dpa.h rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker_tlv.h rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker_world.c rocker: return -1 when dropping packet on ingress 2015-07-07 13:13:22 +01:00
rocker_world.h rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker.c rocker: mark copy-to-cpu pkts as forwarding offloaded 2015-07-07 13:13:22 +01:00
rocker.h rocker: mark copy-to-cpu pkts as forwarding offloaded 2015-07-07 13:13:22 +01:00