]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: set the RMS of RTL8153 according to the mtu
authorhayeswang <hayeswang@realtek.com>
Mon, 20 Mar 2017 08:13:44 +0000 (16:13 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 17:50:36 +0000 (10:50 -0700)
commit5302f4473c7d2005df485f13561c08a776de4c00
treeb23b516abc1df33c1e2578b5b379d7b9781f2ccd
parentbc1641694f68373845580918951b3d9de28eaad1
r8152: set the RMS of RTL8153 according to the mtu

Set the received maximum size (RMS) according to the mtu size. It is
unnecessary to receive a packet which is more than the size we could
transmit. Besides, this could let the rx buffer be used effectively.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c