diff options
author | Dmitry Fleytman | 2017-02-16 13:29:32 +0100 |
---|---|---|
committer | Jason Wang | 2017-03-06 04:46:02 +0100 |
commit | 566342c3125ac2e73abd36c650222318164517ed (patch) | |
tree | 5dbe7cadb84e9f9e369d9bd318710625f383374c /include/net/eth.h | |
parent | net: Remove useless local var pkt (diff) | |
download | qemu-566342c3125ac2e73abd36c650222318164517ed.tar.gz qemu-566342c3125ac2e73abd36c650222318164517ed.tar.xz qemu-566342c3125ac2e73abd36c650222318164517ed.zip |
eth: Extend vlan stripping functions
Make VLAN stripping functions return number of bytes
copied to given Ethernet header buffer.
This information should be used to re-compose
packet IOV after VLAN stripping.
Cc: qemu-stable@nongnu.org
Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include/net/eth.h')
-rw-r--r-- | include/net/eth.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/eth.h b/include/net/eth.h index 2013175857..afeb45be34 100644 --- a/include/net/eth.h +++ b/include/net/eth.h @@ -331,12 +331,12 @@ eth_get_pkt_tci(const void *p) } } -bool +size_t eth_strip_vlan(const struct iovec *iov, int iovcnt, size_t iovoff, uint8_t *new_ehdr_buf, uint16_t *payload_offset, uint16_t *tci); -bool +size_t eth_strip_vlan_ex(const struct iovec *iov, int iovcnt, size_t iovoff, uint16_t vet, uint8_t *new_ehdr_buf, uint16_t *payload_offset, uint16_t *tci); |