]> git.baikalelectronics.ru Git - kernel.git/commit
sch_tbf: add TBF_BURST/TBF_PBURST attribute
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 20 Dec 2013 01:24:47 +0000 (09:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Dec 2013 18:54:22 +0000 (13:54 -0500)
commita24ce3d90c8e68bf60287d2b208e1d5116f51213
treeddc00646275400d740323a8753a02b7177e0d544
parenta2b8972af688d459788081fec982a88340b63cde
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.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/pkt_sched.h
net/sched/sch_tbf.c