The 'vlan_tci' member of struct flow has value 0, not OFP_VLAN_NONE, when
there is no 802.1Q header.
Fixes a problem introduced in commit
d9065a90b6b "datapath: VLAN actions
should use push/pop semantics."
Found by sparse.
CC: Pravin Shelar <pshelar@nicira.com>
if (!(flow->vlan_tci & htons(VLAN_CFI))) {
nl_msg_put_flag(odp_actions, OVS_ACTION_ATTR_POP_VLAN);
} else {
- if (base->vlan_tci != OFP_VLAN_NONE) {
+ if (base->vlan_tci != htons(0)) {
nl_msg_put_flag(odp_actions, OVS_ACTION_ATTR_POP_VLAN);
}
nl_msg_put_be16(odp_actions, OVS_ACTION_ATTR_PUSH_VLAN,