Bugfix: NetFPGA: Correct wildcard mask bits

This commit is contained in:
Tatsuya Yabe
2010-03-31 00:33:20 -07:00
committed by Glen Gibb
parent af5a3755b7
commit 88a2ba3c5a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ log_mask(nf2_of_mask_wrap *mask)
for (i = 5; i > 0; --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
DBG_VERBOSE("dldst[");
+1 -1
View File
@@ -393,7 +393,7 @@ nf2_populate_of_mask(nf2_of_mask_wrap *mask, struct sw_flow *flow)
vlan_vid = VID_BITMASK;
}
if (OFPFW_DL_VLAN_PCP & flow->key.wildcards) {
vlan_pcp = PCP_BITMASK;
vlan_pcp = 0xF000;
}
mask->entry.vlan_id = vlan_pcp | vlan_vid;
if (OFPFW_DL_SRC & flow->key.wildcards) {