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:
committed by
Alin Gabriel Serdean
parent
760f5738ca
commit
80e57090f7
@@ -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 *)ð->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 {
|
||||
|
Reference in New Issue
Block a user