Skip to content

Commit 3a7d595

Browse files
321lipengdavem330
authored andcommitted
net: hns3: Increase the default depth of bucket for TM shaper
Burstiness of a flow is determined by the depth of a bucket, When the upper rate of shaper is large, the current depth of a bucket is not enough. The default upper rate of shaper is 100G, so increase the depth of a bucket according to UM. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Yunsheng Lin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f34ffff commit 3a7d595

File tree

1 file changed

+2
-2
lines changed
  • drivers/net/ethernet/hisilicon/hns3/hns3pf

1 file changed

+2
-2
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ enum hclge_shaper_level {
2323
HCLGE_SHAPER_LVL_PF = 1,
2424
};
2525

26-
#define HCLGE_SHAPER_BS_U_DEF 1
27-
#define HCLGE_SHAPER_BS_S_DEF 4
26+
#define HCLGE_SHAPER_BS_U_DEF 5
27+
#define HCLGE_SHAPER_BS_S_DEF 20
2828

2929
#define HCLGE_ETHER_MAX_RATE 100000
3030

0 commit comments

Comments
 (0)