net: hns: Fix the process of adding broadcast addresses to tcam
authorXi Wang <wangxi11@huawei.com>
Mon, 4 Jun 2018 16:50:09 +0000 (17:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jun 2018 21:32:56 +0000 (17:32 -0400)
commitf0b964e5e4bb6b0c152f8064bb69a0f3d32a5096
treeeba41ef68f77b802a503b98472d8710a47462769
parent0e3990356d2518691e17c1ecbf7868833b6e6704
net: hns: Fix the process of adding broadcast addresses to tcam

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 <wangxi11@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c