mirror of
https://github.com/openvswitch/ovs
synced 2025-10-23 14:57:06 +00:00
lib: Add tpid parameter to eth_push_vlan()
This is in preparation for pushing vlan tags using the TPID provided by the kernel via auxdata. Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -205,7 +205,7 @@ odp_execute_actions__(void *dp, struct ofpbuf *packet, struct pkt_metadata *md,
|
||||
|
||||
case OVS_ACTION_ATTR_PUSH_VLAN: {
|
||||
const struct ovs_action_push_vlan *vlan = nl_attr_get(a);
|
||||
eth_push_vlan(packet, vlan->vlan_tci);
|
||||
eth_push_vlan(packet, htons(ETH_TYPE_VLAN), vlan->vlan_tci);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user