]> git.karo-electronics.de Git - linux-beck.git/commit
net: hns: fix the bug of forwarding table
authorDaode Huang <huangdaode@hisilicon.com>
Thu, 29 Sep 2016 17:09:14 +0000 (18:09 +0100)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Oct 2016 15:40:57 +0000 (11:40 -0400)
commit58035fd92dcd54c8954c0813f229346b8febd5c0
treee519ead5c4a83a391052cbdc033badb4172889a0
parentea870bf93c5cd3635a07a0570cb7fe61436b0c3d
net: hns: fix the bug of forwarding table

As the sub queue id in the broadcast forwarding table is always
set to absolute queue 0 rather than the interface's relative queue 0,
this will cause the received broadcast packets loopback to rcb.
This patch sets the sub queue id to relative queue 0 of each port.

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_ae_adapt.c
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h