Use vlan_mask->tci as big endian since this is how rte flow defines it.
Fixes:
11777435c727 ("net/ixgbe: parse flow director filter")
Fixes:
37ed39b4e67d ("net/ixgbe: add TCI mask check for flow director")
Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
return -rte_errno;
}
rule->mask.vlan_tci_mask = vlan_mask->tci;
- rule->mask.vlan_tci_mask &= 0xEFFF;
+ rule->mask.vlan_tci_mask &= rte_cpu_to_be_16(0xEFFF);
/* More than one tags are not supported. */
/**
return -rte_errno;
}
rule->mask.vlan_tci_mask = vlan_mask->tci;
- rule->mask.vlan_tci_mask &= 0xEFFF;
+ rule->mask.vlan_tci_mask &= rte_cpu_to_be_16(0xEFFF);
/* More than one tags are not supported. */
/**