Add more check on the tci mask of VLAN and VXLAN parser
in fdir filter rule pattern parser. If such check not added,
it maybe cause error in fdir configuration set check.
Fixes:
11777435c727 ("net/ixgbe: parse flow director filter")
Cc: stable@dpdk.org
Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
* ETH dst_addr
{0xAC, 0x7B, 0xA1, {0xFF, 0xFF, 0xFF,
0x2C, 0x6D, 0x36} 0xFF, 0xFF, 0xFF}
* ETH dst_addr
{0xAC, 0x7B, 0xA1, {0xFF, 0xFF, 0xFF,
0x2C, 0x6D, 0x36} 0xFF, 0xFF, 0xFF}
- * MAC VLAN tci 0x2016 0xFFFF
+ * MAC VLAN tci 0x2016 0xEFFF
* tpid 0x8100 0xFFFF
* END
* Other members in mask and spec should set to 0x00.
* tpid 0x8100 0xFFFF
* END
* Other members in mask and spec should set to 0x00.
return -rte_errno;
}
rule->mask.vlan_tci_mask = vlan_mask->tci;
return -rte_errno;
}
rule->mask.vlan_tci_mask = vlan_mask->tci;
+ rule->mask.vlan_tci_mask &= 0xEFFF;
/* More than one tags are not supported. */
/**
/* More than one tags are not supported. */
/**
return -rte_errno;
}
rule->mask.vlan_tci_mask = vlan_mask->tci;
return -rte_errno;
}
rule->mask.vlan_tci_mask = vlan_mask->tci;
+ rule->mask.vlan_tci_mask &= 0xEFFF;
/* More than one tags are not supported. */
/**
/* More than one tags are not supported. */
/**