[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20141017.235658.809511246236814038.davem@davemloft.net>
Date: Fri, 17 Oct 2014 23:56:58 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org, rasesh.mody@...gic.com
Subject: Re: [PATCH net] bna: fix skb->truesize underestimation
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Fri, 17 Oct 2014 12:45:55 -0700
> From: Eric Dumazet <edumazet@...gle.com>
>
> skb->truesize is not meant to be tracking amount of used bytes
> in an skb, but amount of reserved/consumed bytes in memory.
>
> For instance, if we use a single byte in last page fragment,
> we have to account the full size of the fragment.
>
> skb->truesize can be very different from skb->len, that has
> a very specific safety purpose.
>
> Signed-off-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