]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix the bug of hns3_set_txbd_baseinfo
authorLipeng <lipeng321@huawei.com>
Tue, 24 Oct 2017 13:02:09 +0000 (21:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Oct 2017 08:25:35 +0000 (17:25 +0900)
commit3ed920be0085f58394c2b8abcb3497b8885161cb
treeae68395b833f24b42ccbc3f7d10e1178e754bfcf
parentefdc81d8b11c7dc9c5b0e00f7f1719e0f962807e
net: hns3: fix the bug of hns3_set_txbd_baseinfo

The SC bits of TX BD mean switch control. For this area, value 0
indicates no switch control, the packet is routed according to the
forwarding table. Value 1 indicates that the packet is transmitted
to the network bypassing the forwarding table.

As HNS3 driver need support VF later, VF conmunicate with its own
PF need forwarding table. This patch sets SC bits of TX BD 0 and use
forwarding table.

Fixes: 327a841 (net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC)
Signed-off-by: Lipeng <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c