[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20091126.130934.155634662.davem@davemloft.net>
Date: Thu, 26 Nov 2009 13:09:34 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: simon.kagstrom@...insight.net
Cc: netdev@...r.kernel.org, davej@...hat.com, shemminger@...tta.com,
romieu@...zoreil.com
Subject: Re: [PATCH v3 5/7] via-velocity: Re-enable transmit scatter-gather
support
From: Simon Kagstrom <simon.kagstrom@...insight.net>
Date: Thu, 26 Nov 2009 08:36:41 +0100
> and after having crunched this in my head for a while, I couldn't
> convince myself that nr_frags would always come out as less than 7 from
> here. I don't claim to have done a thorough examination though.
__skb_linearize() does pskb_pull_tail() with length skb->data_len
skb->data_len represents the length of the data represented by non-linear
buffers in the SKB.
Therfore ending up with ->nr_frags != 0 or ->frag_list != NULL after this
operation would be a bug, and not something we should assert about in
driver code.
--
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