diff options
author | Shmulik Ladkani | 2015-07-14 10:55:15 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2015-07-20 18:39:05 +0200 |
commit | fcf0cdc362dd96cb8d2935b892d3dd9ab73ad393 (patch) | |
tree | 88b6c295de6a83e82eceacfd384e3c81ae5cd649 /hw/net/vmxnet_rx_pkt.h | |
parent | socket: pass correct size in net_socket_send() (diff) | |
download | qemu-fcf0cdc362dd96cb8d2935b892d3dd9ab73ad393.tar.gz qemu-fcf0cdc362dd96cb8d2935b892d3dd9ab73ad393.tar.xz qemu-fcf0cdc362dd96cb8d2935b892d3dd9ab73ad393.zip |
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 <shmulik.ladkani@ravellosystems.com>
Message-id: 1436864116-19154-2-git-send-email-shmulik.ladkani@ravellosystems.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/net/vmxnet_rx_pkt.h')
-rw-r--r-- | hw/net/vmxnet_rx_pkt.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hw/net/vmxnet_rx_pkt.h b/hw/net/vmxnet_rx_pkt.h index 5f8352a468..a425846b52 100644 --- a/hw/net/vmxnet_rx_pkt.h +++ b/hw/net/vmxnet_rx_pkt.h @@ -55,6 +55,17 @@ void vmxnet_rx_pkt_init(struct VmxnetRxPkt **pkt, bool has_virt_hdr); size_t vmxnet_rx_pkt_get_total_len(struct VmxnetRxPkt *pkt); /** + * parse and set packet analysis results + * + * @pkt: packet + * @data: pointer to the data buffer to be parsed + * @len: data length + * + */ +void vmxnet_rx_pkt_set_protocols(struct VmxnetRxPkt *pkt, const void *data, + size_t len); + +/** * fetches packet analysis results * * @pkt: packet |