History

sch_tbf: add TBF_BURST/TBF_PBURST attribute

When we set burst to 1514 with low rate in userspace, the kernel get a value of burst that less than 1514, which doesn't work. Because it may make some loss when transform burst to buffer in userspace. This makes burst lose some bytes, when the kernel transform the buffer back to burst. This patch adds two new attributes to support sending burst/mtu to kernel directly to avoid the loss.

Yang Yingliang committed 12 years ago

Commit 2e04ad41 parent 4e2d52b2 files · +26 −5Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/pkt_sched.h+2−0
@@ -173,6 +173,8 @@ enum { · 172 unmodified lines
173173 TCA_TBF_PTAB,
174174 TCA_TBF_RATE64,
175175 TCA_TBF_PRATE64,
176+ TCA_TBF_BURST,
177+ TCA_TBF_PBURST,
176178 __TCA_TBF_MAX,
177179 };
178180