2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 22:35:15 +00:00

datapath-windows: Fix vlan key getting stored in host byte order.

Update flowkey to set vlan information in network byte order.

Signed-off-by: Anand Kumar <kumaranand@vmware.com>
Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
This commit is contained in:
Anand Kumar via dev
2019-04-05 11:22:04 -07:00
committed by Alin Gabriel Serdean
parent 760f5738ca
commit 80e57090f7

View File

@@ -2350,8 +2350,8 @@ OvsExtractFlow(const NET_BUFFER_LIST *packet,
} else {
if (eth->dix.typeNBO == ETH_TYPE_802_1PQ_NBO) {
Eth_802_1pq_Tag *tag= (Eth_802_1pq_Tag *)&eth->dix.typeNBO;
flow->l2.vlanKey.vlanTci = ((UINT16)tag->priority << 13) |
OVSWIN_VLAN_CFI | ((UINT16)tag->vidHi << 8) | tag->vidLo;
flow->l2.vlanKey.vlanTci = htons(((UINT16)tag->priority << 13) |
OVSWIN_VLAN_CFI | ((UINT16)tag->vidHi << 8) | tag->vidLo);
flow->l2.vlanKey.vlanTpid = htons(ETH_TYPE_802_1PQ);
offset = sizeof (Eth_802_1pq_Tag);
} else {