]> 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)
commit9e8c73d59389d9b5eef71dedcb2d9a2545c6bc29
treeeba41ef68f77b802a503b98472d8710a47462769
parentd0182ab4ccb364097d1f3741cf05353e15ff062d
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: 5fda5763a87e ("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