Bugfix: NetFPGA: Correct wildcard mask bits
This commit is contained in:
1 parent
af5a3755b7
commit
88a2ba3c5a
2 files changed
+2
-2
No files matched your search
@@ -151,7 +151,7 @@ log_mask(nf2_of_mask_wrap *mask)
|
|||||||
for (i = 5; i > 0; --i) {
|
for (i = 5; i > 0; --i) {
|
||||||
DBG_VERBOSE("%0X:", mask->entry.eth_src[i]);
|
DBG_VERBOSE("%0X:", mask->entry.eth_src[i]);
|
||||||
}
|
}
|
||||||
DBG_VERBOSE("%0X] ", mask->entry.eth_dst[0]);
|
DBG_VERBOSE("%0X] ", mask->entry.eth_src[0]);
|
||||||
|
|
||||||
// Log the link layer dest
|
// Log the link layer dest
|
||||||
DBG_VERBOSE("dldst[");
|
DBG_VERBOSE("dldst[");
|
||||||
|
|||||||
@@ -393,7 +393,7 @@ nf2_populate_of_mask(nf2_of_mask_wrap *mask, struct sw_flow *flow)
|
|||||||
vlan_vid = VID_BITMASK;
|
vlan_vid = VID_BITMASK;
|
||||||
}
|
}
|
||||||
if (OFPFW_DL_VLAN_PCP & flow->key.wildcards) {
|
if (OFPFW_DL_VLAN_PCP & flow->key.wildcards) {
|
||||||
vlan_pcp = PCP_BITMASK;
|
vlan_pcp = 0xF000;
|
||||||
}
|
}
|
||||||
mask->entry.vlan_id = vlan_pcp | vlan_vid;
|
mask->entry.vlan_id = vlan_pcp | vlan_vid;
|
||||||
if (OFPFW_DL_SRC & flow->key.wildcards) {
|
if (OFPFW_DL_SRC & flow->key.wildcards) {
|
||||||
|
|||||||
Reference in new issue
Block a user