From: Vlad Drukker Date: Fri, 23 Sep 2005 06:35:34 +0000 (-0700) Subject: [BRIDGE]: TSO fix in br_dev_queue_push_xmit X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2a7bc3c94cbca32d3d6e03e7d5a71662f591d28a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [BRIDGE]: TSO fix in br_dev_queue_push_xmit Signed-off-by: Vlad Drukker Acked-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/net/bridge/br_forward.c b/net/bridge/br_forward.c index 069253f830c1..2d24fb400e0c 100644 --- a/net/bridge/br_forward.c +++ b/net/bridge/br_forward.c @@ -31,7 +31,8 @@ static inline int should_deliver(const struct net_bridge_port *p, int br_dev_queue_push_xmit(struct sk_buff *skb) { - if (skb->len > skb->dev->mtu) + /* drop mtu oversized packets except tso */ + if (skb->len > skb->dev->mtu && !skb_shinfo(skb)->tso_size) kfree_skb(skb); else { #ifdef CONFIG_BRIDGE_NETFILTER