summary refs log tree commit diff stats
path: root/include
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2023-05-23 11:43:22 +0900
committerJason Wang <jasowang@redhat.com>2023-05-23 15:20:15 +0800
commitaaa8a15c96a8a7341a3667dcc932f8c5f227d6af (patch)
tree9597d186e23ba931b8a55b22ad18e60ef56505c2 /include
parent85427bf3884f42626208865f3fe594b3919566fb (diff)
downloadfocaccia-qemu-aaa8a15c96a8a7341a3667dcc932f8c5f227d6af.tar.gz
focaccia-qemu-aaa8a15c96a8a7341a3667dcc932f8c5f227d6af.zip
net/eth: Always add VLAN tag
It is possible to have another VLAN tag even if the packet is already
tagged.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/eth.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/eth.h b/include/net/eth.h
index 95ff24d6b8..048e434685 100644
--- a/include/net/eth.h
+++ b/include/net/eth.h
@@ -353,8 +353,8 @@ eth_strip_vlan_ex(const struct iovec *iov, int iovcnt, size_t iovoff,
 uint16_t
 eth_get_l3_proto(const struct iovec *l2hdr_iov, int iovcnt, size_t l2hdr_len);
 
-void eth_setup_vlan_headers(struct eth_header *ehdr, uint16_t vlan_tag,
-    uint16_t vlan_ethtype, bool *is_new);
+void eth_setup_vlan_headers(struct eth_header *ehdr, size_t *ehdr_size,
+                            uint16_t vlan_tag, uint16_t vlan_ethtype);
 
 
 uint8_t eth_get_gso_type(uint16_t l3_proto, uint8_t *l3_hdr, uint8_t l4proto);