Show Table of Contents
3.8. net_cls
net_cls 子系统使用等级识别符(classid)标记网络数据包,可允许 Linux 流量控制程序(tc)识别从具体 cgroup 中生成的数据包。可将流量控制程序配置为给不同 cgroup 中的数据包分配不同的优先权。
- net_cls.classid
net_cls.classid包含一个说明流量控制句柄的十六进制的值。例如:0x1001代表通常写成10:1的句柄,这是 iproute2 使用的格式。这些句柄的格式为:0xAAAABBBB,其中 AAAA 是十六进制主设备号,BBBB 是十六进制副设备号。您可以忽略前面的零;0x10001与0x00010001一样,代表1:1。
参考 tc 的 man page 了解如何配置流量控制程序使用
net_cls 添加到网络数据包中的句柄。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.