mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
Add support functions for 8021.ad push and pop vlan.
Changes to allow the tpid to be specified and all vlan tpid checking to be generalized. Signed-off-by: Thomas F Herbert <thomasfherbert@gmail.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
committed by
Ben Pfaff
parent
3da29e3294
commit
d694339457
@@ -555,7 +555,7 @@ odp_execute_actions(void *dp, struct dp_packet **packets, int cnt, bool steal,
|
||||
const struct ovs_action_push_vlan *vlan = nl_attr_get(a);
|
||||
|
||||
for (i = 0; i < cnt; i++) {
|
||||
eth_push_vlan(packets[i], htons(ETH_TYPE_VLAN), vlan->vlan_tci);
|
||||
eth_push_vlan(packets[i], vlan->vlan_tpid, vlan->vlan_tci);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user