netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Do I need to skb_put() Ethernet frames to a minimum of 60 bytes?
@ 2012-08-14 18:53 Arvid Brodin
  2012-08-14 20:35 ` Ben Hutchings
  0 siblings, 1 reply; 7+ messages in thread
From: Arvid Brodin @ 2012-08-14 18:53 UTC (permalink / raw)
  To: netdev@vger.kernel.org; +Cc: Nicolas Ferre

Hi,

If I create an sk_buff with a payload of less than 28 bytes (ethheader + data),
and send it using the cadence/macb (Ethernet) driver, I get

eth0: TX underrun, resetting buffers

Now I know the minimum Ethernet frame size is 64 bytes (including the 4-byte
FCS), but whose responsibility is it to pad the frame to this size if necessary?
Mine or the driver's - i.e. should I just skb_put() to the minimum size or
should I report the underrun as a driver bug?


-- 
Arvid Brodin | Consultant (Linux)
XDIN AB | Jan Stenbecks Torg 17 | SE-164 40 Kista | Sweden | xdin.com

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

end of thread, other threads:[~2012-12-17 15:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-14 18:53 Do I need to skb_put() Ethernet frames to a minimum of 60 bytes? Arvid Brodin
2012-08-14 20:35 ` Ben Hutchings
2012-08-21 17:34   ` Arvid Brodin
2012-08-21 17:42     ` Eric Dumazet
2012-08-21 18:07     ` Ben Hutchings
2012-12-17 13:43     ` Nicolas Ferre
2012-12-17 15:15       ` Arvid Brodin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).