net: hns3: Set tx ring' tc info when netdev is up
authorYunsheng Lin <linyunsheng@huawei.com>
Tue, 14 Aug 2018 16:13:18 +0000 (17:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Aug 2018 16:54:24 +0000 (09:54 -0700)
commit1c77215480bcfa0852575180f997bd156f2aef17
tree26547b3d9ee4ac05fdf7a75a10db318a28b7a13d
parent26a07ccc1d0781fee3027e40a8bfa7a1a3358df3
net: hns3: Set tx ring' tc info when netdev is up

The HNS3_RING_TX_RING_TC_REG register is used to map tx ring to
specific tc, the tx queue to tc mapping is needed by the hardware
to do the correct tx schedule.

Signed-off-by: Yunsheng Lin <linyunsheng@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/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h