r8169: Fix card drop incoming VLAN tagged MTU byte large jumbo frames
authorRaimonds Cicans <ray@apollo.lv>
Mon, 26 Oct 2009 10:52:37 +0000 (10:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Oct 2009 05:49:23 +0000 (22:49 -0700)
r8169 card drop incoming VLAN tagged MTU byte large jumbo frames

It looks to compare current and maximal packet sizes hardware use
'<' operator, not '<='.

Bug introduced by commit fdd7b4c3302c93f6833e338903ea77245eb510b4
("r8169: fix crash when large packets are received")

Signed-off-by: Raimonds Cicans <ray@apollo.lv>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/r8169.c

index f98ef523f5253d956545a3cbe7f020e77092044c..fa49356784883049d4487f95bf0b0fa1db8b3cd7 100644 (file)
@@ -3379,7 +3379,7 @@ static u16 rtl_rw_cpluscmd(void __iomem *ioaddr)
 static void rtl_set_rx_max_size(void __iomem *ioaddr, unsigned int rx_buf_sz)
 {
        /* Low hurts. Let's disable the filtering. */
-       RTL_W16(RxMaxSize, rx_buf_sz);
+       RTL_W16(RxMaxSize, rx_buf_sz + 1);
 }
 
 static void rtl8169_set_magic_reg(void __iomem *ioaddr, unsigned mac_version)