[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20121001.164616.1621118658519526629.davem@davemloft.net>
Date: Mon, 01 Oct 2012 16:46:16 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: wpan@...hat.com, netdev@...r.kernel.org
Subject: Re: [PATCH net] use skb_end_offset() in skb_try_coalesce()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Mon, 01 Oct 2012 19:28:37 +0200
> On Sat, 2012-09-29 at 14:15 +0800, Weiping Pan wrote:
>> Commit ec47ea824774(skb: Add inline helper for getting the skb end offset from
>> head) introduces this helper function, skb_end_offset(),
>> we should make use of it.
>>
>> Signed-off-by: Weiping Pan <wpan@...hat.com>
>> ---
>> net/core/skbuff.c | 3 +--
>> 1 files changed, 1 insertions(+), 2 deletions(-)
>>
>> diff --git a/net/core/skbuff.c b/net/core/skbuff.c
>> index e33ebae..86f040a 100644
>> --- a/net/core/skbuff.c
>> +++ b/net/core/skbuff.c
>> @@ -3488,8 +3488,7 @@ bool skb_try_coalesce(struct sk_buff *to, struct sk_buff *from,
>> skb_shinfo(from)->nr_frags > MAX_SKB_FRAGS)
>> return false;
>>
>> - delta = from->truesize -
>> - SKB_TRUESIZE(skb_end_pointer(from) - from->head);
>> + delta = from->truesize - SKB_TRUESIZE(skb_end_offset(from));
>> }
>>
>> WARN_ON_ONCE(delta < len);
>
> Acked-by: Eric Dumazet <edumazet@...gle.com>
Applied.
--
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