]> git.baikalelectronics.ru Git - kernel.git/commit
sch_tbf: segment too big GSO packets
authorEric Dumazet <edumazet@google.com>
Tue, 21 May 2013 08:16:46 +0000 (08:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 May 2013 07:06:40 +0000 (00:06 -0700)
commitfa0861e447416a046a12345ee70087678fd85f7e
tree6104167d3ff96882bfec0bacc16ec32a032161a1
parenta15b1cc3f29ae36228e30f6695ec5efa52555496
sch_tbf: segment too big GSO packets

If a GSO packet has a length above tbf burst limit, the packet
is currently silently dropped.

Current way to handle this is to set the device in non GSO/TSO mode, or
setting high bursts, and its sub optimal.

We can actually segment too big GSO packets, and send individual
segments as tbf parameters allow, allowing for better interoperability.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Jiri Pirko <jiri@resnulli.us>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_tbf.c