Netdev List
 help / color / mirror / Atom feed
* smsc75xx & smsc95xx, setting skb->truesize correctly?
@ 2012-08-20 14:57 Jussi Kivilinna
  2012-08-21  9:46 ` Eric Dumazet
  0 siblings, 1 reply; 4+ messages in thread
From: Jussi Kivilinna @ 2012-08-20 14:57 UTC (permalink / raw)
  To: netdev; +Cc: Steve Glendinning

Hello,

Is setting skb->truesize in smsc75xx and smsc95xx correct?
In smsc75xx/smsc95xx_rx_fixup(), input skb containing multiple packets  
is cloned and truesize for each clone is set to packet-size +  
sizeof(struct sk_buff), but input skb has minimum allocation size of  
9000 bytes (MAX_SINGLE_PACKET_SIZE) and maximum of 18944 bytes  
(DEFAULT_HS_BURST_CAP_SIZE) (+ NET_IP_ALIGN). Doesn't this cause  
truesize to be underestimated?

-Jussi

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-08-22  6:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-20 14:57 smsc75xx & smsc95xx, setting skb->truesize correctly? Jussi Kivilinna
2012-08-21  9:46 ` Eric Dumazet
2012-08-22  5:35   ` Jussi Kivilinna
2012-08-22  6:34     ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox