Bugfix: NetFPGA: Correct wildcard mask bits
This commit is contained in:
@@ -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[");
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user