提交 9a272e60 编写于 作者: S shenjian 提交者: Xie XiuQi

net: hns3: fix src-ip and dst-ip display error for flow director

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

In original codes, when query tcp6 or udp6 flow director rules,
the src-ip and dst-ip are incorrectly assigned as the value of
mask. This patch fixes it

Feature or Bugfix:Bugfix
Signed-off-by: Nshenjian (K) <shenjian15@huawei.com>
Reviewed-by: Nlipeng <lipeng321@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 5db7938f
......@@ -5471,13 +5471,13 @@ static void hclge_fd_get_tcpip6_info(struct hclge_fd_rule *rule,
if (rule->unused_tuple & BIT(INNER_SRC_IP))
memset(spec_mask->ip6src, 0, sizeof(int) * IPV6_SIZE);
else
cpu_to_be32_array(spec->ip6src, rule->tuples_mask.src_ip,
cpu_to_be32_array(spec_mask->ip6src, rule->tuples_mask.src_ip,
IPV6_SIZE);
if (rule->unused_tuple & BIT(INNER_DST_IP))
memset(spec_mask->ip6dst, 0, sizeof(int) * IPV6_SIZE);
else
cpu_to_be32_array(spec->ip6dst, rule->tuples_mask.dst_ip,
cpu_to_be32_array(spec_mask->ip6dst, rule->tuples_mask.dst_ip,
IPV6_SIZE);
spec->psrc = cpu_to_be16(rule->tuples.src_port);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册