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 Runtframesquoted
quoted
by sending small pkts and disabling frame padding, but haven'tlooked intoquoted
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.