Skip to content

Commit

Permalink
net/ixgbe: enable IPv6 mask in flow rules
Browse files Browse the repository at this point in the history
[ upstream commit cba954b7bedaa7d0baea1ddc39fd0199015f583c ]

Add IPv6 addr mask and L4 mask support for rte_flow APIs.

IPv6 flow rules do not take effect in ixgbe when set
IPv6 addr mask and L4 mask to default value as 0xFF.

Set IPv6 addr mask and L4 mask as 0 to enable fields
can fix this issue.

Fixes: 1177743 ("net/ixgbe: parse flow director filter")

Signed-off-by: Kaiwen Deng <kaiwenx.deng@intel.com>
Tested-by: Yuan Peng <yuan.peng@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
  • Loading branch information
kevin-intel authored and bluca committed Feb 23, 2023
1 parent 2f6bcfd commit 9f6828a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/ixgbe/ixgbe_flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -1645,6 +1645,10 @@ ixgbe_parse_fdir_filter_normal(struct rte_eth_dev *dev,
memset(&rule->mask, 0xFF, sizeof(struct ixgbe_hw_fdir_mask));
rule->mask.vlan_tci_mask = 0;
rule->mask.flex_bytes_mask = 0;
rule->mask.dst_port_mask = 0;
rule->mask.src_port_mask = 0;
rule->mask.src_ipv6_mask = 0;
rule->mask.dst_ipv6_mask = 0;

/**
* The first not void item should be
Expand Down

0 comments on commit 9f6828a

Please sign in to comment.