net: hns: bug fix about broadcast/multicast packets
authorDaode Huang <huangdaode@hisilicon.com>
Thu, 29 Sep 2016 17:09:15 +0000 (18:09 +0100)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Oct 2016 15:40:57 +0000 (11:40 -0400)
commit2162a4a1ed8b61afed3b76137aff3ea031d9c6a6
tree2b03acc5cc7b15d24e054c39ad9a2408e53bc1f1
parent58035fd92dcd54c8954c0813f229346b8febd5c0
net: hns: bug fix about broadcast/multicast packets

When the dsaf mode receives a broadcast packet, it will filter
the packet by comparing the received queue number and destination
queue number(get from forwarding table), if they are the same,
the packet will be filtered. Otherwise, the packet will be loopback.
So this patch select queue 0 to send broadcast and multicast packets.

Signed-off-by: Daode Huang <huangdaode@hisilicon.com>
Reviewed-by: Yisen Zhuang <yisen.zhuang@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/net/ethernet/hisilicon/hns/hns_enet.c