net/hns3: encapsulate port shaping interface
authorHuisong Li <lihuisong@huawei.com>
Thu, 4 Mar 2021 07:44:46 +0000 (15:44 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 4 Mar 2021 14:07:14 +0000 (15:07 +0100)
commitd75e0b4ff3984cd45778ad1db282531f2181df7b
treeb0bef326812ff63430e2f3eb05dcbbd6d2ca8b79
parent3e9f3042d7c80f90158ff6227981913a2074aece
net/hns3: encapsulate port shaping interface

When rate of port changes, the rate limit of the port needs to
be updated. So it is necessary to encapsulate an interface that
configures the rate limit based on the rate.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
drivers/net/hns3/hns3_dcb.c
drivers/net/hns3/hns3_dcb.h
drivers/net/hns3/hns3_ethdev.c