Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1547573imm; Mon, 3 Sep 2018 03:24:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZGVsZeeOVgyJt/tgr3gsoW7GBuJ0q5TWDHlvxfWFRP0RvmrJhT0rNsM54m3biDoGegeK1S X-Received: by 2002:a65:448c:: with SMTP id l12-v6mr26022798pgq.277.1535970289941; Mon, 03 Sep 2018 03:24:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535970289; cv=none; d=google.com; s=arc-20160816; b=bUhmDzQwONKJN8pRtJe6miDvLB7pgS5nytmuainNYaa/O8T9TC63OW+Wt+gXgzMXJL FxACdzy28QLv6mBB/o2hHM9IEKZh7UnQmTrm/6E2028wteecZ1nb83FyyJLOjOzj18PZ QgWveDCez5CVS8D4VtIk2PEynqx+gQfrspVaXX6H7gUqK8H2UU//4pWEaGHxo2Fz9pZG +5CpyA939s5QpEBwducY+NnAPiEYkNvcCb0dwfKByhl3H5yBL9GxISD2mpMIKSfwMq6H 4lWYTb0eJa/BVDbD6UvAeq9aHOT+NqoJeBy0G2IDW7eTyvWvDWnv/dTp+VIQXeKZzi5F ciOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=QrfnqHkgxBemNfwH9dZFxNbpu0PhU2CF3Bm7U7uC7lw=; b=kmG46X0yVOgbaPQfKGCOdhtsLNT26ChTT67ldWVCGxsVhUQRhGtw1sIi0dbJjmUmLX oO8+lVDru1GHJOJEvSS8ZeFEN64gy6zGkDiANnvAcvapDeW5zEvMVKDv3IjiQelsn9CH X66grEHixgxzzfyuMrc+Hf1ZK9IOw4XEv6Ynj1yK2EI9Y8OWnjLs0Y4HqntOB7OE27ld mnmzqAx/1R/cektoOcrtDKT18ukmka1TzjQui6xHmSjwN/CwRLGtMrk57Qy4dZk+5sNR RylsXCGKvyW5TA3MN+/sLt2RtgKKuGEwRn9bX1BT9PQhJcLUzNfrmtfJg7ucQlkOcq9t mkjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 123-v6si18815298pfd.201.2018.09.03.03.24.34; Mon, 03 Sep 2018 03:24:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727801AbeICOme (ORCPT + 99 others); Mon, 3 Sep 2018 10:42:34 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:11220 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727284AbeICOmd (ORCPT ); Mon, 3 Sep 2018 10:42:33 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 2B3B8EDB157E6; Mon, 3 Sep 2018 18:22:59 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.202.226.54) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.399.0; Mon, 3 Sep 2018 18:22:54 +0800 From: Salil Mehta To: CC: , , , , , , , Huazhong Tan Subject: [PATCH net-next 02/11] net: hns3: Fix for multicast failure Date: Mon, 3 Sep 2018 11:21:47 +0100 Message-ID: <20180903102156.18676-3-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20180903102156.18676-1-salil.mehta@huawei.com> References: <20180903102156.18676-1-salil.mehta@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.202.226.54] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Huazhong Tan When the lower 24 bits of the IPV6 link-local addresses at both ends are the same, the multicast MAC address for Neigbour Discovery is the same. The multicast for Neigbour Discovery will fail. This patch fixes it by including the bonding uplink port in the multicast group. Fixes: 46a3df9f9718("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Huazhong Tan Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- 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 1c2ab7e..8f1339a 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -4362,7 +4362,7 @@ int hclge_add_mc_addr_common(struct hclge_vport *vport, hnae3_set_bit(req.flags, HCLGE_MAC_VLAN_BIT0_EN_B, 1); hnae3_set_bit(req.entry_type, HCLGE_MAC_VLAN_BIT0_EN_B, 0); hnae3_set_bit(req.entry_type, HCLGE_MAC_VLAN_BIT1_EN_B, 1); - hnae3_set_bit(req.mc_mac_en, HCLGE_MAC_VLAN_BIT0_EN_B, 0); + hnae3_set_bit(req.mc_mac_en, HCLGE_MAC_VLAN_BIT0_EN_B, 1); hclge_prepare_mac_addr(&req, addr); status = hclge_lookup_mac_vlan_tbl(vport, &req, desc, true); if (!status) { @@ -4429,7 +4429,7 @@ int hclge_rm_mc_addr_common(struct hclge_vport *vport, hnae3_set_bit(req.flags, HCLGE_MAC_VLAN_BIT0_EN_B, 1); hnae3_set_bit(req.entry_type, HCLGE_MAC_VLAN_BIT0_EN_B, 0); hnae3_set_bit(req.entry_type, HCLGE_MAC_VLAN_BIT1_EN_B, 1); - hnae3_set_bit(req.mc_mac_en, HCLGE_MAC_VLAN_BIT0_EN_B, 0); + hnae3_set_bit(req.mc_mac_en, HCLGE_MAC_VLAN_BIT0_EN_B, 1); hclge_prepare_mac_addr(&req, addr); status = hclge_lookup_mac_vlan_tbl(vport, &req, desc, true); if (!status) { -- 2.7.4