Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp139520imm; Mon, 4 Jun 2018 14:35:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI02/ee7RdBUb3iclciZ4k/wLS9J9l3CtNo9H7T/Baus5esxLTjRUXBYXzZ+jGGgNfs2sz0 X-Received: by 2002:a63:b812:: with SMTP id p18-v6mr4542660pge.11.1528148121353; Mon, 04 Jun 2018 14:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528148121; cv=none; d=google.com; s=arc-20160816; b=mtMFvSY/iJ6EwyPS4inT727DVGmBHAAFjhtphQcdRFPEKmbF01UetavBUQKQxKit7J hGpm13SkbLILQso9wElfpco8cChzgPoZLPWgYjOuGEANrl5LMJviMMngbCvKQmpa4IFw 82qCHPV3yzIsXjJu9lY4FQp5ZuZ2uWibwY199ptG39qyfz/w5S3ghvqz03OVvTmIh4h6 LlunWS29PVpAd7ZlJB9cLkGj3F1E7pm0fGlqcguhwrmwPbmp2UyY6SPDdMG6AYVJNkp6 JrDDVPVIvAEPlXI6J4yKtUiHJO6D/dX3zTbgPZQ/Hp2TH7uqDL7YOeG3+EuxO7tUh8L3 TCCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=t8gQL+hO/2FnAm65OlGrVCeOfZHfQOXdCjGAF0zIUcc=; b=sa+izIon/hFRm6DPytsg6+5ufkWw5IoG1hVbOrFWxmNjEOZW51xNS7oO/o2O5Ieh0v 6DUpLLYDRquMgMqcFWELYAteEMAe709VgbnzMiDTYPs2ibt7x1FYqZWxKlxY4RrmfD6E Ytctr8jKjUje6yw8EhmPuptEDyftuQcCUVQAsftLK2I9/zIqOje0+i05zj2YYxVyI5F9 vX+cFHfB8UZ6uc99jIiEIm+dROrMkBnqUEDMk08t6221PQG6jlg/43gxuFA2cJjtgrMl qG5WLn0rDW+0S/P+EGlYFt/D41hd8YlZXBeO3QWTdp6fVi2Usi91DKg7TLR/oU/crFTX FPpw== 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 t80-v6si24772757pfe.59.2018.06.04.14.35.06; Mon, 04 Jun 2018 14:35:21 -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 S1751537AbeFDVdf (ORCPT + 99 others); Mon, 4 Jun 2018 17:33:35 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:52980 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751093AbeFDVde (ORCPT ); Mon, 4 Jun 2018 17:33:34 -0400 Received: from localhost (unknown [172.58.217.105]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id F156210931C39; Mon, 4 Jun 2018 14:33:32 -0700 (PDT) Date: Mon, 04 Jun 2018 17:33:32 -0400 (EDT) Message-Id: <20180604.173332.935788715931197646.davem@davemloft.net> To: salil.mehta@huawei.com Cc: yisen.zhuang@huawei.com, lipeng321@huawei.com, mehta.salil@opnsrc.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, wangxi11@huawei.com Subject: Re: [PATCH V2 net] net: hns: Fix the process of adding broadcast addresses to tcam From: David Miller In-Reply-To: <20180604165009.24476-1-salil.mehta@huawei.com> References: <20180604165009.24476-1-salil.mehta@huawei.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 04 Jun 2018 14:33:34 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Salil Mehta Date: Mon, 4 Jun 2018 17:50:09 +0100 > From: Xi Wang > > If the multicast mask value in device tree is configured not all > 0xff, the broadcast mac will be lost from tcam table after the > execution of command 'ifconfig up'. The address is appended by > hns_ae_start, but will be clear later by hns_nic_set_rx_mode > called in dev_open process. > > This patch fixed it by not use the multicast mask when add a > broadcast address. > > Fixes: b5996f11ea54 ("net: add Hisilicon Network Subsystem basic ethernet support") > Signed-off-by: Xi Wang > Signed-off-by: Peng Li > Signed-off-by: Salil Mehta > --- > Patch V2: Fixed comments by David Miller > Link: https://lkml.org/lkml/2018/6/4/671 > Patch V1: Initial Submit Applied and queued up for -stable, thank you.