aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRaimonds Cicans <ray@apollo.lv>2009-11-13 10:52:19 +0000
committerDavid S. Miller <davem@davemloft.net>2009-11-13 19:56:56 -0800
commit8812304cf1110ae16b0778680f6022216cf4716a (patch)
tree1bb5b0e0830ed193a6bcd494a244aca49a80029e /net
parent55369c0a6441e95062cfaeef6eefcfb357a31e8c (diff)
r8169: Fix receive buffer length when MTU is between 1515 and 1536
In r8169 driver MTU is used to calculate receive buffer size. Receive buffer size is used to configure hardware incoming packet filter. For jumbo frames: Receive buffer size = Max frame size = MTU + 14 (ethernet header) + 4 (vlan header) + 4 (ethernet checksum) = MTU + 22 Bug: driver for all MTU up to 1536 use receive buffer size 1536 As you can see from formula, this mean all IP packets > 1536 - 22 (for vlan tagged, 1536 - 18 for not tagged) are dropped by hardware filter. Example: host_good> ifconfig eth0 mtu 1536 host_r8169> ifconfig eth0 mtu 1536 host_good> ping host_r8169 Ok host_good> ping -s 1500 host_r8169 Fail host_good> ifconfig eth0 mtu 7000 host_r8169> ifconfig eth0 mtu 7000 host_good> ping -s 1500 host_r8169 Ok Bonus: got rid of magic number 8 Signed-off-by: Raimonds Cicans <ray@apollo.lv> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions