Thread (26 messages) flat view 26 messages, 7 authors, 2012-02-11

RE: [PATCH v2 00/10] Low-level Ethernet debugging features.

From: Eric Dumazet <hidden>
Date: 2012-02-10 13:51:41

Le vendredi 10 février 2012 à 13:45 +0000, David Laight a écrit :
quoted
quoted
I was thinking I might could get at least some NICs to generate Runt
frames
quoted
quoted
by sending small pkts and disabling frame padding, but haven't
looked into
quoted
quoted
it too hard yet.
I am interested by this, do you know some NICs able to disable frame
padding ?
I'm reasonably sure some old NICs like the AMD lance will send runts.
Quite likely any that require the drives to set the padded frame length.

The same will be true when semi-generic HDLC controllers are used
to send packets from DSPs, FPGAs and SOCs.
Apparently, drivers/net/ethernet/dlink/de620.c does this in its
de620_start_xmit() function :

	if ((len = skb->len) < RUNT)
		len = RUNT;

Thats interesting for two reasons :

1) We probably can remove the test to send runts if we want to test
things...

2) As is, we can leak kernel memory content to wire since we dont
initialize the padding data.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help