Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 207d6e87 authored by Raimonds Cicans's avatar Raimonds Cicans Committed by David S. Miller
Browse files

r8169: Fix card drop incoming VLAN tagged MTU byte large jumbo frames



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 fdd7b4c3
("r8169: fix crash when large packets are received")

Signed-off-by: default avatarRaimonds Cicans <ray@apollo.lv>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 18eb0893
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)