From: Vlad Yasevich <vyasevic@redhat.com>
To: David Miller <davem@davemloft.net>, cwang@twopensource.com
Cc: netdev@vger.kernel.org, therbert@google.com, jhs@mojatatu.com,
hannes@stressinduktion.org, edumazet@google.com,
jeffrey.t.kirsher@intel.com, rusty@rustcorp.com.au
Subject: Re: [PATCH 0/3] Basic deferred TX queue flushing infrastructure.
Date: Mon, 25 Aug 2014 19:24:52 -0400 [thread overview]
Message-ID: <53FBC5C4.3070100@redhat.com> (raw)
In-Reply-To: <20140825.153146.2165451041039058085.davem@davemloft.net>
On 08/25/2014 06:31 PM, David Miller wrote:
> From: Cong Wang <cwang@twopensource.com>
> Date: Mon, 25 Aug 2014 15:21:00 -0700
>
>> When I tried to unify the list management of SKB's, I was surprised to see
>> there are still some places relying on skb->next and skb->prev to be
>> the head of the skb struct, since nowadays we have list API's, they still
>> play some magic on these pointers (sctp and tipc IIRC). This is why I
>> gave up, maybe it's time to revise this again.
>
> I think SCTP should be OK, and yes I do remember that protocol being one of
> the last subsystems making such SKB list pointer assumptions.
>
> It was using list_*() operations on sk_buff objects or something like that.
All I see that's left is __skb_unlink, __skb_queue_tail and skb_queue_splice_tail_init()
I think you've convert all of them a while ago.
-vlad
>
>> Talking about skb->next, fortunately we do gso segmentation after
>> going out of qdisc queues, otherwise it's scary to play with these
>> pointers at same time. I think all queues of SKB's are either using
>> just ->next or both ->prev and ->next.
>
> It occurs to me that perhaps the thing to do is to pass sk_buff ** to
> dev_hard_start_xmit().
>
> If it really is important to free the original GSO skb after the
> segmented parts, we can run that as part of the destructor of the
> final segment.
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2014-08-25 23:25 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-23 20:28 [PATCH 0/3] Basic deferred TX queue flushing infrastructure David Miller
2014-08-23 23:25 ` Alexander Duyck
2014-08-24 12:58 ` Jesper Dangaard Brouer
2014-08-24 3:39 ` Tom Herbert
2014-08-24 4:26 ` David Miller
2014-08-24 4:38 ` David Miller
2014-08-24 14:57 ` Jamal Hadi Salim
2014-08-24 19:08 ` David Miller
2014-08-24 17:37 ` Eric Dumazet
2014-08-24 19:11 ` David Miller
2014-08-25 22:21 ` Cong Wang
2014-08-25 22:31 ` David Miller
2014-08-25 22:37 ` Eric Dumazet
2014-08-25 22:41 ` David Miller
2014-08-25 22:45 ` Jon Maloy
2014-08-25 23:24 ` Vlad Yasevich [this message]
2014-09-01 7:40 ` Jesper Dangaard Brouer
2014-09-01 21:40 ` David Miller
2014-08-25 6:10 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53FBC5C4.3070100@redhat.com \
--to=vyasevic@redhat.com \
--cc=cwang@twopensource.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hannes@stressinduktion.org \
--cc=jeffrey.t.kirsher@intel.com \
--cc=jhs@mojatatu.com \
--cc=netdev@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
--cc=therbert@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.