net: hns3: Add mqprio hardware offload support in hns3 driver
authorYunsheng Lin <linyunsheng@huawei.com>
Tue, 17 Oct 2017 06:51:30 +0000 (14:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Oct 2017 11:45:45 +0000 (12:45 +0100)
commit30d240dfa2e88f7941f72fac9a256358f7d55ad8
treef7315b79a9829aa40cd52824c4585c5528b3e99d
parent56fd2b2ca467f22f940282bf2c1ca4e1cb8f4c67
net: hns3: Add mqprio hardware offload support in hns3 driver

When using tc qdisc, dcb_ops->setup_tc is used to tell hclge_dcb
module to do the tm related setup. Only TC_MQPRIO_MODE_CHANNEL
offload mode is supported.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c