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)
commite43ac79a4bc6ca90de4ba10983b4ca39cd215b4b
tree6104167d3ff96882bfec0bacc16ec32a032161a1
parentffed61e6fd3a405e79f4d267f22acaee3267fb37
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