[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1412260528.16704.96.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Thu, 02 Oct 2014 07:35:28 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Jesper Dangaard Brouer <brouer@...hat.com>
Cc: netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>,
Tom Herbert <therbert@...gle.com>,
Hannes Frederic Sowa <hannes@...essinduktion.org>,
Florian Westphal <fw@...len.de>,
Daniel Borkmann <dborkman@...hat.com>,
Jamal Hadi Salim <jhs@...atatu.com>,
Alexander Duyck <alexander.duyck@...il.com>,
John Fastabend <john.r.fastabend@...el.com>,
Dave Taht <dave.taht@...il.com>, toke@...e.dk
Subject: Re: [net-next PATCH V6 2/2] qdisc: dequeue bulking also pickup
GSO/TSO packets
On Wed, 2014-10-01 at 22:36 +0200, Jesper Dangaard Brouer wrote:
> The TSO and GSO segmented packets already benefit from bulking
> on their own.
>
>
> Signed-off-by: Florian Westphal <fw@...len.de>
> Signed-off-by: Jesper Dangaard Brouer <brouer@...hat.com>
> Signed-off-by: Hannes Frederic Sowa <hannes@...essinduktion.org>
> Signed-off-by: Daniel Borkmann <dborkman@...hat.com>
> ---
>
> net/sched/sch_generic.c | 12 +++---------
> 1 files changed, 3 insertions(+), 9 deletions(-)
>
> diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
> index c2e87e6..797ebef 100644
> --- a/net/sched/sch_generic.c
> +++ b/net/sched/sch_generic.c
> @@ -63,10 +63,6 @@ static struct sk_buff *try_bulk_dequeue_skb(struct Qdisc *q,
> struct sk_buff *skb, *tail_skb = head_skb;
>
> while (bytelimit > 0) {
> - /* For now, don't bulk dequeue GSO (or GSO segmented) pkts */
> - if (tail_skb->next || skb_is_gso(tail_skb))
> - break;
> -
> skb = q->dequeue(q);
> if (!skb)
> break;
> @@ -76,11 +72,9 @@ static struct sk_buff *try_bulk_dequeue_skb(struct Qdisc *q,
> if (!skb)
> break;
>
> - /* "skb" can be a skb list after validate call above
> - * (GSO segmented), but it is okay to append it to
> - * current tail_skb->next, because next round will exit
> - * in-case "tail_skb->next" is a skb list.
> - */
> + while (tail_skb->next) /* GSO list goto tail */
> + tail_skb = tail_skb->next;
> +
> tail_skb->next = skb;
> tail_skb = skb;
Thanks a lot guys. I am testing this patch set today.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists