git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Modify VLAN actions to support setting both VID and priority.
[sliver-openvswitch.git]
/
lib
/
flow.c
diff --git
a/lib/flow.c
b/lib/flow.c
index
c0f07a2
..
ebe9050
100644
(file)
--- a/
lib/flow.c
+++ b/
lib/flow.c
@@
-144,7
+144,7
@@
flow_extract(struct ofpbuf *packet, uint16_t in_port, struct flow *flow)
struct vlan_header *vh = pull_vlan(&b);
if (vh) {
flow->dl_type = vh->vlan_next_type;
- flow->dl_vlan = vh->vlan_tci & htons(VLAN_VID);
+ flow->dl_vlan = vh->vlan_tci & htons(VLAN_VID
_MASK
);
}
}
memcpy(flow->dl_src, eth->eth_src, ETH_ADDR_LEN);