datapath-windows: Fix vlan key getting stored in host byte order.
Update flowkey to set vlan information in network byte order.
@@ -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 {
