[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120820175706.12394vktsvm3yvqc@www.81.fi>
Date: Mon, 20 Aug 2012 17:57:06 +0300
From: Jussi Kivilinna <jussi.kivilinna@...et.fi>
To: netdev@...r.kernel.org
Cc: Steve Glendinning <steve.glendinning@...well.net>
Subject: smsc75xx & smsc95xx, setting skb->truesize correctly?
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
--
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