Skip to content

NewHtbClass calculates incorrect Buffer/Cbuffer #560

@chenchun

Description

@chenchun

Golang netlink lib calculates buffer=15824 and cbuffer=15824 for 1000Mbit rate/ceil.
image

C tc calculates buffer=187 and cbuffer=187 for 1000Mbit rate/ceil.
90998702-52f9b200-e5f7-11ea-9bfc-0de9ebbf6ef8

It seems this is due to the hz is incorrect in golang.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions