From 9a272e60f09656e6fbb28ef9f19df9b6a7b1f457 Mon Sep 17 00:00:00 2001 From: shenjian Date: Sun, 28 Apr 2019 22:49:14 +0800 Subject: [PATCH] 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: shenjian (K) Reviewed-by: lipeng Reviewed-by: Xie XiuQi Signed-off-by: Yang Yingliang --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index 154c231246d9..e882c2053df7 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -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); -- GitLab