]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite5890da7f7ad22ba6d54f7e1a146cb34efb118fc
treeeba41ef68f77b802a503b98472d8710a47462769
parent86969d3f0ac70e2c97b1ed3970eb4184ea9b55b1
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: 620ad033fae7 ("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